[med-svn] r7169 - trunk/packages/plastimatch/trunk/debian
Greg Sharp
gregsharp-guest at alioth.debian.org
Sun Jun 26 23:25:40 UTC 2011
Author: gregsharp-guest
Date: 2011-06-26 23:25:40 +0000 (Sun, 26 Jun 2011)
New Revision: 7169
Modified:
trunk/packages/plastimatch/trunk/debian/get-orig-source
trunk/packages/plastimatch/trunk/debian/watch
Log:
Make get-orig-source target work in plastimatch debian/rules
Modified: trunk/packages/plastimatch/trunk/debian/get-orig-source
===================================================================
--- trunk/packages/plastimatch/trunk/debian/get-orig-source 2011-06-26 04:28:43 UTC (rev 7168)
+++ trunk/packages/plastimatch/trunk/debian/get-orig-source 2011-06-26 23:25:40 UTC (rev 7169)
@@ -1,6 +1,15 @@
#!/bin/sh
-# Stole this from figtree
+# This lets us use a different (local) tarball during debugging.
+# Just put file nam on the command line.
+if test -z "$1"; then
+ download_name=`uscan --verbose --force-download | grep Source | head -n 2 | tail -n 1 | sed -e 's/.*\///'`;
+ echo Downloaded $download_name
+else
+ download_name=$1
+ echo Using local file $download_name
+fi
+
PKG=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
@@ -8,7 +17,7 @@
mkdir -p tarballs
cd tarballs
rm -rf *
-tar xf ../plastimatch_1.5.0.orig.tar.bz2
+tar xf ../$download_name
base=`ls`
echo "Repackaging $base into ${PKG}-${VERSION}"
cp -a $base ${PKG}-${VERSION}
@@ -37,5 +46,5 @@
GZIP="--best --no-name" tar -czf "$PKG"_"$VERSION".orig.tar.gz "$PKG"-"$VERSION"
rm -rf $base
rm -rf "$PKG"-"$VERSION"
-rm ../plastimatch_1.5.0.orig.tar.bz2
+rm ../plastimatch_1.5.0.orig.tar.bz2 2> /dev/null
mv "$PKG"_"$VERSION".orig.tar.gz ..
Modified: trunk/packages/plastimatch/trunk/debian/watch
===================================================================
--- trunk/packages/plastimatch/trunk/debian/watch 2011-06-26 04:28:43 UTC (rev 7168)
+++ trunk/packages/plastimatch/trunk/debian/watch 2011-06-26 23:25:40 UTC (rev 7169)
@@ -1,4 +1,3 @@
version=3
http://forge.abcd.harvard.edu/gf/project/plastimatch/frs/ \
- .*/plastimatch-(.+)-.*-Source.tar.bz2 \
- debian debian/get-orig-source
+ .*/plastimatch-(.+)-.*-Source.tar.bz2
More information about the debian-med-commit
mailing list