[SCM] Packaging for scorched3d branch, master, updated. upstream/42.1dfsg-28-gaa654cd

Bruno Kleinert fuddl at tauware.de
Tue Jun 30 16:24:02 UTC 2009


The following commit has been merged in the master branch:
commit 158a6dedb0e7db9028de81bd3253783fddbeb86e
Author: Bruno Kleinert <fuddl at tauware.de>
Date:   Tue Jun 30 16:25:03 2009 +0200

    Add patch and unpatch targets to debian/rules

diff --git a/debian/rules b/debian/rules
index d63c7fa..2e20754 100755
--- a/debian/rules
+++ b/debian/rules
@@ -32,9 +32,19 @@ else
 	CFLAGS += -O2
 endif
 
-config.status:
-	dh_testdir
+patch: patch-stamp
+patch-stamp:
 	QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
+	touch patch-stamp
+
+unpatch:
+	[ ! -f patch-stamp ] || \
+		QUILT_PATCHES=debian/patches quilt pop -a -R || test $$? = 2
+	rm -f patch-stamp
+	rm -rf .pc
+
+config.status: patch-stamp
+	dh_testdir
 	sh ./autogen.sh $(confflags)
 
 build: build-stamp 
@@ -43,7 +53,8 @@ build-stamp: config.status
 	$(MAKE)
 	touch build-stamp
 
-clean:
+clean: clean-patched
+clean-patched: patch-stamp
 	dh_testdir
 	dh_testroot
 	rm -f build-stamp 
@@ -53,6 +64,7 @@ clean:
 	rm -f data/fonts/test.ttf
 	rm -f config.log config.status
 	rm -rf .pc
+	rm -f patch-stamp
 	dh_clean 
 
 install: build

-- 
Packaging for scorched3d



More information about the Pkg-games-commits mailing list