X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Fbuild%2Fwww_post.py;h=fec7f0e20cd144eda3bb99b02dd0a0ee38575aec;hb=c74f34d7833a8c562f8fd3c742fe342891ca9fb6;hp=a9ab88cd3ecbc9f2af49a86ec971313fa51f7d4e;hpb=5a8fc08a0a818031de9b3fcf79c5a6528431fa07;p=lilypond.git diff --git a/scripts/build/www_post.py b/scripts/build/www_post.py index a9ab88cd3e..fec7f0e20c 100644 --- a/scripts/build/www_post.py +++ b/scripts/build/www_post.py @@ -41,15 +41,21 @@ 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 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)