forked from enlightenment/efl
parent
fd507f34cd
commit
b0967ede9d
|
@ -1,5 +1,10 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
|
abort () {
|
||||||
|
echo "$1 not found or command failed. Aborting!"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
srcdir=`dirname $0`
|
srcdir=`dirname $0`
|
||||||
test -z "$srcdir" && srcdir=.
|
test -z "$srcdir" && srcdir=.
|
||||||
|
|
||||||
|
@ -8,11 +13,11 @@ cd "$srcdir"
|
||||||
DIE=0
|
DIE=0
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
autoheader
|
aclocal || abort "aclocal"
|
||||||
libtoolize --ltdl --force --copy
|
libtoolize --ltdl --force --copy || abort "libtoolize"
|
||||||
aclocal
|
autoheader || abort "autoheader"
|
||||||
automake --foreign --add-missing
|
automake --foreign --add-missing || abort "automake"
|
||||||
autoconf
|
autoconf || abort "autoconf"
|
||||||
|
|
||||||
if test -z "$*"; then
|
if test -z "$*"; then
|
||||||
echo "I am going to run ./configure with no arguments - if you wish "
|
echo "I am going to run ./configure with no arguments - if you wish "
|
||||||
|
@ -21,7 +26,7 @@ fi
|
||||||
|
|
||||||
cd "$THEDIR"
|
cd "$THEDIR"
|
||||||
|
|
||||||
$srcdir/configure "$@"
|
$srcdir/configure "$@" || abort "configure"
|
||||||
|
|
||||||
set +x
|
set +x
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue