diff options
author | midipix <writeonce@midipix.org> | 2019-10-18 01:06:40 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-10-18 01:37:31 +0000 |
commit | 1421e9eece2b5df6f8007f7957420bf3035279bf (patch) | |
tree | d0ab18d7e2692d61d750dbb5960981261ff51ed5 | |
parent | 71685164d757a79c4b13dfab5eacc3ab4e086640 (diff) | |
download | dalist-1421e9eece2b5df6f8007f7957420bf3035279bf.tar.bz2 dalist-1421e9eece2b5df6f8007f7957420bf3035279bf.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='' |