]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/build/create-version-itexi.py
Add '-dcrop' option to ps and svg backends
[lilypond.git] / scripts / build / create-version-itexi.py
index 0a50a466fe7b22268ad5aa04a2d38156fe9e5da9..f4dc066fccc6c762fb3cf4981b3a1c9a13d96217 100644 (file)
@@ -18,10 +18,6 @@ depth = "../../"
 # these links are relative from the v2.13 docs
 #depth = "../../../../"
 
-# FIXME: remove the user/lilypond-  when 2.14 becomes stable
-WEB_DOCLINK_STABLE = depth + "doc/v2.12/Documentation/user/lilypond-"
-WEB_DOCLINK_DEVEL  = depth + "doc/v2.13/Documentation/"
-
 
 
 VERSION_STABLE = ""
@@ -70,98 +66,15 @@ 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{"
-    # TODO: generalize this
-    if (version[:4] == '2.13'):
-        string += WEB_DOCLINK_DEVEL
-    if (version[:4] == '2.12'):
-        string += WEB_DOCLINK_STABLE
-    string += url
-    string += ","
-    string += linktext
-    string += "}"
-    make_macro(macroname, string)
-
-def make_manual_links(name, version):
-    for m in manuals:
-        manual = m
-        if (m=='music-glossary'):
-            mshort = 'glossary'
-        else:
-            mshort = m
-        make_ver_link("manual"+name+mshort.capitalize()+'Pdf',
-                  version,
-                  manual + '.pdf',
-                  manual.capitalize() + '.pdf')
-        make_ver_link("manual"+name+mshort.capitalize()+'Split',
-                  version,
-                  manual+'/index.html',
-                  manual.capitalize() + ' (split HTML)')
-        make_ver_link("manual"+name+mshort.capitalize()+'Big',
-                  version,
-                  manual+'-big-page.html',
-                  manual.capitalize() + ' (big HTML)')
-
-
+print "@c This file was autogenerated"
+print "@c     from: VERSION"
+print "@c     by:   %s" % sys.argv[0]
+print ""
 print "@c ************************ Version numbers ************"
+print ""
+
 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)
-
-
-
+print "@c *****************************************************"