diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.sh | 10 |
1 files changed, 10 insertions, 0 deletions
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 |