gitcompile: return error return code and add GITCOMPILE_NO_MAKE condition

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2008-08-19 18:51:25 +02:00
parent f2bddc6656
commit 880926b3cd
18 changed files with 141 additions and 105 deletions

View file

@ -10,16 +10,18 @@ if test "x$AUTOMAKE_DIR" = "x"; then
fi
for f in install-sh mkinstalldirs missing; do
cp -av $AUTOMAKE_DIR/$f .
cp -av $AUTOMAKE_DIR/$f . || exit 1
done
aclocal $ACLOCAL_FLAGS
automake --foreign --add-missing --copy
touch depcomp
autoconf
aclocal $ACLOCAL_FLAGS || exit 1
automake --foreign --add-missing --copy || exit 1
touch depcomp || exit 1
autoconf || exit 1
export CFLAGS='-O2 -Wall -pipe -g'
echo "CFLAGS=$CFLAGS"
echo "./configure $@"
./configure $@
./configure $@ || exit 1
unset CFLAGS
make
if [ -z "$GITCOMPILE_NO_MAKE" ]; then
make || exit 1
fi