]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/build/www_post.py
Release: bump version.
[lilypond.git] / scripts / build / www_post.py
index cf1a7c38c61b4657e3f51a4e530b0e7b2e334259..17af63109edf3d3728ed44c5a49a1e77452cf21f 100644 (file)
@@ -41,7 +41,7 @@ dirs, symlinks, files = mirrortree.walk_tree (
     exclude_dirs = '(^|/)((' + \
         r'po|xref-maps|out|out-test|out-cov|.*?[.]t2d|\w*?-root)|^Documentation/(' + \
         '|'.join ([l.code for l in langdefs.LANGUAGES]) + '))(/|$)',
-    find_files = r'.*?\.(?:midi|html|pdf|png|jpe?g|txt|i?ly|signature|css|zip)$|VERSION',
+    find_files = r'.*?\.(?:midi|html|pdf|png|jpe?g|txt|i?ly|signature|css|zip|js|..\.idx|php)$|VERSION',
     exclude_files = r'lily-[0-9a-f]+.*\.(pdf|txt)')
 
 # actual mirrorring stuff
@@ -49,7 +49,8 @@ html_files = []
 hardlinked_files = []
 for f in files:
     if f.endswith ('.html'):
-        html_files.append (f)
+        if not 'UNTRANSLATED NODE: IGNORE ME' in open (f).read ():
+            html_files.append (f)
     else:
         hardlinked_files.append (f)
 dirs = [re.sub ('/' + outdir, '', d) for d in dirs]