Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1321)

Unified Diff: scripts/build/www_post.py

Issue 5268050: Fix the 404 on contributor-big-page and contributor/website-build (issue 1917). (Closed)
Patch Set: Created 12 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/build/www_post.py
diff --git a/scripts/build/www_post.py b/scripts/build/www_post.py
index 17af63109edf3d3728ed44c5a49a1e77452cf21f..fec7f0e20cd144eda3bb99b02dd0a0ee38575aec 100644
--- a/scripts/build/www_post.py
+++ b/scripts/build/www_post.py
@@ -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)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b