[SCM] vdr-plugin-lcdproc packaging repository branch, master, updated. debian/0.0.10-jw8-1-6-g692547b

etobi git at e-tobi.net
Sat Mar 23 08:41:37 UTC 2013


The following commit has been merged in the master branch:
commit 8845dc4ac63617503d47a78982ad100dec61cc76
Author: etobi <git at e-tobi.net>
Date:   Sat Mar 23 09:24:02 2013 +0100

    * New upstream release
    * Added get-vcs-snapshot

diff --git a/debian/changelog b/debian/changelog
index c0efbbe..281fb51 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+vdr-plugin-lcdproc (0.0.10-jw8-3) experimental; urgency=low
+
+  * New upstream release
+  * Added get-vcs-snapshot
+
+ -- Tobias Grimm <etobi at debian.org>  Sat, 23 Mar 2013 09:23:33 +0100
+
 vdr-plugin-lcdproc (0.0.10-jw8-1) experimental; urgency=low
 
   * New upstream release
diff --git a/debian/get-vcs-snapshot.sh b/debian/get-vcs-snapshot.sh
new file mode 100644
index 0000000..6b6adf9
--- /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/-[^-]*$//`
+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 2e942e5..e8b1458 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,3 +17,6 @@ cleanbuilddir::
 
 common-binary-predeb-arch::
 	sh /usr/share/vdr-dev/dependencies.sh
+
+get-vcs-snapshot:
+	sh debian/get-vcs-snapshot.sh

-- 
vdr-plugin-lcdproc packaging repository



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