From: <enl...@li...> - 2002-03-21 11:44:12
|
Enlightenment CVS committal Author : tillsan Project : e17 Module : apps/e Dir : e17/apps/e Modified Files: autogen.sh Log Message: fixes by Michi Thalmann <th...@lm...> =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/autogen.sh,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- autogen.sh 18 Nov 2001 04:32:27 -0000 1.3 +++ autogen.sh 21 Mar 2002 11:44:11 -0000 1.4 @@ -1,6 +1,11 @@ #!/bin/sh # Run this to generate all the initial makefiles, etc. +abort () { + echo "$1 not found or command failed. Aborting!" + exit 1 +} + srcdir=`dirname $0` PKG_NAME="the package." @@ -106,7 +111,7 @@ echo "Creating $dr/aclocal.m4 ..." test -r $dr/aclocal.m4 || touch $dr/aclocal.m4 echo "Running gettextize... Ignore non-fatal messages." - echo "no" | gettextize --force --copy + echo "no" | gettextize --force --copy || abort "gettextize" echo "Making $dr/aclocal.m4 writable ..." test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4 fi @@ -115,24 +120,24 @@ echo "Creating $dr/aclocal.m4 ..." test -r $dr/aclocal.m4 || touch $dr/aclocal.m4 echo "Running gettextize... Ignore non-fatal messages." - echo "no" | gettextize --force --copy + echo "no" | gettextize --force --copy || abort "gettextize" echo "Making $dr/aclocal.m4 writable ..." test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4 fi if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then echo "Running libtoolize..." - libtoolize --force --copy + libtoolize --force --copy || abort "libtoolize" fi echo "Running aclocal $aclocalinclude ..." - aclocal $aclocalinclude + aclocal $aclocalinclude || abort "aclocal" if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then echo "Running autoheader..." - autoheader + autoheader || abort "autoheader" fi echo "Running automake --gnu $am_opt ..." - automake --add-missing --gnu $am_opt + automake --add-missing --gnu $am_opt || abort "automake" echo "Running autoconf ..." - autoconf + autoconf || abort "autoconf" ) fi done @@ -142,7 +147,7 @@ if test x$NOCONFIGURE = x; then echo Running $srcdir/configure $conf_flags "$@" ... $srcdir/configure $conf_flags "$@" \ - && echo Now type \`make\' to compile $PKG_NAME + && echo Now type \`make\' to compile $PKG_NAME || abort "configure" else echo Skipping configure process. fi |