diff options
author | midipix <writeonce@midipix.org> | 2019-10-18 01:06:40 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-10-18 01:37:30 +0000 |
commit | eba4c35724957416c6b6ed5c43cdc2efe166e8d3 (patch) | |
tree | 139f0d4593a5638853f6b8425ab9e2d91a4d5383 /configure | |
parent | 9b7e8273a0f3062a13bc444a6d0697fc507aaeef (diff) | |
download | apimagic-eba4c35724957416c6b6ed5c43cdc2efe166e8d3.tar.bz2 apimagic-eba4c35724957416c6b6ed5c43cdc2efe166e8d3.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='' |