Procházet zdrojové kódy

Add docstrings to globals

Alois Mahdal před 8 roky
rodič
revize
57e2f93fe4
2 změnil soubory, kde provedl 46 přidání a 0 odebrání
  1. 21
    0
      src/include/mkit.sh
  2. 25
    0
      src/make.skel

+ 21
- 0
src/include/mkit.sh Zobrazit soubor

@@ -5,9 +5,30 @@
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
+#
8 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
+#
9 20
 MKIT_INI_EXPAND=2
21
+
22
+#
23
+# Package name
24
+#
25
+# Used as base for tarball and in some default tokens.
26
+#
10 27
 MKIT_PROJ_PKGNAME=""
28
+
29
+#
30
+# Default deploy mode for files
31
+#
11 32
 MKIT_DEFAULT_MODE="644"
12 33
 
13 34
 _valid_targets() {

+ 25
- 0
src/make.skel Zobrazit soubor

@@ -6,13 +6,38 @@ die() {
6 6
     echo "$@" && exit 9
7 7
 }
8 8
 
9
+
10
+#
11
+# This MKit version
12
+#
9 13
 export MKIT_VERSION=__MKIT_PROJ_VERSION__
10 14
 
15
+#
16
+# Path to MKit dir (where 'include' is)
17
+#
11 18
 export MKIT_DIR=${MKIT_DIR:-$(dirname "$0")}
19
+
20
+#
21
+# Path to MKit local config and temp
22
+#
23
+# Typically hidden in project root, here MKit can
24
+# save its temporary lists.
25
+#
12 26
 export MKIT_LOCAL=${MKIT_LOCAL:-.mkit}
27
+
28
+#
29
+# Dry mode (true|false)
30
+#
31
+# Set to true to not install anything. Implies MKIT_DEBUG.
32
+#
13 33
 export MKIT_DRY=${MKIT_DRY:-false}
34
+
35
+#
36
+# Debug mode (true|false)
37
+#
14 38
 export MKIT_DEBUG=${MKIT_DEBUG:-false}
15 39
 
40
+
16 41
 . "$MKIT_DIR/include/mkit.sh" || die "failed to init; check if MKIT_DIR is set properly: $MKIT_DIR"
17 42
 
18 43
 case "$1" in