X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Fbuild%2Fcreate-version-itexi.py;h=e40ff6e79b0868c210c83b24089ba2347b1965ca;hb=9d1520b21710bd22872010ae9aa4c4899014e9d4;hp=287b222da5e37d742c66058d99aced03c7cc0bdc;hpb=74b336b3cab541e5f57c11c33ff52475eb655414;p=lilypond.git diff --git a/scripts/build/create-version-itexi.py b/scripts/build/create-version-itexi.py index 287b222da5..e40ff6e79b 100644 --- a/scripts/build/create-version-itexi.py +++ b/scripts/build/create-version-itexi.py @@ -66,133 +66,9 @@ def make_macro(name, string): print "@end macro" print "" -def make_download(name, osA, osB, version, revision, text): - string = "@uref{http://download.linuxaudio.org/lilypond/binaries/" - string += osA + "lilypond-" - string += version + "-" + revision - string += "." + osB + ",\n" - string += text - string += ": LilyPond " - string += version + "-" + revision - string += "}" - make_macro(name, string) - -def make_download_source(name, vstring, version): - string = "@uref{http://download.linuxaudio.org/lilypond/sources/" - string += vstring + "/" - string += "lilypond-" + version + ".tar.gz" - string += ", " - string += "lilypond-" + version + ".tar.gz" - string += "}" - make_macro(name, string) - -def make_all_downloads(macroName, version): - make_download("download"+macroName+"LinuxNormal", "linux-x86/", - "linux-x86.sh", version, "1", "Linux x86") - make_download("download"+macroName+"LinuxBig", "linux-64/", - "linux-64.sh", version, "1", "Linux 64") - make_download("download"+macroName+"LinuxPPC", "linux-ppc/", - "linux-ppc.sh", version, "1", "Linux PPC") - - make_download("download"+macroName+"FreeBSDNormal", "freebsd-x86/", - "freebsd-x86.sh", version, "1", "FreeBSD i386") - make_download("download"+macroName+"FreeBSDBig", "freebsd-x86/", - "freebsd-64.sh", version, "1", "FreeBSD amd64") - - make_download("download"+macroName+"DarwinNormal", "darwin-x86/", - "darwin-x86.tar.bz2", version, "1", "MacOS X x86") - make_download("download"+macroName+"DarwinPPC", "darwin-ppc/", - "darwin-ppc.tar.bz2", version, "1", "MacOS X PPC") - - make_download("download"+macroName+"Windows", "mingw/", - "mingw.exe", version, "1", "Windows") - -def make_ver_link(macroname, version, url, linktext): - string = "@uref{" - string += url - string += "," - string += linktext - string += "}" - make_macro(macroname, string) - -# TODO: this kind of thing should really be in a central place for -# lilypond python build scripts -def translateNameToUrl(manual, version): - ver_split = version.split('.') - ver_minor = ver_split[0] + '.' + ver_split[1] - url = depth + "doc/v" + ver_minor + "/Documentation/" - - if (ver_minor == '2.13'): - return url+manual - if (ver_minor == '2.12'): - if (manual=='learning'): - return url+'user/lilypond-learning' - if (manual=='internals'): - return url+'user/lilypond-internals' - if (manual=='notation'): - return url+'user/lilypond' - if (manual=='usage'): - return url+'user/lilypond-program' - if (manual=='snippets'): - return url+'../input/lsr/lilypond-snippets' - elif (manual=='music-glossary'): - return url+'user/music-glossary' - else: - return '' - - -def make_manual_links(name, version): - for m in manuals: - manual = m - if (m=='music-glossary'): - mshort = 'Glossary' - else: - mshort = m.capitalize() - url = translateNameToUrl(m, version) - - if (url == ''): - # can't have a comma here due to texinfo - make_ver_link("manual"+name+mshort+'Pdf', - version, "http://lilypond.org", - mshort+" (did not exist in 2.12)") - make_ver_link("manual"+name+mshort+'Split', - version, "http://lilypond.org", - mshort+" (did not exist in 2.12)") - make_ver_link("manual"+name+mshort+'Big', - version, "http://lilypond.org", - mshort+" (did not exist in 2.12)") - continue - make_ver_link("manual"+name+mshort+'Pdf', - version, - url + '.pdf', - manual.capitalize() + '.pdf') - make_ver_link("manual"+name+mshort+'Split', - version, - url + '/index.html', - manual.capitalize() + ' (split HTML)') - make_ver_link("manual"+name+mshort+'Big', - version, - url + '-big-page.html', - manual.capitalize() + ' (big HTML)') - - print "@c ************************ Version numbers ************" make_macro("version", VERSION) make_macro("versionStable", VERSION_STABLE) make_macro("versionDevel", VERSION_DEVEL) -print "@c ************************ Download binaries ************" -make_all_downloads("Stable", VERSION_STABLE) -make_all_downloads("Devel", VERSION_DEVEL) - -print "@c ************************ Download source ************" -# FIXME: icky hard-coding! -gp -make_download_source("downloadStableSource", "v2.12", VERSION_STABLE) -make_download_source("downloadDevelSource", "v2.13", VERSION_DEVEL) - -print "@c ************************ Manual links ************" -make_manual_links("Stable", VERSION_STABLE) -make_manual_links("Devel", VERSION_DEVEL) - -