[med-svn] r2526 - trunk/packages/imagej/trunk/debian
tille at alioth.debian.org
tille at alioth.debian.org
Wed Sep 24 09:30:22 UTC 2008
Author: tille
Date: 2008-09-24 09:30:20 +0000 (Wed, 24 Sep 2008)
New Revision: 2526
Modified:
trunk/packages/imagej/trunk/debian/changelog
trunk/packages/imagej/trunk/debian/get-orig-source
Log:
Increased version number of changelog; make get-orig-source read version to obtain from changelog
Modified: trunk/packages/imagej/trunk/debian/changelog
===================================================================
--- trunk/packages/imagej/trunk/debian/changelog 2008-09-24 07:37:37 UTC (rev 2525)
+++ trunk/packages/imagej/trunk/debian/changelog 2008-09-24 09:30:20 UTC (rev 2526)
@@ -1,4 +1,4 @@
-imagej (1.41l-1) UNRELEASED; urgency=low
+imagej (1.41n-1) UNRELEASED; urgency=low
[ Andreas Tille ]
* New upstream release
Modified: trunk/packages/imagej/trunk/debian/get-orig-source
===================================================================
--- trunk/packages/imagej/trunk/debian/get-orig-source 2008-09-24 07:37:37 UTC (rev 2525)
+++ trunk/packages/imagej/trunk/debian/get-orig-source 2008-09-24 09:30:20 UTC (rev 2526)
@@ -3,15 +3,20 @@
# thus it seems reasonable to remove some binary cruft
NAME=imagej
-DVERSION=1.41l
-UPSTREAMZIP=ij141l-src.zip
+# Obtain upstream version number from changelog file
+DVERSION=`grep "^${NAME} *(.\+)" debian/changelog | head -n 1 | sed "s/^${NAME} \+(\([^-]\+\)-[0-9]*) .*/\1/"`
+UVERSION=ij`echo ${DVERSION} | sed 's/\.//'`
+UPSTREAMZIP=${UVERSION}-src.zip
+
UPSTREAMDIR=source
mkdir -p ../tarballs
cd ../tarballs
if [ ! -f "$UPSTREAMZIP" ] ; then
+set -x
wget http://rsb.info.nih.gov/ij/download/src/"$UPSTREAMZIP"
+set +x
fi
unzip "$UPSTREAMZIP"
More information about the debian-med-commit
mailing list