[vdr-plugin-live] 05/08: Updated get-vcs-snapshot.sh

Tobias Grimm tiber-guest at moszumanska.debian.org
Wed Oct 29 22:33:35 UTC 2014


This is an automated email from the git hooks/post-receive script.

tiber-guest pushed a commit to branch master
in repository vdr-plugin-live.

commit 4c746f634d81d8120a4f099a80a5cfcaa33b62bf
Author: etobi <git at e-tobi.net>
Date:   Wed Oct 29 22:50:28 2014 +0100

    Updated get-vcs-snapshot.sh
---
 debian/get-vcs-snapshot.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/get-vcs-snapshot.sh b/debian/get-vcs-snapshot.sh
index 001d39f..c9702a0 100644
--- a/debian/get-vcs-snapshot.sh
+++ b/debian/get-vcs-snapshot.sh
@@ -2,13 +2,14 @@ echo Downloading latest from git repository...
 set -e
 
 DEB_SOURCE_PACKAGE=`egrep '^Source: ' debian/control | cut -f 2 -d ' '`
+VERSION_UPSTREAM=`dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2 | cut -d- -f1 | sed -r 's/(.*)\+git.*/\1/'`
 VERSION_DATE=`/bin/date --utc +%0Y%0m%0d`
-VERSION_FULL="0.2.0+git${VERSION_DATE}"
+VERSION_FULL="${VERSION_UPSTREAM}+git${VERSION_DATE}"
 
 git clone --depth 1 git://projects.vdr-developer.org/${DEB_SOURCE_PACKAGE}.git
 
 cd ${DEB_SOURCE_PACKAGE}
-GIT_SHA=`git show --pretty=format:"%h" --quiet || true`
+GIT_SHA=`git show --pretty=format:"%h" --quiet | head -1 || true`
 cd ..
 
 tar --exclude=.git -czf "../${DEB_SOURCE_PACKAGE}_${VERSION_FULL}.orig.tar.gz" ${DEB_SOURCE_PACKAGE}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-vdr-dvb/vdr-plugin-live.git



More information about the pkg-vdr-dvb-changes mailing list