[vdr-plugin-xineliboutput] 04/10: Updated upstream VCS location

Tobias Grimm tiber-guest at moszumanska.debian.org
Tue Jan 31 23:25:32 UTC 2017


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

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

commit 82935a47a92ff01da96c0021ee40bc488fcdd866
Author: Tobias Grimm <etobi at debian.org>
Date:   Tue Jan 31 23:08:52 2017 +0100

    Updated upstream VCS location
---
 debian/get-vcs-snapshot.sh | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/debian/get-vcs-snapshot.sh b/debian/get-vcs-snapshot.sh
index a182639..14abdf9 100644
--- a/debian/get-vcs-snapshot.sh
+++ b/debian/get-vcs-snapshot.sh
@@ -1,15 +1,19 @@
-echo Downloading latest from cvs repository...
+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/(.*)\+cvs.*/\1/'`
+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="${VERSION_UPSTREAM}+cvs${VERSION_DATE}"
+VERSION_FULL="${VERSION_UPSTREAM}+git${VERSION_DATE}"
 
-cvs -z3 -d:pserver:anonymous at xineliboutput.cvs.sourceforge.net:/cvsroot/xineliboutput export -DNOW -d ${DEB_SOURCE_PACKAGE} vdr-xineliboutput
+git clone --depth 1 https://git.code.sf.net/p/xineliboutput/git ${DEB_SOURCE_PACKAGE}
 
-tar cvfz "../${DEB_SOURCE_PACKAGE}_$VERSION_FULL.orig.tar.gz" ${DEB_SOURCE_PACKAGE}
+cd ${DEB_SOURCE_PACKAGE}
+GIT_SHA=`git show --pretty=format:"%h" --quiet | head -1 || true`
+cd ..
 
-dch -v "$VERSION_FULL-1" "New Upstream Snapshot"
+tar --exclude=.git -czf "../${DEB_SOURCE_PACKAGE}_${VERSION_FULL}.orig.tar.gz" ${DEB_SOURCE_PACKAGE}
+
+dch -v "$VERSION_FULL-1" "New Upstream Snapshot (commit $GIT_SHA)"
 
 rm -rf ${DEB_SOURCE_PACKAGE}

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



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