summaryrefslogtreecommitdiff
path: root/ct-ng.comp
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@free.fr>2013-01-21 23:32:38 (GMT)
committerYann E. MORIN" <yann.morin.1998@free.fr>2013-01-21 23:32:38 (GMT)
commitd82f1c6f2a86707ebcfe134cb600b382cb00cc65 (patch)
treefd790fbd400eb366d70e610d692c4f1229d86ecc /ct-ng.comp
parent5e9d4ba24f44ed6f0adb205761ccc28440a1d086 (diff)
samples: check if update is needed
Add a ct-ng action to check if samples needs being updated. This will be usefull when the config options change. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Diffstat (limited to 'ct-ng.comp')
-rw-r--r--ct-ng.comp6
1 files changed, 4 insertions, 2 deletions
diff --git a/ct-ng.comp b/ct-ng.comp
index 19a39d6..172e1e9 100644
--- a/ct-ng.comp
+++ b/ct-ng.comp
@@ -9,6 +9,7 @@ _ct_ng () {
samples=$( "${COMP_WORDS[0]}" list-samples-short 2>/dev/null )
show_samples=$(echo "${samples}" |sed -r -e 's/(^| )/\1show-/g;')
build_samples=$(echo "${samples}" |sed -r -e 's/(^| )/\1build-/g;')
+ check_samples=$(echo "${samples}" |sed -r -e 's/(^| )/\1check-/g;')
steps=$(${COMP_WORDS[0]} list-steps 2>/dev/null |awk '$1 == "-" { print $2; }')
start_steps=$(echo "${steps}" |sed -r -e 's/($| )/\1+/;')
@@ -17,14 +18,15 @@ _ct_ng () {
actions='help menuconfig oldconfig saveconfig extractconfig
defconfig savedefconfig
build build. build-all build-all.
- wiki-samples list-samples list-samples-short list-steps
+ wiki-samples list-samples list-samples-short check-samples
+ list-steps
show-tuple show-all show-config
clean distclean updatetools
tarball version'
vars="RESTART= STOP= PREFIX= V= DEFCONFIG="
- ct_ng_opts="${samples} ${show_samples} ${build_samples}
+ ct_ng_opts="${samples} ${show_samples} ${build_samples} ${check_samples}
${steps} ${start_steps} ${stop_steps}
${actions} ${vars}"