[med-svn] [fitgcp] 01/08: Fetch latest commit from SVN and create date
Andreas Tille
tille at debian.org
Mon Jan 9 12:32:07 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository fitgcp.
commit 04f5e1dc2bf9c4cf94d6bfd28aa50a65bc0c6f06
Author: Andreas Tille <tille at debian.org>
Date: Mon Jan 9 13:23:35 2017 +0100
Fetch latest commit from SVN and create date
---
debian/changelog | 6 ++++++
debian/get-orig-source | 13 ++++++++++++-
2 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index ee56028..55c9d54 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+fitgcp (0.0.20130418-3) UNRELEASED; urgency=medium
+
+ * debian/get-orig-source: Fetch latest commit from SVN and create date
+
+ -- Andreas Tille <tille at debian.org> Mon, 09 Jan 2017 13:22:34 +0100
+
fitgcp (0.0.20130418-2) unstable; urgency=medium
[ James McCoy ]
diff --git a/debian/get-orig-source b/debian/get-orig-source
index af884ef..8f31715 100755
--- a/debian/get-orig-source
+++ b/debian/get-orig-source
@@ -7,12 +7,23 @@ NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
COMPRESSION=xz
VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
+SVNURI="svn://svn.code.sf.net/p/${NAME}/code/trunk"
+#revision=`LANG=C svn info ${SVNURI} | grep "^Last Changed Rev:" | sed 's/Last Changed Rev: *//'`
+SVNDATE=`LANG=C svn info ${SVNURI} | grep '^Last Changed Date' | sed 's/^Last Changed Date: \([0-9]\+\)-\([0-9][0-9]\)-\([0-9][0-9]\) .*/\1\2\3/'`
+if echo $VERSION | grep -q "$SVNDATE$" ; then
+ echo "Package is up to date".
+ exit
+fi
+
+# echo "Package needs update"
+VERSION=`echo ${VERSION}| sed "s/\.[0-9]\+$//"`.${SVNDATE}
+
mkdir -p ../tarballs
cd ../tarballs
TARDIR=${NAME}-${VERSION}
# fetch source from SVN
-svn export svn://svn.code.sf.net/p/fitgcp/code/trunk $TARDIR
+svn export ${SVNURI} $TARDIR
cd $TARDIR
recode ibmpc.. fitGCP.py
mv fitGCP.py fitGCP.py.bak
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/fitgcp.git
More information about the debian-med-commit
mailing list