[vdr-plugin-iptv] 01/07: Added VCS snapshot script

Tobias Grimm tiber-guest at moszumanska.debian.org
Sun Feb 4 14:31:39 UTC 2018


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

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

commit cc4b33085a2c7cc8cd499c5a532e2d407969291f
Author: Tobias Grimm <git at e-tobi.net>
Date:   Sun Feb 4 15:28:24 2018 +0100

    Added VCS snapshot script
---
 debian/get-vcs-snapshot.sh | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/debian/get-vcs-snapshot.sh b/debian/get-vcs-snapshot.sh
new file mode 100644
index 0000000..d443734
--- /dev/null
+++ b/debian/get-vcs-snapshot.sh
@@ -0,0 +1,19 @@
+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="${VERSION_UPSTREAM}+git${VERSION_DATE}"
+
+git clone --depth 1 https://github.com/rofafor/vdr-plugin-iptv.git
+
+cd ${DEB_SOURCE_PACKAGE}
+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}
+
+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-iptv.git



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