From e8aab031630bc88a0ed0ec99c09e926003c4ca98 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 14 Oct 2016 15:10:54 +0200 Subject: PHP 5.6.27 --- strip.sh | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'strip.sh') diff --git a/strip.sh b/strip.sh index 5939bec..1bd5c25 100755 --- a/strip.sh +++ b/strip.sh @@ -11,15 +11,27 @@ fi old=$(mktemp) new=$(mktemp) +ver=$1 +shift + echo "Untar..." -tar xf php-$1.tar.xz -rm -rf php-$1/ext/json +tar xf php-$ver.tar.xz +pushd php-$ver +rm -rf ext/json +if [ -n "$2" ] +then + for i in $* + do + patch -p1 --no-backup <../$i + done +fi +popd echo "Tar..." -tar cJf php-$1-strip.tar.xz php-$1 +tar cJf php-$ver-strip.tar.xz php-$ver echo "Diff..." -tar tf php-$1.tar.xz | sort >$old -tar tf php-$1-strip.tar.xz | sort >$new +tar tf php-$ver.tar.xz | sort >$old +tar tf php-$ver-strip.tar.xz | sort >$new diff $old $new rm -f $old $new -- cgit