Blame SOURCES/strip.sh

37fd76
#!/bin/sh
37fd76
37fd76
if [ -z "$1" ]; then
37fd76
	echo "usage $0 version"
37fd76
	exit 1;
37fd76
fi
37fd76
if [ ! -f php-$1.tar.xz ]; then
37fd76
	echo "missing php-$1.tar.xz archive"
37fd76
	exit 2;
37fd76
fi
37fd76
old=$(mktemp)
37fd76
new=$(mktemp)
37fd76
37fd76
echo "Untar..."
37fd76
tar xf php-$1.tar.xz
37fd76
rm -rf php-$1/ext/json
37fd76
echo "Tar..."
37fd76
tar cJf  php-$1-strip.tar.xz php-$1
37fd76
37fd76
echo "Diff..."
37fd76
tar tf php-$1.tar.xz | sort >$old
37fd76
tar tf php-$1-strip.tar.xz | sort >$new
37fd76
diff $old $new
37fd76
37fd76
rm -f $old $new