From 9922993eb208c2c615a95c4c4a795323c2406963 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Thu, 12 Mar 2020 21:16:34 +0100 Subject: autogen.sh can now be executed from any current working directory Signed-off-by: Toni Uhlig --- autogen.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index d1443b9..a748c30 100755 --- a/autogen.sh +++ b/autogen.sh @@ -2,6 +2,11 @@ set -x +OLD_WD="$(pwd)" +NEW_WD="$(dirname ${0})" + +cd "${NEW_WD}" + if ! autoreconf -fi; then aclocal autoheader @@ -9,4 +14,6 @@ if ! autoreconf -fi; then autoconf fi -$(dirname $0)/configure $@ && make -j${BUILDJOBS:-4} all +cd "${OLD_WD}" + +"${NEW_WD}/configure" $@ && make clean && make -j${BUILDJOBS:-4} all -- cgit v1.2.3