[mw-devel] MW3 r1137 - trunk/src

welshbyte at sucs.org welshbyte at sucs.org
Wed Dec 16 10:04:11 GMT 2009


Author: welshbyte
Date: 2009-12-16 10:04:11 +0000 (Wed, 16 Dec 2009)
New Revision: 1137

Modified:
   trunk/src/Makefile
Log:
Rework make test to use svn export


Modified: trunk/src/Makefile
===================================================================
--- trunk/src/Makefile	2009-12-16 08:44:28 UTC (rev 1136)
+++ trunk/src/Makefile	2009-12-16 10:04:11 UTC (rev 1137)
@@ -121,11 +121,12 @@
 test:
 	make TESTDIR=$(CURDIR)/mwtest $@
 else
-TESTFILES=../colour ../help ../login.banner ../scripthelp ../talkhelp ../wizhelp
+TESTFILES=colour help login.banner scripthelp talkhelp wizhelp
 test:
 	mkdir -p "$(TESTDIR)"
 	cd "$(TESTDIR)" && mkdir -p mw run/mw log/mw lib/mw
-	cp -ua $(TESTFILES) "$(TESTDIR)/mw/"
-	find "$(TESTDIR)/mw/" -depth -type d -name .svn -exec rm -rf -- "{}" \;
+	for d in $(TESTFILES); do \
+		svn export --force ../$$d "$(TESTDIR)/mw/$$d"; \
+	done
 	make libdir="$(TESTDIR)" localstatedir="$(TESTDIR)"
 endif




More information about the mw-devel mailing list