This is an automated email from the git hooks/post-receive script. ecsv-guest pushed a commit to branch master in repository mupen64plus.
commit a101ca47f2552b78917fce401d6db66d66e460cd Author: Sven Eckelmann <[email protected]> Date: Sat Jun 13 23:37:50 2009 +0200 Prune tarball using debian/watch --- debian/prune-tarball.sh | 24 +++++++++++++++++------- debian/watch | 3 ++- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/debian/prune-tarball.sh b/debian/prune-tarball.sh index c938bbc..77b675d 100755 --- a/debian/prune-tarball.sh +++ b/debian/prune-tarball.sh @@ -1,21 +1,30 @@ #! /bin/sh set -e -if [ ! -r "$1" ]; then - echo >&2 "E: need an existing tarball as the first argument." +if [ "x$1" != x--upstream-version ]; then + exit 1 +fi + +version="$2" +filename="$3" +dversion="$version+dfsg1" +dfilename=`echo $filename|sed "s/$version/$dversion/"` + +if [ -z "$version" -o ! -r "$filename" ]; then + echo >&2 "E: need an existing tarball as the second argument." exit 1 fi TMP="`mktemp -d -t`" MANIFEST="`mktemp -t`" TMP_TAR="`mktemp -t`" -TARBALL="`basename $1`" +TARBALL="`basename $filename`" trap "rm -rf $TMP; rm -f $TMP_TAR; rm -f $TM_TAR.gz; rm -f $MANIFEST" 0 -tar pxCf "$TMP" "$1" +tar pxCf "$TMP" "$filename" ( # filter non dfsg files - tar tf "$1"|sed 's/^\.*\/*//' \ + tar tf "$filename"|sed 's/^\.*\/*//' \ |egrep -v "^[^/]+/glN64(/.*)?$" \ |egrep -v "^[^/]+/config/glN64.conf$" \ |egrep -v "^[^/]+/glide64/icons(/.*)?$" \ @@ -26,5 +35,6 @@ tar pxCf "$TMP" "$1" tar cf "$TMP_TAR" --owner 0 --group 0 --numeric-owner --files-from "$MANIFEST" --no-recursion gzip -n -m -f "$TMP_TAR" ) -mv "$TMP_TAR".gz "$1.dfsg" -echo "Created $1.dfsg" +mv "$TMP_TAR".gz "$dfilename" +echo "Pruned $dfilename" + diff --git a/debian/watch b/debian/watch index 518139d..6a8e31d 100644 --- a/debian/watch +++ b/debian/watch @@ -2,4 +2,5 @@ version=3 opts="uversionmangle=s/-/./,dversionmangle=s/\+dfsg\d+$//" \ http://code.google.com/p/mupen64plus/downloads/list \ - http://mupen64plus.googlecode.com/files/Mupen64Plus-(.*).src\.tar.gz + http://mupen64plus.googlecode.com/files/Mupen64Plus-(.*).src\.tar.gz \ + debian debian/prune-tarball.sh -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mupen64plus.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

