From: Alessio Treglia Date: Fri, 10 Feb 2012 18:51:43 +0000 (+0100) Subject: Allow to select a new revision via GPAC_SVN_REVISION envvar. X-Git-Tag: archive/raspbian/1.0.1+dfsg1-4+rpi1~1^2~241 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d2e4516391001494e29d9042cda5867ffdc724a1;p=gpac.git Allow to select a new revision via GPAC_SVN_REVISION envvar. --- diff --git a/debian/gpac-get-orig-source b/debian/gpac-get-orig-source index 1ce3ddc..64993cd 100755 --- a/debian/gpac-get-orig-source +++ b/debian/gpac-get-orig-source @@ -3,7 +3,8 @@ # Script used to generate the orig source tarball for gpac. GPAC_SVN_URL="http://gpac.svn.sourceforge.net/svnroot/gpac/trunk/gpac" -GPAC_SVN_REVISION="3450" +GPAC_SVN_CURRENT_REVISION=$(head debian/changelog -n 1 | sed -e 's/.*+svn\([0-9]\+\)[^0-9].*$/\1/') +echo "Retrieving revision ${GPAC_SVN_REVISION:=${GPAC_SVN_CURRENT_REVISION}} ..." GPAC_VERSION="0.4.5+svn${GPAC_SVN_REVISION}" svn export -r "$GPAC_SVN_REVISION" "$GPAC_SVN_URL" "gpac-${GPAC_VERSION}"