|
@@ -87,6 +87,39 @@ __qfs() {
|
87
|
87
|
'
|
88
|
88
|
}
|
89
|
89
|
|
|
90
|
+_mkit_data() {
|
|
91
|
+ #
|
|
92
|
+ # Build sampler showing all token values
|
|
93
|
+ #
|
|
94
|
+ local token
|
|
95
|
+ local section
|
|
96
|
+ local sections
|
|
97
|
+ sections=()
|
|
98
|
+ ini lskeys tokens | grep -q . && sections=(tokens)
|
|
99
|
+ sections+=( $(ini lssect | grep ':tokens$') )
|
|
100
|
+ {
|
|
101
|
+ echo "(builtin):"
|
|
102
|
+ echo " x_MKIT_PROJ_NAME__ => '__MKIT_PROJ_NAME__'"
|
|
103
|
+ echo " x_MKIT_PROJ_CODENAME__ => '__MKIT_PROJ_CODENAME__'"
|
|
104
|
+ echo " x_MKIT_PROJ_LICENSE__ => '__MKIT_PROJ_LICENSE__'"
|
|
105
|
+ echo " x_MKIT_PROJ_PKGNAME__ => '__MKIT_PROJ_PKGNAME__'"
|
|
106
|
+ echo " x_MKIT_PROJ_TAGLINE__ => '__MKIT_PROJ_TAGLINE__'"
|
|
107
|
+ echo " x_MKIT_PROJ_MAINTAINER__ => '__MKIT_PROJ_MAINTAINER__'"
|
|
108
|
+ echo " x_MKIT_PROJ_VCS_BROWSER__ => '__MKIT_PROJ_VCS_BROWSER__'"
|
|
109
|
+ echo " x_MKIT_PROJ_GIT_LASTHASH__ => '__MKIT_PROJ_GIT_LASTHASH__'"
|
|
110
|
+ echo " x_MKIT_PROJ_VERSION__ => '__MKIT_PROJ_VERSION__'"
|
|
111
|
+ echo " x_MKIT_SELF_VERSION__ => '__MKIT_SELF_VERSION__'"
|
|
112
|
+ for section in "${sections[@]}"; do
|
|
113
|
+ echo "$section:"
|
|
114
|
+ for token in $(ini lskeys "$section"); do
|
|
115
|
+ echo " x${token:1} => '$token'"
|
|
116
|
+ done
|
|
117
|
+ done
|
|
118
|
+ } \
|
|
119
|
+ | __expand_tokens "MKIT_BUILTIN" "${sections[@]}" \
|
|
120
|
+ | sed '/^ x/ s|x|_|'
|
|
121
|
+}
|
|
122
|
+
|
90
|
123
|
build() {
|
91
|
124
|
#
|
92
|
125
|
# Add meat to all skeletons
|