[SCM] vdr-plugin-tvguide packaging repository branch, master, updated. debian/0.0.1.vdr-1.7.34-1-4-g7123d83

etobi git at e-tobi.net
Thu Mar 28 08:24:13 UTC 2013


The following commit has been merged in the master branch:
commit 50b579f85aba100ff2403c1e60845d4a5c21500e
Author: etobi <git at e-tobi.net>
Date:   Thu Mar 28 09:21:37 2013 +0100

    Added debian/watch and get-vcs-snapshot

diff --git a/debian/changelog b/debian/changelog
index eed8e12..2d917a1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+vdr-plugin-tvguide (0.0.1.vdr-1.7.34-2) UNRELEASED; urgency=low
+
+  * Added debian/watch and get-vcs-snapshot
+
+ -- Tobias Grimm <etobi at debian.org>  Thu, 28 Mar 2013 09:20:01 +0100
+
 vdr-plugin-tvguide (0.0.1.vdr-1.7.34-1) unstable; urgency=low
 
   * Initial release
diff --git a/debian/get-vcs-snapshot.sh b/debian/get-vcs-snapshot.sh
new file mode 100644
index 0000000..c7fd19e
--- /dev/null
+++ b/debian/get-vcs-snapshot.sh
@@ -0,0 +1,20 @@
+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: | 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}"
+
+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 | head -1 || true`
+cd ..
+
+tar --exclude=.git -czf "../${DEB_SOURCE_PACKAGE}_${VERSION_FULL}.orig.tar.gz" ${DEB_SOURCE_PACKAGE}
+
+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)"
diff --git a/debian/rules b/debian/rules
index 25d9982..1c1b37b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,3 +9,6 @@
 override_dh_gencontrol:
 	sh /usr/share/vdr-dev/dependencies.sh
 	dh_gencontrol
+
+get-vcs-snapshot:
+	sh debian/get-vcs-snapshot.sh
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..7eb173f
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://projects.vdr-developer.org/projects/plg-tvguide/files .*/vdr-tvguide-(.*)\.tgz

-- 
vdr-plugin-tvguide packaging repository



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