blob: 005b035267cfb915ce83673c2462034526ad19c9 (
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
|
#!/bin/sh
MAKE_FLAGS="-j4 -k "
REV=$1
CC="ccache gcc"
rm -rf prefix
mkdir prefixes
ln -s prefixes/$REV prefix
if [ -d prefixes/$REV ]; then
if [ ! -f prefixes/$REV/built ]; then
rm -rf prefixes/$REV
fi
fi
if [ ! -d prefixes/$REV ]; then
mkdir prefixes/$REV || true
(
cd checkout;
if [ ! -f Makefile ]; then
CC=$CC ./autogen.sh --disable-introspection --prefix=`pwd`/../prefix;
fi;
make $MAKE_FLAGS ;
make -k install
touch `pwd`/../prefix/built
) > prefix/build_log 2>&1
fi;
|