Improve the Maefile and made an archive
authorPhilippe Le Hégaret <plh@w3.org>
Mon, 17 Nov 2008 15:10:30 +0000
changeset 6 580a7e4fbf50
parent 5 fbdd9626f01a
child 7 022254d82fbb
Improve the Maefile and made an archive
testsuite/Makefile
--- a/testsuite/Makefile	Mon Nov 17 15:01:21 2008 +0000
+++ b/testsuite/Makefile	Mon Nov 17 15:10:30 2008 +0000
@@ -1,5 +1,27 @@
+TEST_SUBDIRS=Content Timing Styling Specification
+DATE=$(shell date "+%Y%m%d")
 
-main: filelist
+main: filelist archive
 
 filelist:
-	generate_filelist.xml.sh
+	echo "<files>" > filelist.xml
+	for DIR in $(TEST_SUBDIRS) ; do \
+          for file in $$DIR/*[0-9][0-9][0-9].xml ; do \
+	    echo "<file>$$file</file>" >>filelist.xml ; \
+	  done \
+	done
+	echo "</files>" >>filelist.xml
+
+archive: filelist
+	rm -f testsuite.zip
+	zip testsuite.zip filelist.xml LICENSE
+	for DIR in $(TEST_SUBDIRS) ; do \
+          for file in $$DIR/*[0-9][0-9][0-9].xml ; do \
+	    zip testsuite.zip "$$file" ; \
+	  done \
+	done
+
+release: archive
+	cp testsuite.zip testsuite-$(DATE).zip
+
+