]> git.donarmstrong.com Git - lilypond.git/blobdiff - buildscripts/www_post.py
Change Snippets compilation
[lilypond.git] / buildscripts / www_post.py
index 26cd613e4cdad36764c976bb424b124bc1638b08..278895aff93b7cc51ea73e9cd980fe932cfa2e0b 100644 (file)
@@ -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: