Skip to content

Commit 4743ab7

Browse files
committed
[update] : Updated help documentation
1 parent ebb5b4d commit 4743ab7

File tree

2 files changed

+23
-12
lines changed

2 files changed

+23
-12
lines changed

tools/kernel.sh

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,20 @@ _help() {
1515
echo "Scripts that perform kernel-related processing "
1616
echo
1717
echo " General command:"
18-
echo " check [name] Determine if the kernel is available"
19-
echo " show Shows a list of available kernels"
20-
echo " get [name] Prints the specified kernel settings"
21-
echo " help This help message"
18+
echo " check [name] Determine if the kernel is available"
19+
echo " show Shows a list of available kernels"
20+
echo " get [name] Prints the specified kernel settings"
21+
echo " help This help message"
2222
echo
2323
echo " General options:"
2424
echo " -a | --arch [arch] Specify the architecture"
2525
echo " -c | --channel Specify the channel"
2626
echo " -s | --script Enable script mode"
2727
echo " -h | --help This help message"
28+
echo
29+
echo " Script mode usage:"
30+
echo " check Returns 0 if the check was successful, 1 otherwise."
31+
printf ' get eval $(%s -s -a <arch> -c <channel> get <kernel>)\n' "$(basename ${0})"
2832
}
2933

3034
# Usage: getclm <number>
@@ -46,6 +50,8 @@ gen_kernel_list() {
4650
local _list _kernel
4751
if [[ -n "${channel}" ]] && [[ -f "${script_path}/channels/${channel}/kernel_list-${arch}" ]]; then
4852
_list="${script_path}/channels/${channel}/kernel_list-${arch}"
53+
elif [[ -n "${channel}" ]] && [[ -f "${script_path}/channels/${channel}/kernel-${arch}" ]]; then
54+
_list="${script_path}/channels/${channel}/kernel-${arch}"
4955
else
5056
_list="${script_path}/system/kernel-${arch}"
5157
fi
@@ -61,10 +67,10 @@ check() {
6167
exit 1
6268
fi
6369
if [[ $(printf '%s\n' "${kernellist[@]}" | grep -qx "${1}"; echo -n ${?} ) -eq 0 ]]; then
64-
echo "correct"
70+
#echo "correct"
6571
exit 0
6672
else
67-
echo "incorrect"
73+
#echo "incorrect"
6874
exit 1
6975
fi
7076
}

tools/locale.sh

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,20 @@ _help() {
1515
echo "Scripts that perform locale-related processing "
1616
echo
1717
echo " General command:"
18-
echo " check [name] Determine if the locale is available"
19-
echo " show Shows a list of available locales"
20-
echo " get [name] Prints the specified locale settings"
21-
echo " help This help message"
18+
echo " check [name] Determine if the locale is available"
19+
echo " show Shows a list of available locales"
20+
echo " get [name] Prints the specified locale settings"
21+
echo " help This help message"
2222
echo
2323
echo " General options:"
2424
echo " -a | --arch [arch] Specify the architecture"
2525
echo " -c | --channel Specify the channel"
26+
echo " -s | --script Enable script mode"
2627
echo " -h | --help This help message"
28+
echo
29+
echo " Script mode usage:"
30+
echo " check Returns 0 if the check was successful, 1 otherwise."
31+
printf ' get eval $(%s -s -a <arch> -c <channel> get <locale>)\n' "$(basename ${0})"
2732
}
2833

2934
# Usage: getclm <number>
@@ -55,10 +60,10 @@ check() {
5560
exit 1
5661
fi
5762
if [[ $(printf '%s\n' "${localelist[@]}" | grep -qx "${1}"; echo -n ${?} ) -eq 0 ]]; then
58-
echo "correct"
63+
#echo "correct"
5964
exit 0
6065
else
61-
echo "incorrect"
66+
#echo "incorrect"
6267
exit 1
6368
fi
6469
}

0 commit comments

Comments
 (0)