From: <enl...@li...> - 2002-03-21 10:13:24
|
Enlightenment CVS committal Author : tillsan Project : e17 Module : libs/estyle Dir : e17/libs/estyle Modified Files: autogen.sh Log Message: fixes by Michi Thalmann <th...@lm...> =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/estyle/autogen.sh,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -3 -r1.1.1.1 -r1.2 --- autogen.sh 26 Jan 2002 07:37:07 -0000 1.1.1.1 +++ autogen.sh 21 Mar 2002 10:12:54 -0000 1.2 @@ -1,5 +1,10 @@ #! /bin/sh +abort () { + echo "$1 not found or command failed. Aborting!" + exit 1 +} + srcdir=`dirname $0` test -z "$srcdir" && srcdir=. @@ -8,11 +13,11 @@ DIE=0 set -x -autoheader -libtoolize --ltdl --force --copy -aclocal -automake --foreign --add-missing -autoconf +aclocal || abort "aclocal" +libtoolize --ltdl --force --copy || abort "libtoolize" +autoheader || abort "autoheader" +automake --foreign --add-missing || abort "automake" +autoconf || abort "autoconf" if test -z "$*"; then echo "I am going to run ./configure with no arguments - if you wish " @@ -21,7 +26,7 @@ cd "$THEDIR" -$srcdir/configure "$@" +$srcdir/configure "$@" || abort "configure" set +x |