diff options
author | midipix <writeonce@midipix.org> | 2019-10-18 01:06:40 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-10-18 01:36:04 +0000 |
commit | cb498ae6fde12b5dfb59f0939cec48a88c2596d2 (patch) | |
tree | b9e108ae0d7ebc2c387a5942f8653bde1ed7de47 | |
parent | 61ff7bcb7d5912b79e86221cbf696581e344c232 (diff) | |
download | slibtool-cb498ae6fde12b5dfb59f0939cec48a88c2596d2.tar.bz2 slibtool-cb498ae6fde12b5dfb59f0939cec48a88c2596d2.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='' |