diff options
author | Remi Collet <fedora@famillecollet.com> | 2013-01-16 14:22:37 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2013-01-16 14:22:37 +0100 |
commit | 5d45775b7a971079c9237c7bc5dd149d4e098222 (patch) | |
tree | 7651290ccdc3c20705421c341ae3a661dfd7bc6d /strip.sh | |
parent | 8e00c6345b989f37fe1abc18cb4c51d518338264 (diff) |
php-pear-Image-Text: cleanups
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..4878b74 --- /dev/null +++ b/strip.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +name=Image_Text +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* |