Browse Source

Derive MKIT_DIR from $0 if unset

Alois Mahdal 8 years ago
parent
commit
b6516f38ab
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/make.skel

+ 1
- 1
src/make.skel View File

@@ -8,7 +8,7 @@ die() {
8 8
 
9 9
 export MKIT_VERSION=__VERSION__
10 10
 
11
-export MKIT_DIR=${MKIT_DIR:-mkit}
11
+export MKIT_DIR=${MKIT_DIR:-$(dirname "$0")}
12 12
 export MKIT_LOCAL=${MKIT_LOCAL:-.mkit}
13 13
 
14 14
 . "$MKIT_DIR/include/mkit.sh" || die "failed to init; check if MKIT_DIR is set properly: $MKIT_DIR"