diff options
author | Remi Collet <fedora@famillecollet.com> | 2014-02-28 09:54:37 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2014-02-28 09:54:37 +0100 |
commit | 85ff99087b33995f15de968e2e89c81ef446d8d6 (patch) | |
tree | 5700fbc7dd8fb1b30dcec779c0be31f6d41c095d /strip.sh |
PHP duplicate 5.5 tree for 5.6
Diffstat (limited to 'strip.sh')
-rwxr-xr-x | strip.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/strip.sh b/strip.sh new file mode 100755 index 0000000..d56547b --- /dev/null +++ b/strip.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +if [ -z "$1" ]; then + echo "usage $0 version" + exit 1; +fi + +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 $told +rm -rf php-$1/ext/json +echo "Tar..." +tar cJf $tnew php-$1 + +echo "Diff..." +tar tf $told | sort >$old +tar tf $tnew | sort >$new +diff $old $new + +rm -f $old $new |