r7646 - packages/trunk/worldofpadman/debian

Jack Coulter jscinoz-guest at alioth.debian.org
Tue Jul 1 13:35:23 UTC 2008


Author: jscinoz-guest
Date: 2008-07-01 13:35:23 +0000 (Tue, 01 Jul 2008)
New Revision: 7646

Modified:
   packages/trunk/worldofpadman/debian/rules
Log:
get-orig-source rule

Modified: packages/trunk/worldofpadman/debian/rules
===================================================================
--- packages/trunk/worldofpadman/debian/rules	2008-07-01 13:01:08 UTC (rev 7645)
+++ packages/trunk/worldofpadman/debian/rules	2008-07-01 13:35:23 UTC (rev 7646)
@@ -9,6 +9,10 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+DEBIAN_DIR:=$(shell echo ${MAKEFILE_LIST} | awk '{print $$1}' | xargs dirname)
+DEB_SOURCE_PACKAGE:=$(shell dpkg-parsechangelog | grep Source |cut -f2 -d" ")
+VERSION:=$(shell dpkg-parsechangelog | grep Version | cut -d" " -f2|cut -d"-" -f1)
+TMPDIR:=$(shell mktemp -dp./)
 
 CFLAGS = -Wall -g
 
@@ -18,6 +22,17 @@
 	CFLAGS += -O2
 endif
 
+
+get-orig-source:
+	cd ${DEBIAN_DIR}/..
+	uscan --force-download --no-symlink
+	cd $(TMPDIR); \
+	tar -xvvjf ../../wopengine_src-$(VERSION).tar.bz2; \
+	tar -cvvz --exclude .svn --exclude .svnignore * > \
+	../../${DEB_SOURCE_PACKAGE}_$(VERSION).orig.tar.gz
+	rm ../wopengine_src-$(VERSION).tar.bz2
+	rm -rf ${TMPDIR}
+
 build: build-arch
 build-arch: build-arch-stamp
 build-arch-stamp:




More information about the Pkg-games-commits mailing list