X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=buildscripts%2Fwww_post.py;h=278895aff93b7cc51ea73e9cd980fe932cfa2e0b;hb=91708b30fba67f8fd589980e03ff420c26473a5a;hp=26cd613e4cdad36764c976bb424b124bc1638b08;hpb=ece2e45d587f63565e81af44e1937ebe1f5e47a8;p=lilypond.git diff --git a/buildscripts/www_post.py b/buildscripts/www_post.py index 26cd613e4c..278895aff9 100644 --- a/buildscripts/www_post.py +++ b/buildscripts/www_post.py @@ -78,7 +78,13 @@ for t in targets: os.link (f, strip_file_name[t] (f)) for l in symlinks: p = mirrortree.new_link_path (os.path.normpath (os.readlink (l)), os.path.dirname (l), strip_re) - os.symlink (p, strip_file_name[t] (l)) + dest = strip_file_name[t] (l) + if not os.path.exists (dest): + os.symlink (p, dest) + + ## ad-hoc renaming to make xrefs between PDFs work + os.rename (os.path.join (out_root, 'input/lsr/lilypond-snippets.pdf'), + os.path.join (out_root, 'Documentation/user/lilypond-snippets.pdf')) # need this for content negotiation with documentation index if 'online' in targets: