[med-svn] r11881 - trunk/packages/phy-spread/trunk/debian

Andreas Tille tille at alioth.debian.org
Tue Jul 24 14:33:57 UTC 2012


Author: tille
Date: 2012-07-24 14:33:57 +0000 (Tue, 24 Jul 2012)
New Revision: 11881

Modified:
   trunk/packages/phy-spread/trunk/debian/changelog
   trunk/packages/phy-spread/trunk/debian/get-orig-source
Log:
Fix get-orig-source script


Modified: trunk/packages/phy-spread/trunk/debian/changelog
===================================================================
--- trunk/packages/phy-spread/trunk/debian/changelog	2012-07-24 14:17:13 UTC (rev 11880)
+++ trunk/packages/phy-spread/trunk/debian/changelog	2012-07-24 14:33:57 UTC (rev 11881)
@@ -1,8 +1,12 @@
 phy-spread (1.0.4-1) UNRELEASED; urgency=low
 
-  TODO: Fix get-orig-source
   * New upstream version
   * debian/watch: Fixed to obtain properly from Github download area
+  * debian/get-orig-source:
+     - handle new name for upstream tarball
+     - remove .git dir
+     - use xz compression
+     - delete precompiled stuff
   * debian/upstream:
      - separate authors by ' and ' rather than by ','
      - Move DOI+PMID to References

Modified: trunk/packages/phy-spread/trunk/debian/get-orig-source
===================================================================
--- trunk/packages/phy-spread/trunk/debian/get-orig-source	2012-07-24 14:17:13 UTC (rev 11880)
+++ trunk/packages/phy-spread/trunk/debian/get-orig-source	2012-07-24 14:33:57 UTC (rev 11881)
@@ -3,10 +3,11 @@
 
 set -e
 NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
-UPSTREAMNAME=`echo $NAME | sed 's/phy-//'`
+UPSTREAMNAME='Spread-phy'
 
 if ! echo $@ | grep -q upstream-version ; then
     VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
+    uscan --force-download
 else
     VERSION=`echo $@ | sed "s?^.*--upstream-version \([0-9.]\+\) .*${UPSTREAMNAME}.*?\1?"`
     if echo "$VERSION" | grep -q "upstream-version" ; then
@@ -21,8 +22,7 @@
 # need to clean up the tarballs dir first because upstream tarball might
 # contain a directory with unpredictable name
 rm -rf *
-mv ../${TARDIR}.tar.gz .
-tar -xzf ${TARDIR}.tar.gz
+tar -xaf ../${TARDIR}.tar.gz
 
 UPSTREAMTARDIR=`find . -mindepth 1 -maxdepth 1 -type d`
 if [ "${UPSTREAMTARDIR}" != "${TARDIR}" ] ; then
@@ -33,9 +33,14 @@
 rm -rf ${TARDIR}/release/Mac
 rm -rf ${TARDIR}/release/Windows
 rm -rf ${TARDIR}/release/tools
+rm -rf ${TARDIR}/bin
+rm -rf ${TARDIR}/classes
 
 # Remove debian packaged jars
 rm -rf ${TARDIR}/lib/*
 
-GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -czf "$NAME"_"$VERSION".orig.tar.gz "${TARDIR}"
+# Remove .git dir
+rm -rf ${TARDIR}/.git
+
+GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf "$NAME"_"$VERSION".orig.tar.xz "${TARDIR}"
 rm -rf ${TARDIR}




More information about the debian-med-commit mailing list