[SCM] live-manual branch, debian, updated. debian/2.0_a1-1-3-gc5a1346

Daniel Baumann daniel at debian.org
Sun Jun 6 15:50:38 UTC 2010


The following commit has been merged in the debian branch:
commit c5a1346f840725552ae181c41639be6fb33a3957
Author: Daniel Baumann <daniel at debian.org>
Date:   Sun Jun 6 17:30:32 2010 +0200

    Adding tidy target.

diff --git a/Makefile b/Makefile
index c7d95e9..e6482d3 100644
--- a/Makefile
+++ b/Makefile
@@ -12,6 +12,15 @@ test:
 
 	@echo "Checking for spelling errors... [not implemented yet - FIXME]"
 
+tidy:
+	for FILE in manual/en/*.xml xsl/*.xsl; \
+	do \
+		sed -i -e 's|^[ \t]*||' -e 's|[ \t]*$$||' $${FILE}; \
+		echo `cat $${FILE}` > $${FILE}.tmp; \
+		xmllint --format --noblanks --output $${FILE} $${FILE}.tmp; \
+		rm -f $${FILE}.tmp; \
+	done
+
 build:
 	mkdir -p build
 

-- 
live-manual



More information about the debian-live-changes mailing list