Parcourir la source

Move all global definitions to one place

Alois Mahdal il y a 8 ans
Parent
révision
d310c03e50
2 fichiers modifiés avec 26 ajouts et 26 suppressions
  1. 0
    26
      src/include/mkit.sh
  2. 26
    0
      src/make.skel

+ 0
- 26
src/include/mkit.sh Voir le fichier

@@ -5,32 +5,6 @@
5 5
 . "$MKIT_DIR/include/release.sh" || die "cannot import release.sh"
6 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 8
 _valid_targets() {
35 9
     #
36 10
     # List valid routes

+ 26
- 0
src/make.skel Voir le fichier

@@ -12,6 +12,11 @@ die() {
12 12
 #
13 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 21
 # Path to MKit dir (where 'include' is)
17 22
 #
@@ -24,6 +29,20 @@ MKIT_DIR=${MKIT_DIR:-$(dirname "$0")}
24 29
 #
25 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 47
 # Path to MKit local config and temp
29 48
 #
@@ -32,6 +51,13 @@ MKIT_DRY=${MKIT_DRY:-false}
32 51
 #
33 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 62
 # This MKit version
37 63
 #