Commit 04f5e1dc authored by Andreas Tille's avatar Andreas Tille

Fetch latest commit from SVN and create date

parent 696b2935
fitgcp (0.0.20130418-3) UNRELEASED; urgency=medium
* debian/get-orig-source: Fetch latest commit from SVN and create date
-- Andreas Tille <tille@debian.org> Mon, 09 Jan 2017 13:22:34 +0100
fitgcp (0.0.20130418-2) unstable; urgency=medium
[ James McCoy ]
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment