[Pkg-php-commits] r1203 - php5/trunk/debian
Raphael Geissert
atomo64-guest at alioth.debian.org
Mon Jan 12 19:26:43 UTC 2009
Author: atomo64-guest
Date: 2009-01-12 19:26:42 +0000 (Mon, 12 Jan 2009)
New Revision: 1203
Added:
php5/trunk/debian/dfsg-repack.sh
Modified:
php5/trunk/debian/watch
Log:
Ship script used to take an upstream tarball and remove the non DFSG-free stuff, updatw watch file accordingly
Added: php5/trunk/debian/dfsg-repack.sh
===================================================================
--- php5/trunk/debian/dfsg-repack.sh (rev 0)
+++ php5/trunk/debian/dfsg-repack.sh 2009-01-12 19:26:42 UTC (rev 1203)
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+set -e
+
+if [ ! -f "$3" ] && [ ! -f "$1" ]; then
+ echo "This script must be run via uscan or by manually specifying the tarball" >&2
+ exit 1
+fi
+
+tarball=
+
+[ -f "$3" ] && tarball="$3"
+[ -z "$tarball" -a -f "$1" ] && tarball="$1"
+
+fname="$(basename "$tarball")"
+tarball="$(readlink -f "$tarball")"
+
+tdir="$(mktemp -d)"
+trap '[ ! -d "$tdir" ] || rm -r "$tdir"' EXIT
+
+zcat "$tarball" | tar --wildcards --delete '*/ext/dbase' > "$tdir/${fname/.gz}"
+#touch -m -r "$tarball" "$tdir/${fname/.gz}"
+gzip -9 "$tdir/${fname/.gz}"
+
+mv "$tarball" "$tarball.bkp"
+mv "$tdir/$fname" "$tarball"
Modified: php5/trunk/debian/watch
===================================================================
--- php5/trunk/debian/watch 2009-01-12 12:48:31 UTC (rev 1202)
+++ php5/trunk/debian/watch 2009-01-12 19:26:42 UTC (rev 1203)
@@ -2,4 +2,4 @@
opts=downloadurlmangle=s#/a/#/this/#,\
filenamemangle=s#/get/(php-(5\.[0-9\.]*)\.tar\.gz)/.*#$1#,\
dversionmangle=s/\.dfsg\.\d+// \
-http://www.php.net/downloads.php /get/php-(5\.[0-9\.]*)\.tar\.gz/from/a/mirror
+http://www.php.net/downloads.php /get/php-(5\.[0-9\.]*)\.tar\.gz/from/a/mirror debian bash debian/dfsg-repack.sh
More information about the Pkg-php-commits
mailing list