r231 - scripts/trunk

lizardo at linuxfromscratch.org lizardo at linuxfromscratch.org
Sun Jun 12 20:47:53 PDT 2005


Author: lizardo
Date: 2005-06-12 21:47:53 -0600 (Sun, 12 Jun 2005)
New Revision: 231

Modified:
   scripts/trunk/update-website.mk
Log:
Added rsync commands to add www "external data" (i.e. content not generated by update-website.sh) to www2. On a future migration to www2, these rsync commands should be removed, as the external scripts will put their data directly on www2.


Modified: scripts/trunk/update-website.mk
===================================================================
--- scripts/trunk/update-website.mk	2005-06-13 03:42:51 UTC (rev 230)
+++ scripts/trunk/update-website.mk	2005-06-13 03:47:53 UTC (rev 231)
@@ -73,15 +73,33 @@
 # TODO: These rules should be run by each project's post-commit script or by
 # cron jobs
 
+LFS_WWW = /home/httpd/www.linuxfromscratch.org
+
 update-alfs: svnlog2-ALFS
+	for i in view downloads; do \
+	mkdir -p $(TARGETDIR)/alfs/$$i/; \
+	rsync -av --delete $(LFS_WWW)/alfs/$$i/ $(TARGETDIR)/alfs/$$i/; \
+	done
 
 update-blfs: svnlog-BLFS
+	for i in view downloads; do \
+	mkdir -p $(TARGETDIR)/blfs/$$i/; \
+	rsync -av --delete $(LFS_WWW)/blfs/$$i/ $(TARGETDIR)/blfs/$$i/; \
+	done
 
 update-hints: svnlog-hints fetch-hints hints-tarball hints-symlinks hints-list
 
 update-hlfs: svnlog-HLFS
+	for i in view downloads; do \
+	mkdir -p $(TARGETDIR)/hlfs/$$i/; \
+	rsync -av --delete $(LFS_WWW)/hlfs/$$i/ $(TARGETDIR)/hlfs/$$i/; \
+	done
 
 update-lfs: svnlog-LFS
+	for i in view downloads; do \
+	mkdir -p $(TARGETDIR)/lfs/$$i/; \
+	rsync -av --delete $(LFS_WWW)/lfs/$$i/ $(TARGETDIR)/lfs/$$i/; \
+	done
 
 update-patches: svnlog-patches
 	svn -q update patches/downloads
@@ -115,7 +133,7 @@
 
 # Validate XHTML files
 # FIXME: better on a pre-commit script?
-# TODO: validation is not possible with SSI. We should find a way to validate
+# TODO: validation not possible with SSI? We should find a way to validate
 # the HTML code, though.
 validate:
 #	test -n "$(TARGETDIR)"




More information about the website mailing list