From e23a5dd0a1b2818f795e995ea4c8bbadb25c8906 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 22 Jul 2017 20:27:14 -0400 Subject: main(): Detect execution from build directory --- diff --git a/src/main.sh b/src/main.sh index 09eec05..e8fd9f5 100644 --- a/src/main.sh +++ b/src/main.sh @@ -28,6 +28,8 @@ LF=' OPTSTRING='hVvb:' # Global variables +in_place= +builddir= loading_cmd= base_dir= conf_incoming_channel= @@ -43,6 +45,14 @@ main() local cmd= local status= + if [ -f "${0%/*}/.builddirstamp" ]; then + in_place=true + builddir="${0%/*}" + else + in_place=false + builddir='' + fi + init_sigs load_locale -- cgit v0.9.1