From 12a4dd01cc161b620d717b337b4eb00bc2ba460b Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Tue, 24 Nov 2015 10:35:25 +0000 Subject: [PATCH] bootstrap: allow bootstrap execution from any directory --- bootstrap | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bootstrap b/bootstrap index 2e856c4a..ca72d8f7 100755 --- 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