[Python-modules-commits] r4814 - in packages/mpmath/trunk/debian (3 files)

bzed at users.alioth.debian.org bzed at users.alioth.debian.org
Thu Mar 13 22:00:14 UTC 2008


    Date: Thursday, March 13, 2008 @ 22:00:12
  Author: bzed
Revision: 4814

uscan-ziprepack.sh and stuff not needed anymore, my wishlist bug was fixed :)

Modified:
  packages/mpmath/trunk/debian/changelog
  packages/mpmath/trunk/debian/watch
Deleted:
  packages/mpmath/trunk/debian/uscan-ziprepack.sh

Modified: packages/mpmath/trunk/debian/changelog
===================================================================
--- packages/mpmath/trunk/debian/changelog	2008-03-13 09:44:28 UTC (rev 4813)
+++ packages/mpmath/trunk/debian/changelog	2008-03-13 22:00:12 UTC (rev 4814)
@@ -1,10 +1,6 @@
 mpmath (0.7-1) UNRELEASED; urgency=low
 
   * New upstream release
-  * debian/uscan-ziprepack.sh
-    - added (thanks to bzed)
-  * debian/watch
-    - updated to use debian/uscan-ziprepack.sh
   * debian/rules
     - added doc/* file installation
     - added dpatch stuff

Deleted: packages/mpmath/trunk/debian/uscan-ziprepack.sh
===================================================================
--- packages/mpmath/trunk/debian/uscan-ziprepack.sh	2008-03-13 09:44:28 UTC (rev 4813)
+++ packages/mpmath/trunk/debian/uscan-ziprepack.sh	2008-03-13 22:00:12 UTC (rev 4814)
@@ -1,50 +0,0 @@
-#!/bin/bash -e
-
-# Simple helper-script for uscan to repackage a .zip file into a tar.gz.
-#
-# Example debian/watch content:
-#    version=3
-#    http://foo.bar.com/fuzz/fuddl-(.*).zip debian debian/uscan-ziprepack.sh
-#
-# I hereby put this script into public domain.
-# Bernd Zeimetz <bzed at debian.org>, Dec 13 2007
-
-
-#command --upstream-version version filename
-[ $# -eq 3 ] || exit 255
-version="$2"
-filename="$3"
-source=`dpkg-parsechangelog  | grep ^Source | awk '{print $2}'`
-destdir=`echo ${filename} | sed 's,/[^/]*$,,'`
-if [ "${destdir}" = "${filename}" ]; then
-    destdir=`pwd`
-fi
-tarball=${source}_${version}.orig.tar.gz
-TMP="tmp__${RANDOM}"
-
-mkdir ${TMP}
-unzip -d ${TMP} ${filename}
-
-
-contentcount=`ls ${TMP} | grep -c '[^*$]'`
-if [ ${contentcount} -eq 1 ]; then
-#if there's only one folder in the temp directory....
-    cd ${TMP}
-    tar cvf - * | gzip -9 > ../${tarball}
-    cd ..
-    rm -rf ${TMP}
-elif [ ${contentcount} -gt 1 ]; then
-#upstream forgot to add a subdir to the zip
-    mv ${TMP} ${source}-${version}.orig
-    tar cvf - ${source}-${version}.orig | gzip -9 > ${tarball}
-else
-#weird.
-    echo 'Empty zip file or an weird error happened.'
-    unzip -l ${filename}
-    exit 255
-fi
-
-mv ${tarball} ${destdir}
-rm ${filename}
-echo "Tarball dropped to ${destdir}/${tarball}"
-

Modified: packages/mpmath/trunk/debian/watch
===================================================================
--- packages/mpmath/trunk/debian/watch	2008-03-13 09:44:28 UTC (rev 4813)
+++ packages/mpmath/trunk/debian/watch	2008-03-13 22:00:12 UTC (rev 4814)
@@ -1,3 +1,3 @@
 version=3
 
-http://code.google.com/p/mpmath/downloads/list http://mpmath.googlecode.com/files/mpmath-(.*)\.zip	debian	debian/uscan-ziprepack.sh
+http://code.google.com/p/mpmath/downloads/list http://mpmath.googlecode.com/files/mpmath-(.*)\.zip




More information about the Python-modules-commits mailing list