Pass GPAC_SVN_REVISION via debian/rules.
authorAlessio Treglia <alessio@debian.org>
Fri, 10 Feb 2012 21:48:20 +0000 (22:48 +0100)
committerAlessio Treglia <alessio@debian.org>
Fri, 10 Feb 2012 21:48:20 +0000 (22:48 +0100)
debian/gpac-get-orig-source
debian/rules

index 44c568406a1c013cba099fb3307887a2293716d9..9c814ee4e81269b4a1b353f9800be5a6e294a40b 100755 (executable)
@@ -3,7 +3,6 @@
 # Script used to generate the orig source tarball for gpac.
 
 GPAC_SVN_URL="http://gpac.svn.sourceforge.net/svnroot/gpac/trunk/gpac"
-if test -z ${GPAC_SVN_REVISION}; then GPAC_SVN_REVISION="3450"; fi
 GPAC_VERSION="0.4.5+svn${GPAC_SVN_REVISION}"
 
 svn export -r "$GPAC_SVN_REVISION" "$GPAC_SVN_URL" "gpac-${GPAC_VERSION}" 1>/dev/null 2>&1
index de9aadaeedd414414996b792d5191f88c3cc02af..5a23449ae57c8b5f12973b090dace92217fea665 100755 (executable)
@@ -3,6 +3,7 @@
 export REPACK_SH=$(CURDIR)/debian/repack.sh
 
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+export GPAC_SVN_REVISION ?= $(shell dpkg-parsechangelog | grep Version | sed 's/Version:.*+svn\([0-9]\+\).*/\1/')
 
 %:
        dh $@ --parallel