r5111 - packages/trunk/warzone2100/debian

Paul Wise pabs at alioth.debian.org
Sun Dec 30 23:13:27 UTC 2007


Author: pabs
Date: 2007-12-30 23:13:25 +0000 (Sun, 30 Dec 2007)
New Revision: 5111

Modified:
   packages/trunk/warzone2100/debian/changelog
   packages/trunk/warzone2100/debian/rules
Log:
* Tell the build scripts which SVN version we are

Modified: packages/trunk/warzone2100/debian/changelog
===================================================================
--- packages/trunk/warzone2100/debian/changelog	2007-12-30 12:00:41 UTC (rev 5110)
+++ packages/trunk/warzone2100/debian/changelog	2007-12-30 23:13:25 UTC (rev 5111)
@@ -20,6 +20,7 @@
   * Clean up the debian/rules clean target
   * Install/build stuff in a more standard manner
   * Install the new translations into the data package
+  * Tell the build scripts which SVN version we are
 
  -- Paul Wise <pabs at debian.org>  Sat, 29 Dec 2007 10:32:03 +0930
 

Modified: packages/trunk/warzone2100/debian/rules
===================================================================
--- packages/trunk/warzone2100/debian/rules	2007-12-30 12:00:41 UTC (rev 5110)
+++ packages/trunk/warzone2100/debian/rules	2007-12-30 23:13:25 UTC (rev 5111)
@@ -7,6 +7,7 @@
 DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
+UPSTREAM_SVN_VERSION = $(shell dpkg-parsechangelog | sed -n 's/^Version: .*svn\([^-]*\).*/\1/p')
 
 CFLAGS  = -Wall -g
 LDFLAGS = -Wl,-z,defs
@@ -23,6 +24,8 @@
 configure: patch config.status
 config.status:
 	dh_testdir
+	cp autorevision.conf autorevision.conf.bak
+	echo revision=$(UPSTREAM_SVN_VERSION) >> autorevision.conf
 	./autogen.sh
 	./configure \
 	    CFLAGS="$(CFLAGS)" \
@@ -75,6 +78,8 @@
 	find -iname Makefile.in -print0 | xargs -0 rm -f
 	rm -f depcomp aclocal.m4 configure config.guess \
 	      install-sh config.sub missing config.h.in
+	[ -f autorevision.conf.bak ] && \
+	mv -f autorevision.conf.bak autorevision.conf
 # -------------------------------------
 
 




More information about the Pkg-games-commits mailing list