File tree Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ FORCE=${1:- " YES" }
4
+
5
+ if [[ ${FORCE} == " YES" ]]; then
6
+ echo " Forcing builds for all versions"
7
+ fi
8
+
3
9
for i in /usr/local/php/* ; do
4
10
version=` echo $i | sed ' s@.*/@@' `
5
11
echo -n " Rebuilding for PHP ${version} : "
6
12
7
- export PATH=/usr/local/php/${version} /bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin
13
+ FILE=/usr/local/php/${version} /lib/php/extensions/* /vld.so
14
+
15
+ if [ ! -e $FILE ] || [[ ${FORCE} == " YES" ]]; then
16
+ export PATH=/usr/local/php/${version} /bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin
8
17
9
- ./rebuild.sh > /tmp/vld-for-${version} .log 2>&1
18
+ LOG=" /tmp/vld-for-${version} .log"
19
+ echo -n " Building: "
20
+ ./rebuild.sh > $LOG 2>&1
10
21
11
- if [[ $? == 0 ]]; then
12
- echo " DONE"
22
+ if [[ $? == 0 ]]; then
23
+ echo " DONE"
24
+ else
25
+ echo " FAIL, log is at $LOG "
26
+ fi
13
27
else
14
- echo " FAIL "
28
+ echo " SKIP "
15
29
fi
16
30
done
Original file line number Diff line number Diff line change @@ -5,5 +5,4 @@ bit64=`php -n -r 'echo PHP_INT_SIZE == 8 ? "1" : "0";'`
5
5
if [[ ${bit64} != " 1" ]]; then
6
6
export CFLAGS=" -m32"
7
7
fi
8
-
9
8
phpize && ./configure --enable-vld-dev && make clean && make all && make install
You can’t perform that action at this time.
0 commit comments