r783 - x86/trunk/packages/LFS-BOOK

justin at linuxfromscratch.org justin at linuxfromscratch.org
Sun Sep 25 20:50:42 PDT 2005


Author: justin
Date: 2005-09-25 21:50:41 -0600 (Sun, 25 Sep 2005)
New Revision: 783

Modified:
   x86/trunk/packages/LFS-BOOK/Makefile
Log:
Fixed LFS-BOOK makefile again, added sed to change WWW_HOME.

Modified: x86/trunk/packages/LFS-BOOK/Makefile
===================================================================
--- x86/trunk/packages/LFS-BOOK/Makefile	2005-09-26 03:29:59 UTC (rev 782)
+++ x86/trunk/packages/LFS-BOOK/Makefile	2005-09-26 03:50:41 UTC (rev 783)
@@ -5,6 +5,7 @@
 DIR= $(NM)-$(VRS)-HTML
 
 URL= svn://svn.linuxfromscratch.org/LFS/$(VRS)/BOOK
+FIREFOX_CONFIG= $(ROOT)/root/.mozilla/firefox/2qwpcv2u.default/prefs.js
 
 # Targets
 
@@ -18,6 +19,11 @@
 	@$(call echo_message, Building)
 	@svn co -q $(URL) $(DIR)
 	@cd $(DIR) ; make BASEDIR=/usr/share/$(DIR)
+	@sed -i \
+	 's at file:///.*index.html at file:///usr/share/$(DIR)/index.html@' \
+	 $(FIREFOX_CONFIG)
+	@sed -i 's at WWW_HOME=\".*\"@WWW_HOME=\"/usr/share/$(DIR)/index.html\"@' \
+	 $(ROOT)/etc/profile
 	@make clean >$(DIR)-$@.log 2>&1
 	@touch $@
 




More information about the livecd mailing list