diff options
author | Remi Collet <fedora@famillecollet.com> | 2014-09-02 18:24:41 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2014-09-02 18:24:41 +0200 |
commit | 45396e0b548b5684022506133d06a721cd9cd6de (patch) | |
tree | 8e8931e2d2cb869f08bf57c5c5eafef2b13a1d1f /strip.sh |
php55-php: import from rhscl 1.1
Diffstat (limited to 'strip.sh')
-rwxr-xr-x | strip.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/strip.sh b/strip.sh new file mode 100755 index 0000000..5939bec --- /dev/null +++ b/strip.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +if [ -z "$1" ]; then + echo "usage $0 version" + exit 1; +fi +if [ ! -f php-$1.tar.xz ]; then + echo "missing php-$1.tar.xz archive" + exit 2; +fi +old=$(mktemp) +new=$(mktemp) + +echo "Untar..." +tar xf php-$1.tar.xz +rm -rf php-$1/ext/json +echo "Tar..." +tar cJf php-$1-strip.tar.xz php-$1 + +echo "Diff..." +tar tf php-$1.tar.xz | sort >$old +tar tf php-$1-strip.tar.xz | sort >$new +diff $old $new + +rm -f $old $new |