]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/build/website_post.py
Imported Upstream version 2.16.2
[lilypond.git] / scripts / build / website_post.py
index 93e3c8d50d2bad0061c45d53b730d43b22107a98..d002dac6f09e9eaed722e58cc4e47d3670141fff 100644 (file)
@@ -1,7 +1,7 @@
 #!@PYTHON@
 #-*- coding: utf-8 -*-
 
-##### This is web_post.py. This script deals with translations
+##### This is website_post.py. This script deals with translations
 ##### in the "make website" target.
 
 import sys
@@ -112,11 +112,13 @@ def addLangExt(filename, lang, ext):
 
 def makeFooter (filename, currentLang):
     footer = '''<p id="languages">
+<!-- These links were autogenerated by %(me)s -->
 %(other)s: %(lst)s.
 <br>
 %(browser_language)s
 </p>
 '''
+    me = sys.argv[0]
     def link (lang):
         str = '''<a href="%(file_name)s">%(language_name)s</a>'''
         file_name = addLangExt (filename, lang, 'html')
@@ -203,9 +205,9 @@ urchinTracker();
         #### add google tracker goals
         if (line.find("href=\"http://download.linuxaudio.org") >= 0):
             # TODO: more ugly hardcoding to make releases hard. :(
-            if (line.find('2.14') >= 0):
+            if (line.find('2.16') >= 0):
                 line = line.replace('a href=', 'a onClick=\"javascript:urchinTracker(\'/download/v2.14\');\" href=')
-            elif (line.find('2.15') >= 0):
+            elif (line.find('2.17') >= 0):
                 line = line.replace('a href=', 'a onClick=\"javascript:urchinTracker(\'/download/v2.15\');\" href=')
         ### add language selection footer
         if (line.find("<div id=\"verifier_texinfo\">") >= 0):