瀏覽代碼

Allow overriding path variables

Having them strictly hard-coded makes it difficult to write system tests
test in staged install scenarios.
Alois Mahdal 7 年之前
父節點
當前提交
fb18709a2c
共有 1 個檔案被更改,包括 6 行新增5 行删除
  1. 6
    5
      src/bin/app.skel

+ 6
- 5
src/bin/app.skel 查看文件

@@ -8,12 +8,13 @@
8 8
     SATURNIN_APP_TAGLINE="__MKIT_PROJ_TAGLINE__"
9 9
     SATURNIN_APP_VERSION="__MKIT_PROJ_VERSION__"
10 10
     SATURNIN_APP_GIT_HASH="__MKIT_PROJ_GIT_LASTHASH__"
11
-    SATURNIN_CACHE_HOME="__SATURNIN_CACHE_HOME__"
12
-    SATURNIN_CONFIG_HOME="__SATURNIN_CONFIG_HOME__"
13
-    SATURNIN_DATA_HOME="__SATURNIN_DATA_HOME__"
14
-    SATURNIN_LIBEXEC="__SATURNIN_LIBEXEC__"
11
+    SATURNIN_CACHE_HOME=${SATURNIN_CACHE_HOME:-"__SATURNIN_CACHE_HOME__"}
12
+    SATURNIN_CONFIG_HOME=${SATURNIN_CONFIG_HOME:-"__SATURNIN_CONFIG_HOME__"}
13
+    SATURNIN_DATA_HOME=${SATURNIN_DATA_HOME:-"__SATURNIN_DATA_HOME__"}
14
+    SATURNIN_META_HELP=${SATURNIN_META_HELP:-"+__SATURNIN_META_HELP__"}
15
+    SATURNIN_LIBEXEC=${SATURNIN_LIBEXEC:-"__SATURNIN_LIBEXEC__"}
15 16
     SATURNIN_LIBEXEC_PREFIX="__MKIT_PROJ_PKGNAME__-"
16
-    SHELLFU_PATH="__SATURNIN_SHELLFU_DIR__"
17
+    SHELLFU_PATH=${SHELLFU_PATH:-"__SATURNIN_SHELLFU_DIR__"}
17 18
     PRETTY_USAGE="subcommand"
18 19
     PRETTY_DEBUG_EXCLUDE="$PRETTY_DEBUG_EXCLUDE,inigrep,saturnin"
19 20
 }