diff options
author | midipix <writeonce@midipix.org> | 2019-10-18 01:06:40 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-10-18 01:37:32 +0000 |
commit | 4f10f1879386e47342f22d5e3321ce4dbdc9821c (patch) | |
tree | 2603314259a96f033bed3d6e65ebf17c79a468ce | |
parent | 0029bf17fe1d821a1c622f28c62ee9edc4849e11 (diff) | |
download | ntux-4f10f1879386e47342f22d5e3321ce4dbdc9821c.tar.bz2 ntux-4f10f1879386e47342f22d5e3321ce4dbdc9821c.tar.xz |
build system: configure: support shells with function-specific $0.
-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='' |