diff options
author | midipix <writeonce@midipix.org> | 2019-10-18 01:06:40 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-10-18 01:06:40 +0000 |
commit | 894f4f52b2590831a14c6992eed4709d6a93e50f (patch) | |
tree | 59936b1a12ed65bf300bc9d747df3a4833b32761 /configure | |
parent | 05e19ebebad07b52ecf7bc2972759d4ba1fe0036 (diff) | |
download | sofort-894f4f52b2590831a14c6992eed4709d6a93e50f.tar.bz2 sofort-894f4f52b2590831a14c6992eed4709d6a93e50f.tar.xz |
build system: configure: support shells with function-specific $0.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -4,6 +4,10 @@ set -eu trap config_failure 1 2 EXIT +# before we begin... +mb_script="$0" +mb_path="$PATH" + usage() { cat "$mb_project_dir"/config.usage @@ -44,7 +48,7 @@ warning_msg() init_vars() { - mb_project_dir=$(cd "$(dirname $0)" ; pwd) + mb_project_dir=$(cd "$(dirname "$mb_script")" ; pwd) mb_pwd=$(pwd) mb_custom_cfgdefs_args='' |