summaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-10-18 01:06:40 +0000
committermidipix <writeonce@midipix.org>2019-10-18 01:37:31 +0000
commit298223c0f5484febfe078ca8e88173143f5cacb7 (patch)
tree4865bfe89f4b63f01c0c89f76856e39b89b35ef9 /configure
parent7e019b34a2dadf3b95d84c621b42818583bb6167 (diff)
downloadmmglue-298223c0f5484febfe078ca8e88173143f5cacb7.tar.bz2
mmglue-298223c0f5484febfe078ca8e88173143f5cacb7.tar.xz
build system: configure: support shells with function-specific $0.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure b/configure
index 8ec6f09..c7fe370 100755
--- a/configure
+++ b/configure
@@ -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=''