r464 - scripts/trunk

lizardo at linuxfromscratch.org lizardo at linuxfromscratch.org
Wed Jul 13 17:22:40 PDT 2005


Author: lizardo
Date: 2005-07-13 18:22:39 -0600 (Wed, 13 Jul 2005)
New Revision: 464

Modified:
   scripts/trunk/update-website.mk
Log:
update-website.mk: Exporting the mailinglists file too, as it will be used by
update-search-engine.sh.


Modified: scripts/trunk/update-website.mk
===================================================================
--- scripts/trunk/update-website.mk	2005-07-14 00:03:13 UTC (rev 463)
+++ scripts/trunk/update-website.mk	2005-07-14 00:22:39 UTC (rev 464)
@@ -143,11 +143,18 @@
 	cp -p $< $@
 
 # swishcgi config file
-$(LFS_SEARCH)/.swishcgi.conf: $(SCRIPTS)/swishcgi.conf $(SCRIPTS)/mailinglists
+$(LFS_SEARCH)/.swishcgi.conf: $(SCRIPTS)/swishcgi.conf $(LFS_SEARCH)/.mailinglists
 	mv -f $@ $@.old
-	ml=`egrep -v '^[ \t]*#' $(SCRIPTS)/mailinglists | tr '\n' ' '`; \
+	ml=`cat $(LFS_SEARCH)/.mailinglists`; \
 	sed "s/%%mlists%%/$$ml/g" $< > $(LFS_SEARCH)/.swishcgi.conf
 
+# file containing the mailing list names (used by update-search-engine.sh and by
+# the rule above)
+$(LFS_SEARCH)/.mailinglists: $(SCRIPTS)/mailinglists
+	mv -f $@ $@.old
+	egrep -v '^[ \t]*#' $(SCRIPTS)/mailinglists | tr '\n' ' ' > \
+	$(LFS_SEARCH)/.mailinglists
+
 # Validate XHTML files
 # FIXME: better on a pre-commit script?
 #validate:




More information about the website mailing list