r5684 - trunk/data
esteel at icculus.org
esteel at icculus.org
Wed Jan 28 06:49:56 EST 2009
Author: esteel
Date: 2009-01-28 06:49:56 -0500 (Wed, 28 Jan 2009)
New Revision: 5684
Modified:
trunk/data/Makefile
Log:
add a new Makefile target "pk3here" that builds the pk3 file inside the svn tree, without exporting and thus saves quite some megabytes. Use with caution, it excludes all the usual svn control files but it could still zip unwanted files.
Modified: trunk/data/Makefile
===================================================================
--- trunk/data/Makefile 2009-01-28 11:41:03 UTC (rev 5683)
+++ trunk/data/Makefile 2009-01-28 11:49:56 UTC (rev 5684)
@@ -2,6 +2,7 @@
PERL ?= perl
PK3NAME ?= `date +../data%Y%m%d.pk3`
ZIP ?= 7za a -tzip -mx=9
+ZIPEXCLUDE ?= -x\!*.pk3 -xr\!\.svn -x\!qcsrc
FTEQCCFLAGS ?= -Wall -Wno-mundane -O3 -Ono-c -Ono-cs -flo
FTEQCCFLAGS_PROGS ?=
@@ -26,6 +27,20 @@
.PHONY: pk3
pk3: $(PK3NAME)
+.PHONY: pk3here
+pk3here: qc
+ $(RM) $(PK3NAME); \
+ set -ex; \
+ ABSPK3NAME=$(PK3NAME); \
+ case $$ABSPK3NAME in \
+ /*) \
+ ;; \
+ *) \
+ ABSPK3NAME=$$PWD/$$ABSPK3NAME; \
+ ;; \
+ esac; \
+ $(ZIP) $(ZIPEXCLUDE) $$ABSPK3NAME .
+
.PHONY: clean
clean:
rm -f progs.dat menu.dat csprogs.dat
More information about the nexuiz-commits
mailing list