]> git.donarmstrong.com Git - lilypond.git/commitdiff
reinstate old web tar/copying.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 4 Jun 2006 16:25:15 +0000 (16:25 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 4 Jun 2006 16:25:15 +0000 (16:25 +0000)
ChangeLog
GNUmakefile.in

index 334fe29a84ac9331088add3264545bcd3ca0ae8d..9eb93c21cd456c1dd382fafef04336fea546aea3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-06-04  Han-Wen Nienhuys  <hanwen@lilypond.org>
+
+       * GNUmakefile.in: reinstate old web tar/copying.
+
 2006-06-03  Han-Wen Nienhuys  <hanwen@lilypond.org>
 
        * lily/lyric-combine-music-iterator.cc (find_voice): return 0 if
index 21681b64ccdf5a553134aeba4bca0223cd9de3ef..83d1c1621c4a56fb74b9e483a09a0b5861cdb8e5 100644 (file)
@@ -73,17 +73,27 @@ local-WWW-post:
 
        cd $(top-build-dir) && $(FIND) . -name '*.html' -print | $(footifymail) xargs $(footify)
 
+       cd $(top-build-dir) && find Documentation input \
+               $(web-ext:%=-path '*/out-www/*.%' -or) -type l \
+               > $(outdir)/weblist
+       ls $(outdir)/*.html >> $(outdir)/weblist
+
+## urg: this is too hairy, should write a python script to do this.
+
 ## rewrite file names so we lose out-www
        rm -rf $(outdir)/web-root/ 
-       for d in out-www `cd $(top-build-dir) && find Documentation input -name 'out-www' `; do \
-               echo $$d ; \
-               (mkdir -p $(outdir)/web-root/$$d/ || true) ; \
-               rsync -Wa --include source --include music-glossary \
-                       --include lilypond-internals  \
-                       --include lilypond \
-               $(foreach pat,$(web-ext), --include '*'.$(pat)) $(top-build-dir)/$$d/ $(outdir)/web-root/$$d/../ ; \
+       mkdir $(outdir)/web-root/
+## urg slow.
+       cat $(outdir)/weblist | (cd $(top-build-dir); tar -cf-  -T- ) | \
+               tar -C $(outdir)/web-root/ -xf -  
+       for dir in $(outdir)/web-root/ ; do  \
+               cd $$dir && \
+               for a in `find . -name out-www`; do \
+                       rsync -a  --link-dest $$a/ $$a/ $$a/.. ; \
+                       rm -rf $$a ; \
+               done \
        done
-       echo $(TOPLEVEL_VERSION)> $(outdir)/web-root/VERSION 
+       echo $(TOPLEVEL_VERSION) > $(outdir)/web-root/VERSION
 
 tree-prefix = $(outdir)
 tree-bin = $(tree-prefix)/bin