blob: b0cfa2901af8a6f0c8401f4c3ad3d575167fa80a (
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 [ $# -lt 2 ]; then
echo usage $0 version commit
exit 1
fi
owner=phalcon
project=cphalcon
version=$1
commit=$2
upstream=$project-$version.tar.gz
downstream=$project-$version-strip.tar.bz2
list1=$(mktemp)
list2=$(mktemp)
if [ ! -f $upstream ]; then
wget https://github.com/$owner/$project/archive/$commit/$upstream
fi
if [ ! -f $upstream ]; then
echo missgin upstream archive
else
echo Unpacking...
tar tf $upstream >$list1
tar xf $upstream
echo Cleaning non-free stuff...
rm $project-$commit/ext/assets/filters/jsminifier.? \
$project-$commit/ext/assets/filters/cssminifier.? \
$project-$commit/build/*/phalcon.?
echo Packing...
tar cjf $downstream $project-$commit
tar tf $downstream >$list2
echo "Diffing..."
diff $list1 $list2
fi
rm -f $list1 $list2
|