diff options
author | midipix <writeonce@midipix.org> | 2019-10-18 01:06:40 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-10-18 01:37:33 +0000 |
commit | b4ba5ba472eda1069cdd8ec7a757c66641352ec0 (patch) | |
tree | caae25c5d14d9ef4df5fda5125775707ee244753 /configure | |
parent | 22f4103f454397d617b6482fff08bcae7fa6bc75 (diff) | |
download | sbpython2-b4ba5ba472eda1069cdd8ec7a757c66641352ec0.tar.bz2 sbpython2-b4ba5ba472eda1069cdd8ec7a757c66641352ec0.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='' |