Skip to content

Commit 7d89e8c

Browse files
committed
Update rebuild script
1 parent d75ca53 commit 7d89e8c

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

rebuild-all.sh

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,30 @@
11
#!/bin/bash
22

3+
FORCE=${1:-"YES"}
4+
5+
if [[ ${FORCE} == "YES" ]]; then
6+
echo "Forcing builds for all versions"
7+
fi
8+
39
for i in /usr/local/php/*; do
410
version=`echo $i | sed 's@.*/@@'`
511
echo -n "Rebuilding for PHP ${version}: "
612

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
817

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
1021

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
1327
else
14-
echo "FAIL"
28+
echo "SKIP"
1529
fi
1630
done

rebuild.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ bit64=`php -n -r 'echo PHP_INT_SIZE == 8 ? "1" : "0";'`
55
if [[ ${bit64} != "1" ]]; then
66
export CFLAGS="-m32"
77
fi
8-
98
phpize && ./configure --enable-vld-dev && make clean && make all && make install

0 commit comments

Comments
 (0)