[dtv-scan-tables] 02/05: Set snapshot date as date of latest upstream commit

Jonathan McCrohan jmccrohan-guest at alioth.debian.org
Tue Aug 6 23:36:07 UTC 2013


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

jmccrohan-guest pushed a commit to branch master
in repository dtv-scan-tables.

commit 7978d8ff923d07240a8791a3653f195732d48736
Author: Jonathan McCrohan <jmccrohan at gmail.com>
Date:   Mon Aug 5 23:50:43 2013 +0100

    Set snapshot date as date of latest upstream commit
---
 debian/get-vcs-snapshot.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/get-vcs-snapshot.sh b/debian/get-vcs-snapshot.sh
index b1309f5..de39e9e 100644
--- a/debian/get-vcs-snapshot.sh
+++ b/debian/get-vcs-snapshot.sh
@@ -8,12 +8,12 @@ echo Downloading latest snapshot from git repository...
 
 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`
 
 git clone --depth 1 ${GIT}
 
 GIT_SHA=`git --git-dir="${DEB_SOURCE_PACKAGE}/.git" show --pretty=format:"%h" --quiet | head -1 || true`
 
+VERSION_DATE=`git --git-dir="${DEB_SOURCE_PACKAGE}/.git" log --no-color -1 --date=iso | sed -ne "s/Date:\s\+\(.*\).*/\1/p" | cut -d" " -f1 | tr -d "-"`
 VERSION_FULL="${VERSION_UPSTREAM}+git${VERSION_DATE}.${GIT_SHA}"
 TARBALL="../${DEB_SOURCE_PACKAGE}_${VERSION_FULL}.orig.tar.gz"
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-vdr-dvb/dtv-scan-tables.git



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