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 | ae1e64faa02d2ffce1e752b659f5bb9e64836efe (patch) | |
tree | d88a710f44f2b403cf971cd98d65540abf4359b9 | |
parent | b16aa0f2135640e7636befa22507b1e02357b9ea (diff) | |
download | ptycon-ae1e64faa02d2ffce1e752b659f5bb9e64836efe.tar.bz2 ptycon-ae1e64faa02d2ffce1e752b659f5bb9e64836efe.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='' |