]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix the 404 on contributor-big-page and contributor/website-build (issue 1974).
authorJulien Rioux <jrioux@physics.utoronto.ca>
Mon, 17 Oct 2011 17:34:50 +0000 (13:34 -0400)
committerGraham Percival <graham@percival-music.ca>
Tue, 25 Oct 2011 00:13:04 +0000 (01:13 +0100)
They were actually excluded in the www_post processing stage because
they contain the string 'UNTRANSLATED NODE: IGNORE ME', which is part
of the actual documentation.

scripts/build/www_post.py

index 17af63109edf3d3728ed44c5a49a1e77452cf21f..fec7f0e20cd144eda3bb99b02dd0a0ee38575aec 100644 (file)
@@ -47,9 +47,15 @@ dirs, symlinks, files = mirrortree.walk_tree (
 # actual mirrorring stuff
 html_files = []
 hardlinked_files = []
+# These whitelisted files actually do contain the string
+# 'UNTRANSLATED NODE: IGNORE ME' for documentation purposes.
+whitelisted_files = [
+    'Documentation/out-www/contributor-big-page.html',
+    'Documentation/out-www/contributor/website-build.html',
+]
 for f in files:
     if f.endswith ('.html'):
-        if not 'UNTRANSLATED NODE: IGNORE ME' in open (f).read ():
+        if f in whitelisted_files or not 'UNTRANSLATED NODE: IGNORE ME' in open (f).read ():
             html_files.append (f)
     else:
         hardlinked_files.append (f)