X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Fbuild%2Fwww_post.py;h=c62e02145a10001ce095d73b851be94d7f5e6a7d;hb=2f84bbe9a6dc6ca2d9a49eae0bf094744e47f11d;hp=7ec91dd80bc27bb2bff6c41c90aba3247af916a5;hpb=0640f8495c4af9cf7cf2ca7b952b3ee0bcd0b2bf;p=lilypond.git diff --git a/scripts/build/www_post.py b/scripts/build/www_post.py index 7ec91dd80b..c62e02145a 100644 --- a/scripts/build/www_post.py +++ b/scripts/build/www_post.py @@ -43,6 +43,14 @@ dirs, symlinks, files = mirrortree.walk_tree ( '|'.join ([l.code for l in langdefs.LANGUAGES]) + '))(/|$)', 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)') +# extra files: info and tex output from lilypond-book regtests +extra_files = mirrortree.walk_tree ( + tree_roots = ['input/regression/lilypond-book'], + process_dirs = outdir, + exclude_dirs = r'(^|/)(out|out-test)(/|$)', + find_files = r'.+\.(info|tex)$', + exclude_files = r'lily-[0-9a-f]+.*\.tex')[2] +files.extend(extra_files) # actual mirrorring stuff html_files = [] @@ -82,7 +90,7 @@ for t in targets: for l in symlinks: p = mirrortree.new_link_path (os.path.normpath (os.readlink (l)), os.path.dirname (l), strip_re) dest = strip_file_name[t] (l) - if not os.path.exists (dest): + if not os.path.lexists (dest): os.symlink (p, dest)