diff options
author | Remi Collet <fedora@famillecollet.com> | 2013-08-07 15:07:02 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2013-08-07 15:07:02 +0200 |
commit | db4dc937d96c557e6e1d3a7ef13252d0f3117252 (patch) | |
tree | 516ccff37d99198eb78b34e8d85a1298fb07af22 /strip.sh | |
parent | 8b8715e2ccbe35e6e5f9eb0541c092af1bf7fc5a (diff) |
php-pear-Text-CAPTCHA: 0.5.0
Diffstat (limited to 'strip.sh')
-rwxr-xr-x | strip.sh | 22 |
1 files changed, 22 insertions, 0 deletions
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 <version>" +fi +rm -f $list* |