r777 - trunk/BOOK

jim at linuxfromscratch.org jim at linuxfromscratch.org
Wed Nov 30 12:57:07 PST 2005


Author: jim
Date: 2005-11-30 13:57:07 -0700 (Wed, 30 Nov 2005)
New Revision: 777

Modified:
   trunk/BOOK/
   trunk/BOOK/Makefile
Log:
 r833 at server:  jim | 2005-11-30 12:56:51 -0800
 Added: trouble target to Makefile. Make tracking down validation errors a lot easier.



Property changes on: trunk/BOOK
___________________________________________________________________
Name: svk:merge
   - 3949c430-d905-0410-97b6-f115d20341b5:/cross-lfs:831
f6929928-7304-0410-9559-ff6106abff4d:/cross-lfs:790
   + 3949c430-d905-0410-97b6-f115d20341b5:/cross-lfs:833
f6929928-7304-0410-9559-ff6106abff4d:/cross-lfs:790

Modified: trunk/BOOK/Makefile
===================================================================
--- trunk/BOOK/Makefile	2005-11-29 22:25:23 UTC (rev 776)
+++ trunk/BOOK/Makefile	2005-11-30 20:57:07 UTC (rev 777)
@@ -53,6 +53,14 @@
         xmllint --xinclude --noout --nonet --postvalid $(PWD)/$$arch-index.xml
 endef
 
+# TroubleShoot
+define TROUBLE
+	echo "Troubleshooting $$arch..." ; \
+        xmllint --xinclude --nonet --postvalid $(PWD)/$$arch-index.xml > /tmp/dump-$$arch ; \
+	xmllint --xinclude --noout --nonet --valid /tmp/dump-$$ach ; \
+	echo "You can now look at /tmp/dump-$$arch to see the errors"
+endef
+
 # Dump commands
 define DUMP
 	echo "Extracting commands from $$arch..." ; \
@@ -108,6 +116,11 @@
 	$(VALIDATE) ; \
 	done
 
+trouble:
+	@for arch in $(ARCH) ; do \
+	$(TROUBLE) ; \
+	done
+
 dump-commands:
 	@for arch in $(ARCH) ; do \
 	$(DUMP) ; \
@@ -118,4 +131,4 @@
 	$(DLLIST) ; \
 	done
 
-.PHONY: lfs toplevel common render nochunk nochunk_render pdf text validate dump-commands download-list
+.PHONY: lfs toplevel common render nochunk nochunk_render pdf text validate trouble dump-commands download-list




More information about the cross-lfs mailing list