[DebianGIS-dev] [SCM] saga branch, master, updated. 4cef8b1385933b1998d28f38b39bbcd4484a24b2

Johan Van de Wauw johan.vandewauw at gmail.com
Mon Mar 8 20:44:36 UTC 2010


The following commit has been merged in the master branch:
commit 4cef8b1385933b1998d28f38b39bbcd4484a24b2
Author: Johan Van de Wauw <johan.vandewauw at gmail.com>
Date:   Mon Mar 8 21:43:32 2010 +0100

    Base version number on upstream configure.in
    
    Instead of debian/changelog

diff --git a/debian/rules b/debian/rules
index 8bf9c69..5301c57 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,10 +4,8 @@ include /usr/share/cdbs/1/class/autotools.mk
 
 DEB_CONFIGURE_EXTRA_FLAGS = --enable-unicode
 DEB_INSTALL_MANPAGES_saga = saga_cmd.1
-
-VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | \
-   cut -f 2 -d ' ' | cut -f 1 -d '-')
-
+VERSION := $(shell grep '^AC_INIT' configure.in | \
+	sed 's/AC_INIT(saga, \([0-9|\.]*\)\,.*)/\1/g')
 # remove libtool helpers
 install/saga::
 	find debian/tmp/usr/lib ! -type d -a -name "*.la" -delete
@@ -21,5 +19,5 @@ cleanbuilddir/saga::
 	rm -f saga_gui.1
 
 debian/% :: debian/%.in
-	sed -e 's/@VERSION@/$(VERSION)/' -e 's/@LIBSAGAGDISO@/$(LIBSAGAGDISO)/' $< >$@
+	sed -e 's/@VERSION@/$(VERSION)/' $< >$@
 

-- 
Saga GIS



More information about the Pkg-grass-devel mailing list