[SCM] gpac/master: Pass GPAC_SVN_REVISION via debian/rules.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Fri Feb 10 21:48:30 UTC 2012


The following commit has been merged in the master branch:
commit a2990fe186fef9b17973fc4446969182e18be369
Author: Alessio Treglia <alessio at debian.org>
Date:   Fri Feb 10 22:48:20 2012 +0100

    Pass GPAC_SVN_REVISION via debian/rules.

diff --git a/debian/gpac-get-orig-source b/debian/gpac-get-orig-source
index 44c5684..9c814ee 100755
--- a/debian/gpac-get-orig-source
+++ b/debian/gpac-get-orig-source
@@ -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
diff --git a/debian/rules b/debian/rules
index de9aada..5a23449 100755
--- a/debian/rules
+++ b/debian/rules
@@ -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

-- 
gpac packaging



More information about the pkg-multimedia-commits mailing list