Introduce the notion of a 'sample comment'.
- presence of the sample's reported.by file is now mandatory.
- when saving a sample, reporter name & URL are queried, to avoid operator forget about creating the reported.by file.
- when saving a sample, one can store a few-liner comment.
- when recalling a sample, the reporter name, URL and comment (if present) are printed.
- update the powerpc-e500v2-linux-gnuspe sample to include Nate's comment (from his original mail).
- update all samples that were missing the reported.by file.
/trunk/scripts/saveSample.sh | 46 35 11 0 ++++++++++++++++++------
/trunk/scripts/showSamples.sh | 12 6 6 0 +++---
/trunk/samples/powerpc-e500v2-linux-gnuspe/reported.by | 15 15 0 0 ++++++++
/trunk/samples/samples.mk | 22 17 5 0 +++++++++--
4 files changed, 73 insertions(+), 22 deletions(-)
4 local cur prev samples show_samples actions steps start_steps stop_steps ct_ng_opts vars
7 prev=${COMP_WORDS[COMP_CWORD-1]}
9 samples=$(${COMP_WORDS[0]} list-samples 2>/dev/null)
10 show_samples=$(echo "${samples}" |sed -r -e 's/(^| )/\1show-/g;')
12 steps=$(${COMP_WORDS[0]} list-steps 2>/dev/null |awk '$1 == "-" { print $2; }')
13 start_steps=$(echo "${steps}" |sed -r -e 's/($| )/\1+/;')
14 stop_steps=$(echo "${steps}" |sed -r -e 's/(^| )/+\1/;')
16 actions='menuconfig oldconfig saveconfig
17 list-samples build build. list-steps regtest regtest-local
18 regtest-global clean distclean wiki-samples updatetools
23 ct_ng_opts="${samples} ${show_samples}
24 ${steps} ${start_steps} ${stop_steps}
27 COMPREPLY=($(compgen -W "${ct_ng_opts}" -- "${cur}"))
30 complete -F _ct-ng ct-ng