From 5da6ceae17df0318b8a7a60eb66ee182c4b8b47d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 19 Mar 2015 09:26:02 +0100 Subject: PHP 5.4.23 --- strip.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'strip.sh') diff --git a/strip.sh b/strip.sh index 5939bec..45bfabd 100755 --- a/strip.sh +++ b/strip.sh @@ -4,7 +4,13 @@ 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 + arc=php-$1.tar.xz + +elif [ -f php-$1.tar.gz ]; then + arc=php-$1.tar.gz + +else echo "missing php-$1.tar.xz archive" exit 2; fi @@ -12,13 +18,13 @@ old=$(mktemp) new=$(mktemp) echo "Untar..." -tar xf php-$1.tar.xz +tar xf $arc 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 $arc | sort >$old tar tf php-$1-strip.tar.xz | sort >$new diff $old $new -- cgit