Blame SOURCES/strip.sh

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