From: Jaroslav Kysela Date: Tue, 19 Aug 2008 16:51:25 +0000 (+0200) Subject: gitcompile: return error return code and add GITCOMPILE_NO_MAKE condition X-Git-Tag: v1.0.18~2^2~8 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=880926b3cd50f160e282d95e5fb71de3f7a6f4c0;p=alsa-tools.git gitcompile: return error return code and add GITCOMPILE_NO_MAKE condition Signed-off-by: Jaroslav Kysela --- diff --git a/ac3dec/gitcompile b/ac3dec/gitcompile index 6c3452b..694d5c2 100755 --- a/ac3dec/gitcompile +++ b/ac3dec/gitcompile @@ -1,9 +1,11 @@ #!/bin/sh -aclocal $ACLOCAL_FLAGS -autoheader -automake --add-missing --copy --foreign -touch depcomp -autoconf -./configure $* -make +aclocal $ACLOCAL_FLAGS || exit 1 +autoheader || exit 1 +automake --add-missing --copy --foreign || exit 1 +touch depcomp || exit 1 +autoconf || exit 1 +./configure $* || exit 1 +if [ -z "$GITCOMPILE_NO_MAKE" ]; then + make || exit 1 +fi diff --git a/as10k1/gitcompile b/as10k1/gitcompile index e8a1c45..2089bd4 100755 --- a/as10k1/gitcompile +++ b/as10k1/gitcompile @@ -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 diff --git a/echomixer/gitcompile b/echomixer/gitcompile index 3a5537d..0182277 100755 --- a/echomixer/gitcompile +++ b/echomixer/gitcompile @@ -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 --add-missing --copy -touch depcomp -autoconf +aclocal $ACLOCAL_FLAGS || exit 1 +automake --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 \ No newline at end of file diff --git a/envy24control/gitcompile b/envy24control/gitcompile index e8a1c45..2089bd4 100755 --- a/envy24control/gitcompile +++ b/envy24control/gitcompile @@ -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 diff --git a/hdspconf/gitcompile b/hdspconf/gitcompile index e8a1c45..2089bd4 100755 --- a/hdspconf/gitcompile +++ b/hdspconf/gitcompile @@ -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 diff --git a/hdsploader/gitcompile b/hdsploader/gitcompile index 5daa701..58328bd 100755 --- a/hdsploader/gitcompile +++ b/hdsploader/gitcompile @@ -1,11 +1,13 @@ #!/bin/bash -aclocal $ACLOCAL_FLAGS -automake --foreign --add-missing -autoconf +aclocal $ACLOCAL_FLAGS || exit 1 +automake --foreign --add-missing || 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 diff --git a/hdspmixer/gitcompile b/hdspmixer/gitcompile index 3a5537d..3a788f6 100755 --- a/hdspmixer/gitcompile +++ b/hdspmixer/gitcompile @@ -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 --add-missing --copy -touch depcomp -autoconf +aclocal $ACLOCAL_FLAGS || exit 1 +automake --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 diff --git a/ld10k1/gitcompile b/ld10k1/gitcompile index 5ddd1ec..99429ac 100755 --- a/ld10k1/gitcompile +++ b/ld10k1/gitcompile @@ -1,9 +1,11 @@ #!/bin/bash -autoreconf -fi +autoreconf -fi || 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 diff --git a/mixartloader/gitcompile b/mixartloader/gitcompile index 5daa701..58328bd 100755 --- a/mixartloader/gitcompile +++ b/mixartloader/gitcompile @@ -1,11 +1,13 @@ #!/bin/bash -aclocal $ACLOCAL_FLAGS -automake --foreign --add-missing -autoconf +aclocal $ACLOCAL_FLAGS || exit 1 +automake --foreign --add-missing || 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 diff --git a/pcxhrloader/gitcompile b/pcxhrloader/gitcompile index 5daa701..58328bd 100755 --- a/pcxhrloader/gitcompile +++ b/pcxhrloader/gitcompile @@ -1,11 +1,13 @@ #!/bin/bash -aclocal $ACLOCAL_FLAGS -automake --foreign --add-missing -autoconf +aclocal $ACLOCAL_FLAGS || exit 1 +automake --foreign --add-missing || 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 diff --git a/qlo10k1/gitcompile b/qlo10k1/gitcompile index 5ddd1ec..99429ac 100755 --- a/qlo10k1/gitcompile +++ b/qlo10k1/gitcompile @@ -1,9 +1,11 @@ #!/bin/bash -autoreconf -fi +autoreconf -fi || 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 diff --git a/rmedigicontrol/gitcompile b/rmedigicontrol/gitcompile index e8a1c45..2089bd4 100755 --- a/rmedigicontrol/gitcompile +++ b/rmedigicontrol/gitcompile @@ -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 diff --git a/sb16_csp/gitcompile b/sb16_csp/gitcompile index e8a1c45..2089bd4 100755 --- a/sb16_csp/gitcompile +++ b/sb16_csp/gitcompile @@ -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 diff --git a/seq/sbiload/gitcompile b/seq/sbiload/gitcompile index e8a1c45..2089bd4 100755 --- a/seq/sbiload/gitcompile +++ b/seq/sbiload/gitcompile @@ -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 diff --git a/sscape_ctl/gitcompile b/sscape_ctl/gitcompile index 01e8151..738d436 100755 --- a/sscape_ctl/gitcompile +++ b/sscape_ctl/gitcompile @@ -10,15 +10,17 @@ 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 -autoconf +aclocal $ACLOCAL_FLAGS || exit 1 +automake --foreign --add-missing || 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 diff --git a/us428control/gitcompile b/us428control/gitcompile index 5daa701..58328bd 100755 --- a/us428control/gitcompile +++ b/us428control/gitcompile @@ -1,11 +1,13 @@ #!/bin/bash -aclocal $ACLOCAL_FLAGS -automake --foreign --add-missing -autoconf +aclocal $ACLOCAL_FLAGS || exit 1 +automake --foreign --add-missing || 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 diff --git a/usx2yloader/gitcompile b/usx2yloader/gitcompile index 5daa701..7126750 100755 --- a/usx2yloader/gitcompile +++ b/usx2yloader/gitcompile @@ -1,11 +1,13 @@ #!/bin/bash -aclocal $ACLOCAL_FLAGS -automake --foreign --add-missing -autoconf +aclocal $ACLOCAL_FLAGS || exit 1 +automake --foreign --add-missing || 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 \ No newline at end of file diff --git a/vxloader/gitcompile b/vxloader/gitcompile index 5daa701..58328bd 100755 --- a/vxloader/gitcompile +++ b/vxloader/gitcompile @@ -1,11 +1,13 @@ #!/bin/bash -aclocal $ACLOCAL_FLAGS -automake --foreign --add-missing -autoconf +aclocal $ACLOCAL_FLAGS || exit 1 +automake --foreign --add-missing || 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