[SCM] vdr-plugin-sleeptimer packaging repository branch, master, updated. debian/0.8.2+git20120518-1-4-gf3e5bea

etobi git at e-tobi.net
Tue Apr 2 20:23:02 UTC 2013


The following commit has been merged in the master branch:
commit 4a9d84f99202251ae6e4a81141d9035bdfab485f
Author: etobi <git at e-tobi.net>
Date:   Tue Apr 2 22:02:46 2013 +0200

    Improved get-vcs-snapshot

diff --git a/debian/get-vcs-snapshot.sh b/debian/get-vcs-snapshot.sh
index c9702a0..c7fd19e 100644
--- a/debian/get-vcs-snapshot.sh
+++ b/debian/get-vcs-snapshot.sh
@@ -2,7 +2,7 @@ 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_UPSTREAM=`dpkg-parsechangelog | grep ^Version: | sed -e 's/^Version:\s*//' -e s/-[^-]*$// -e s/\+git.*//`
 VERSION_DATE=`/bin/date --utc +%0Y%0m%0d`
 VERSION_FULL="${VERSION_UPSTREAM}+git${VERSION_DATE}"
 
@@ -14,6 +14,7 @@ cd ..
 
 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}
+
+git-import-orig --pristine-tar "../${DEB_SOURCE_PACKAGE}_${VERSION_FULL}.orig.tar.gz"
+dch -v "$VERSION_FULL-1" "New Upstream Snapshot (commit $GIT_SHA)"

-- 
vdr-plugin-sleeptimer packaging repository



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