diff options
author | Remi Collet <fedora@famillecollet.com> | 2014-01-08 12:00:24 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2014-01-08 12:00:24 +0100 |
commit | 372dccd3521a0ec614470cf94ca03bc5eea49191 (patch) | |
tree | e04b55034a9f5db6122afee6b0b8c4e23d44ebd0 /strip.sh | |
parent | 051634248b0a6938a3526904336330a5d44d0c59 (diff) |
PHP 5.5.8
Diffstat (limited to 'strip.sh')
-rwxr-xr-x | strip.sh | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -4,22 +4,29 @@ if [ -z "$1" ]; then echo "usage $0 version" exit 1; fi -if [ ! -f php-$1.tar.xz ]; then + +if [ -f php-$1.tar.xz ]; then + told=php-$1.tar.xz +elif [ -f php-$1.tar.bz2 ]; then + told=php-$1.tar.bz2 +else echo "missing php-$1.tar.xz archive" exit 2; fi +tnew=php-$1-strip.tar.xz + old=$(mktemp) new=$(mktemp) echo "Untar..." -tar xf php-$1.tar.xz +tar xf $told rm -rf php-$1/ext/json echo "Tar..." -tar cJf php-$1-strip.tar.xz php-$1 +tar cJf $tnew php-$1 echo "Diff..." -tar tf php-$1.tar.xz | sort >$old -tar tf php-$1-strip.tar.xz | sort >$new +tar tf $told | sort >$old +tar tf $tnew | sort >$new diff $old $new rm -f $old $new |