update: remove goto

This commit is contained in:
h_vogt 2010-08-01 19:02:23 +00:00
parent 2fcbcc5f48
commit 1657b33535
2 changed files with 16 additions and 12 deletions

View File

@ -1,3 +1,6 @@
2010-08-01 Holger Vogt
* autogen.sh: update for adms
2010-08-01 Robert Larice
* src/pkgIndex.tcl.in ,
* src/tclspice.c ,

View File

@ -41,6 +41,14 @@ echo "$PROJECT autogen.sh 1.0"
echo
}
end_on_error()
{
if test "$ADMS" -eq 1; then
mv configure.temp configure.in
fi
exit 1
}
check_autoconf()
{
@ -170,27 +178,27 @@ fi
echo "Running libtoolize"
libtoolize --copy --force
if [ $? -ne 0 ];then echo "libtoolize failed"; goto errorhandler ; fi
if [ $? -ne 0 ];then echo "libtoolize failed"; end_on_error ; fi
echo "Running aclocal $ACLOCAL_FLAGS"
aclocal $ACLOCAL_FLAGS
if [ $? -ne 0 ]; then echo "aclocal failed"; goto errorhandler ; fi
if [ $? -ne 0 ]; then echo "aclocal failed"; end_on_error ; fi
# optional feature: autoheader
(autoheader --version) < /dev/null > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo "Running autoheader"
autoheader
if [ $? -ne 0 ]; then echo "autoheader failed"; goto errorhandler ; fi
if [ $? -ne 0 ]; then echo "autoheader failed"; end_on_error ; fi
fi
echo "Running automake -Wall --copy --add-missing"
automake -Wall --copy --add-missing $am_opt
if [ $? -ne 0 ]; then echo "automake failed"; goto errorhandler ; fi
if [ $? -ne 0 ]; then echo "automake failed"; end_on_error ; fi
echo "Running autoconf"
autoconf
if [ $? -ne 0 ]; then echo "autoconf failed"; goto errorhandler ; fi
if [ $? -ne 0 ]; then echo "autoconf failed"; end_on_error ; fi
if test "$ADMS" -eq 1; then
mv configure.temp configure.in
@ -199,10 +207,3 @@ fi
echo "Success."
exit 0
errorhandler:
if test "$ADMS" -eq 1; then
mv configure.temp configure.in
fi
exit 1