X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Fbuild%2Fwebsite_post.py;h=129c1217d325ecfc148eafac80f20e3590fdb9e6;hb=569714401fbe0e814f0282059f157aa36a54c706;hp=6ad2d5995e92edaa992ba3a5bc7f58cd6acb383f;hpb=54b02666750062788185bd3f99e644d621e348c2;p=lilypond.git diff --git a/scripts/build/website_post.py b/scripts/build/website_post.py index 6ad2d5995e..129c1217d3 100644 --- a/scripts/build/website_post.py +++ b/scripts/build/website_post.py @@ -153,7 +153,7 @@ for file in html_files: lang = '' # possibly necessary for automatic language selection file_symlink = file.replace(".html", ".en.html") - if (not (os.path.exists(file_symlink))): + if not os.path.lexists (file_symlink): os.symlink (file, file_symlink) elif (len(file_split) == 3): # it's a translation @@ -200,10 +200,10 @@ 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.12') >= 0): - line = line.replace('a href=', 'a onClick=\"javascript:urchinTracker(\'/download/v2.12\');\" href=') - elif (line.find('2.13') >= 0): - line = line.replace('a href=', 'a onClick=\"javascript:urchinTracker(\'/download/v2.13\');\" href=') + if (line.find('2.14') >= 0): + line = line.replace('a href=', 'a onClick=\"javascript:urchinTracker(\'/download/v2.14\');\" href=') + elif (line.find('2.15') >= 0): + line = line.replace('a href=', 'a onClick=\"javascript:urchinTracker(\'/download/v2.15\');\" href=') ### add language selection footer if (line.find("
") >= 0): outfile.write("
\n")