[med-svn] r7097 - trunk/packages/plastimatch/trunk/debian

Greg Sharp gregsharp-guest at alioth.debian.org
Sun Jun 19 21:31:05 UTC 2011


Author: gregsharp-guest
Date: 2011-06-19 21:31:04 +0000 (Sun, 19 Jun 2011)
New Revision: 7097

Modified:
   trunk/packages/plastimatch/trunk/debian/get-orig-source
Log:
First attempt at a usable debian/get-orig-source for plastimatch

Modified: trunk/packages/plastimatch/trunk/debian/get-orig-source
===================================================================
--- trunk/packages/plastimatch/trunk/debian/get-orig-source	2011-06-19 20:35:31 UTC (rev 7096)
+++ trunk/packages/plastimatch/trunk/debian/get-orig-source	2011-06-19 21:31:04 UTC (rev 7097)
@@ -1 +1,25 @@
 #!/bin/sh
+
+# Stole this from figtree
+PKG=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
+VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
+
+cd ..
+mkdir -p tarballs
+cd tarballs
+rm -rf *
+tar xf ../plastimatch_1.5.0.orig.tar.bz2
+base=`ls`
+echo "Repackaging $base into ${PKG}-${VERSION}"
+cp -a $base ${PKG}-${VERSION}
+cd ${PKG}-${VERSION}
+rm -rf libs/getopt
+rm -rf libs/libf2c
+rm -rf libs/msinttypes
+rm -rf libs/sqlite-3.6.21
+rm -rf libs/win32
+
+cd ..
+GZIP="--best --no-name" tar -czf "$PKG"_"$VERSION".orig.tar.gz "$PKG"-"$VERSION"
+rm -rf $base
+rm -rf "$PKG"-"$VERSION"




More information about the debian-med-commit mailing list