commit 12a4dd01cc161b620d717b337b4eb00bc2ba460b parent a7a3d5cccab3cd550f4e3ba1dde12108a8818bd2 Author: Evgeny Grin (Karlson2k) <k2k@narod.ru> Date: Tue, 24 Nov 2015 10:35:25 +0000 bootstrap: allow bootstrap execution from any directory Diffstat:
| M | bootstrap | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/bootstrap b/bootstrap @@ -1,3 +1,5 @@ #!/bin/sh +test -n "$BASH_SOURCE" && workdir="${BASH_SOURCE[0]%/*}" && test -n "$workdir" && cd "$workdir" || \ +workdir=`dirname "$0"` && test -n "$workdir" && cd "$workdir" || echo "Warning: can't get working directory" 1>&2 aclocal -I m4 --install autoreconf -I m4 -f -i