Browse Source

Move all global definitions to one place

Alois Mahdal 8 years ago
parent
commit
d310c03e50
2 changed files with 26 additions and 26 deletions
  1. 0
    26
      src/include/mkit.sh
  2. 26
    0
      src/make.skel

+ 0
- 26
src/include/mkit.sh View File

5
 . "$MKIT_DIR/include/release.sh" || die "cannot import release.sh"
5
 . "$MKIT_DIR/include/release.sh" || die "cannot import release.sh"
6
 . "$MKIT_DIR/include/ini.sh"    || die "cannot import ini.sh"
6
 . "$MKIT_DIR/include/ini.sh"    || die "cannot import ini.sh"
7
 
7
 
8
-#
9
-# Path to mkit.ini
10
-#
11
-MKIT_INI=${MKIT_INI:-mkit.ini}
12
-
13
-#
14
-# Limit ini expansion depth
15
-#
16
-# To avoid endless loops, this value is subtracted each
17
-# time ini() expands a reference; when zero is reached,
18
-# no more expansions happen.
19
-#
20
-MKIT_INI_EXPAND=2
21
-
22
-#
23
-# Package name
24
-#
25
-# Used as base for tarball and in some default tokens.
26
-#
27
-MKIT_PROJ_PKGNAME=""
28
-
29
-#
30
-# Default deploy mode for files
31
-#
32
-MKIT_DEFAULT_MODE="644"
33
-
34
 _valid_targets() {
8
 _valid_targets() {
35
     #
9
     #
36
     # List valid routes
10
     # List valid routes

+ 26
- 0
src/make.skel View File

12
 #
12
 #
13
 MKIT_DEBUG=${MKIT_DEBUG:-false}
13
 MKIT_DEBUG=${MKIT_DEBUG:-false}
14
 
14
 
15
+#
16
+# Default deploy mode for files
17
+#
18
+MKIT_DEFAULT_MODE="644"
19
+
15
 #
20
 #
16
 # Path to MKit dir (where 'include' is)
21
 # Path to MKit dir (where 'include' is)
17
 #
22
 #
24
 #
29
 #
25
 MKIT_DRY=${MKIT_DRY:-false}
30
 MKIT_DRY=${MKIT_DRY:-false}
26
 
31
 
32
+#
33
+# Path to mkit.ini
34
+#
35
+MKIT_INI=${MKIT_INI:-mkit.ini}
36
+
37
+#
38
+# Limit ini expansion depth
39
+#
40
+# To avoid endless loops, this value is subtracted each
41
+# time ini() expands a reference; when zero is reached,
42
+# no more expansions happen.
43
+#
44
+MKIT_INI_EXPAND=2
45
+
27
 #
46
 #
28
 # Path to MKit local config and temp
47
 # Path to MKit local config and temp
29
 #
48
 #
32
 #
51
 #
33
 MKIT_LOCAL=${MKIT_LOCAL:-.mkit}
52
 MKIT_LOCAL=${MKIT_LOCAL:-.mkit}
34
 
53
 
54
+#
55
+# Package name
56
+#
57
+# Used as base for tarball and in some default tokens.
58
+#
59
+MKIT_PROJ_PKGNAME=""
60
+
35
 #
61
 #
36
 # This MKit version
62
 # This MKit version
37
 #
63
 #