From db4dc937d96c557e6e1d3a7ef13252d0f3117252 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 7 Aug 2013 15:07:02 +0200 Subject: php-pear-Text-CAPTCHA: 0.5.0 --- strip.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 strip.sh (limited to 'strip.sh') diff --git a/strip.sh b/strip.sh new file mode 100755 index 0000000..35126de --- /dev/null +++ b/strip.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +name=Text_CAPTCHA +list=$(mktemp) + +if [ -f $name-$1.tgz ] +then + tar xif $name-$1.tgz + tar tf $name-$1.tgz >$list.old + + rm -r $name-$1/tests + sed -e '/tests/d' -i package.xml + + tar czf $name-$1-strip.tgz package.xml $name-$1 + tar tf $name-$1-strip.tgz | grep -v '/$' >$list.new + + diff $list.old $list.new + rm -rf $name-$1 package.xml +else + echo "usage $0 " +fi +rm -f $list* -- cgit