r7361 - trunk/BOOK

dnicholson at linuxfromscratch.org dnicholson at linuxfromscratch.org
Tue Apr 8 10:32:18 PDT 2008


Author: dnicholson
Date: 2008-04-08 11:32:17 -0600 (Tue, 08 Apr 2008)
New Revision: 7361

Modified:
   trunk/BOOK/Makefile
Log:
Reorganize to generate patches script and then strip list with awk


Modified: trunk/BOOK/Makefile
===================================================================
--- trunk/BOOK/Makefile	2008-04-08 17:32:12 UTC (rev 7360)
+++ trunk/BOOK/Makefile	2008-04-08 17:32:17 UTC (rev 7361)
@@ -111,12 +111,15 @@
 	  --output $(RENDERTMP)/blfs-html.xml stylesheets/lfs-xsl/profile.xsl \
 	  $(RENDERTMP)/blfs-full.xml
 
-blfs-patch-list: $(RENDERTMP)/blfs-full.xml
-	@echo "Generating blfs-patch-list..."
-	$(Q)xsltproc --nonet --output $(RENDERTMP)/blfs-patch-list \
+blfs-patch-list: blfs-patches.sh
+	@echo "Generating blfs patch list..."
+	$(Q)awk '{if ($$1 == "copy") {sub(/.*\//, "", $$2); print $$2}}' \
+	  blfs-patches.sh > blfs-patch-list
+
+blfs-patches.sh: $(RENDERTMP)/blfs-full.xml
+	@echo "Generating blfs patch script..."
+	$(Q)xsltproc --nonet --output blfs-patches.sh \
 	  stylesheets/patcheslist.xsl $(RENDERTMP)/blfs-full.xml
-	$(Q)sed -e "s|^.*/||" $(RENDERTMP)/blfs-patch-list > $(RENDERTMP)/blfs-patches
-	$(Q)sort $(RENDERTMP)/blfs-patches > blfs-patch-list
 
 wget-list: $(BASEDIR)/wget-list
 $(BASEDIR)/wget-list: $(RENDERTMP)/blfs-full.xml




More information about the blfs-book mailing list