[SCM] vdr-plugin-text2skin packaging repository branch, master, updated. debian/1.3.2-1-5-gc67e39e

etobi git at e-tobi.net
Sun May 6 12:29:24 UTC 2012


The following commit has been merged in the master branch:
commit b66ba9ac7ce1e1c27dca1d504909f75d588f75ba
Author: etobi <git at e-tobi.net>
Date:   Sun May 6 11:11:04 2012 +0200

    Added VCS snapshot script

diff --git a/debian/get-vcs-snapshot.sh b/debian/get-vcs-snapshot.sh
new file mode 100644
index 0000000..5179f3e
--- /dev/null
+++ b/debian/get-vcs-snapshot.sh
@@ -0,0 +1,18 @@
+echo Downloading latest from git repository...
+set -e
+
+DEB_SOURCE_PACKAGE=`egrep '^Source: ' debian/control | cut -f 2 -d ' '`
+VERSION_DATE=`/bin/date --utc +%0Y%0m%0d`
+VERSION_FULL="1.3.2+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}
+
+dch -v "$VERSION_FULL-1" "New Upstream Snapshot (commit $GIT_SHA)"
+
+rm -rf ${DEB_SOURCE_PACKAGE}
diff --git a/debian/rules b/debian/rules
index bd4c399..af3bfcd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,3 +16,6 @@ cleanbuilddir::
 
 common-binary-predeb-arch::
 	sh /usr/share/vdr-dev/dependencies.sh
+
+get-vcs-snapshot:
+	sh debian/get-vcs-snapshot.sh

-- 
vdr-plugin-text2skin packaging repository



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