blob: 1bd5c2531c646c8d12b813e6e7fd36f28384ed38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#!/bin/sh
if [ -z "$1" ]; then
echo "usage $0 version"
exit 1;
fi
if [ ! -f php-$1.tar.xz ]; then
echo "missing php-$1.tar.xz archive"
exit 2;
fi
old=$(mktemp)
new=$(mktemp)
ver=$1
shift
echo "Untar..."
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-$ver-strip.tar.xz php-$ver
echo "Diff..."
tar tf php-$ver.tar.xz | sort >$old
tar tf php-$ver-strip.tar.xz | sort >$new
diff $old $new
rm -f $old $new
|