[libgeotiff-epsg] 02/07: Update get-orig-source script to handle RC versions.
Bas Couwenberg
sebastic at debian.org
Thu Aug 11 14:48:14 UTC 2016
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository libgeotiff-epsg.
commit df22a130299e4e631c7c709522bf6c699a524c38
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Thu Aug 11 15:51:10 2016 +0200
Update get-orig-source script to handle RC versions.
---
debian/changelog | 1 +
debian/get-orig-source | 6 ++++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 42d54c0..5f16289 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
libgeotiff-epsg (1.4.1-4) UNRELEASED; urgency=medium
* Update watch file to also match pre-releases.
+ * Update get-orig-source script to handle RC versions.
-- Bas Couwenberg <sebastic at debian.org> Thu, 11 Aug 2016 15:45:57 +0200
diff --git a/debian/get-orig-source b/debian/get-orig-source
index 4e4f419..12edf6d 100755
--- a/debian/get-orig-source
+++ b/debian/get-orig-source
@@ -19,10 +19,12 @@ if [ -z $VERSION ]; then
exit 1
fi
+UPSTREAM_VERSION=$(echo $VERSION | sed 's/~rc/RC/g')
+
TMPDIR=$(mktemp -d)
-TARDIR=${PACKAGE}-${VERSION}
-TARFILE=${NAME}-${VERSION}.tar.gz
+TARDIR=${PACKAGE}-${UPSTREAM_VERSION}
+TARFILE=${NAME}-${UPSTREAM_VERSION}.tar.gz
# Download latest upstream tarball to temp dir
uscan --watchfile ${WATCHFILE} --download-version ${VERSION} --destdir ${TMPDIR}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/libgeotiff-epsg.git
More information about the Pkg-grass-devel
mailing list