]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/bin/add-html-footer.py
release: 1.5.24
[lilypond.git] / stepmake / bin / add-html-footer.py
index 744c6ac5093a240b901bf4d962559f43d3b63243..fe15316b4150bff52bfe763e5c94612f733c7b7f 100644 (file)
@@ -40,7 +40,7 @@ of @PACKAGE_NAME@
 
 built = r"""<hr>
 <p><font size="-1">
-This page was built from @PACKAGE_NAME@-@PACKAGE_VERSION@ by<br>
+This page was built from @PACKAGE_NAME@-@PACKAGE_VERSION@ (@BRANCH@) by<br>
 </font>
 <address><font size="-1">@GCOS@ &lt;<a href="mailto:@MAILADDRESS@">@MAILADDRESS@</a>&gt;,
 @LOCALTIME@.</font></address>"""
@@ -218,6 +218,7 @@ def do_file (f):
                else:
                        s = s + footer
 
+
        #URUGRGOUSNGUOUNRIU
        index = index_url
        top = top_url
@@ -231,6 +232,12 @@ def do_file (f):
                #       index = "./index.html"
                #       top = "./"
 
+
+       versiontup = string.split(package_version, '.')
+       branch_str = 'stable-branch' 
+       if string.atoi ( versiontup[1]) %  2:
+               branch_str = 'development-branch'
+               
        s = re.sub ('@INDEX@', index, s)
        s = re.sub ('@TOP@', top, s)
        s = re.sub ('@PACKAGE_NAME@', package_name, s)
@@ -239,7 +246,8 @@ def do_file (f):
        s = re.sub ('@GCOS@', gcos, s)
        s = re.sub ('@LOCALTIME@', localtime, s)
        s = re.sub ('@MAILADDRESS@', mail_address, s)
-
+       s = re.sub ('@BRANCH@', branch_str, s)  
+  
        m = re.match ('.*?<!-- (@[a-zA-Z0-9_-]*@)=(.*?) -->', s, re.DOTALL)
        while m:
                at_var = m.group (1)