install using fakeroot only when component requests it
[matrix.git] / scripts / run.sh
1 # Copyright (C) 2008 Movial Oy
2 # Authors: Timo Savola <tsavola@movial.fi>
3
4 if [ -z "$MAKE" ]
5 then
6         MAKE="make"
7 fi
8
9 MAKEFILE="$MATRIX_SCRIPTDIR/matrix.mk"
10 TARGET="__matrix_$MATRIX_ACTION"
11
12 if [ "$MATRIX_VERBOSE" ]
13 then
14         $MAKE \
15                 --no-print-directory \
16                 -j "$MATRIX_JOBS" \
17                 -C "$MATRIX_WORKDIR" \
18                 -f "$MAKEFILE" \
19                 "$TARGET" \
20                 2>&1 | tee $MATRIX_LOG
21         exit ${PIPESTATUS[0]}
22 else
23         exec $MAKE \
24                 --no-print-directory \
25                 -j "$MATRIX_JOBS" \
26                 -C "$MATRIX_WORKDIR" \
27                 -f "$MAKEFILE" \
28                 "$TARGET" \
29                 > $MATRIX_LOG 2>&1
30 fi