diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2020-03-12 21:16:34 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2020-03-12 21:16:34 +0100 |
commit | 9922993eb208c2c615a95c4c4a795323c2406963 (patch) | |
tree | 49de9097e31d75781373f196f82f1f72219bb023 | |
parent | eaf98d78f8b916d925e19cc16ce8379ac834ae11 (diff) |
autogen.sh can now be executed from any current working directory
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rwxr-xr-x | autogen.sh | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |