From 84bb78f33665cc1640776f06e0a47d5c13e3e8a1 Mon Sep 17 00:00:00 2001 From: TimePath Date: Sun, 6 Mar 2016 19:46:36 +1100 Subject: [PATCH] Make csprogs pk3 --- .gitignore | 7 +++---- qcsrc/.gitignore | 6 +++--- qcsrc/Makefile | 21 +++++++++++++++++---- 3 files changed, 23 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 6ecb3d2eb..f4611af93 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ -csprogs.dat -menu.dat -progs.dat -*.lno +/*.dat +/*.lno + .DS_Store .idea/ diff --git a/qcsrc/.gitignore b/qcsrc/.gitignore index 79fce6a59..07a5db11e 100644 --- a/qcsrc/.gitignore +++ b/qcsrc/.gitignore @@ -1,3 +1,3 @@ -html/ -qccversion* -*.d +/html/ +/qccversion* +/*.pk3 diff --git a/qcsrc/Makefile b/qcsrc/Makefile index f6c67bbeb..64f712f5d 100644 --- a/qcsrc/Makefile +++ b/qcsrc/Makefile @@ -1,6 +1,4 @@ -SCM := $(shell if [ -d .svn ]; then echo svn; elif [ -d ../.git ]; then echo git; fi) -PERL ?= perl -QCCFLAGS_WATERMARK ?= $(shell git describe) +QCCFLAGS_WATERMARK ?= $(shell git describe --tags --dirty=*) CPP := cc -xc -E QCC ?= gmqcc NDEBUG ?= 1 @@ -34,11 +32,26 @@ QCCFLAGS ?= \ XON_BUILDSYSTEM = .PHONY: all -all: qc +all: qc pk3 .PHONY: qc qc: $(PROGS_OUT)/menu.dat $(PROGS_OUT)/progs.dat $(PROGS_OUT)/csprogs.dat +.PHONY: pk3 +pk3: qc + $(eval PROG=csprogs) + $(eval VER=${QCCFLAGS_WATERMARK}) + $(eval PK3=${PROG}-${VER}.pk3) + $(eval TXT=${PROG}-${VER}.txt) + $(eval DAT=${PROG}-${VER}.dat) + $(eval LNO=${PROG}-${VER}.lno) + @ echo "http://xonotic.org" > ${TXT} + @ ln -f $(PROGS_OUT)/${PROG}.dat ${DAT} + @ ln -f $(PROGS_OUT)/${PROG}.lno ${LNO} + @ rm *.pk3 + zip -9 ${PK3} ${TXT} ${DAT} ${LNO} + @ rm ${TXT} ${DAT} ${LNO} + .PHONY: clean clean: rm -f $(PROGS_OUT)/csprogs.dat -- 2.39.2