[mw-devel] MW3 r1136 - trunk/src
welshbyte at sucs.org
welshbyte at sucs.org
Wed Dec 16 08:44:28 GMT 2009
Author: welshbyte
Date: 2009-12-16 08:44:28 +0000 (Wed, 16 Dec 2009)
New Revision: 1136
Modified:
trunk/src/Makefile
Log:
- Fix make test to remove .svn directories from the test dir after the cp. Read-only files in them were causing permissions problems.
- Add quotes to deal with spaces in paths.
Modified: trunk/src/Makefile
===================================================================
--- trunk/src/Makefile 2009-12-13 21:03:57 UTC (rev 1135)
+++ trunk/src/Makefile 2009-12-16 08:44:28 UTC (rev 1136)
@@ -123,8 +123,9 @@
else
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/
- make libdir=$(TESTDIR) localstatedir=$(TESTDIR)
+ 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 -- "{}" \;
+ make libdir="$(TESTDIR)" localstatedir="$(TESTDIR)"
endif
More information about the mw-devel
mailing list