X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fbuild%2Fwww_post.py;h=fec7f0e20cd144eda3bb99b02dd0a0ee38575aec;hb=c74f34d7833a8c562f8fd3c742fe342891ca9fb6;hp=b329390a5deab9dd7c5675d68a67490e184f36ea;hpb=3d8089a42af6304edb8dad56220e845c84832bb2;p=lilypond.git diff --git a/scripts/build/www_post.py b/scripts/build/www_post.py index b329390a5d..fec7f0e20c 100644 --- a/scripts/build/www_post.py +++ b/scripts/build/www_post.py @@ -25,7 +25,7 @@ target_pattern = os.path.join (outdir, '%s-root') # from HTML manuals/snippets page static_files = { os.path.join (outdir, 'index.html'): - ''' + ''' Redirecting to the documentation index...\n''', os.path.join (outdir, 'VERSION'): package_version + '\n', @@ -39,17 +39,24 @@ dirs, symlinks, files = mirrortree.walk_tree ( tree_roots = doc_dirs, process_dirs = outdir, exclude_dirs = '(^|/)((' + \ - r'po|out|out-test|out-cov|.*?[.]t2d|\w*?-root)|^Documentation/(' + \ + 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|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'): - html_files.append (f) + if f in whitelisted_files or 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]