summaryrefslogtreecommitdiff
path: root/scripts/showSamples.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-04-01 22:18:26 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-04-01 22:18:26 (GMT)
commite5a007415a0fa8bb4a6d6d9b6a9d1fd3e45acb74 (patch)
tree49927e3c122645a97ea83e63af381aea7d54098c /scripts/showSamples.sh
parent5807b7dfb7a0234b5157e761b195d478f9803067 (diff)
scripts: misc help and auto-complete fixes
- don't list samples in the main help screen - improve the samples listing in list-samples - don't document the 'config' action, it's long dead - document the 'V' environment variable - improve on START, STOP and PREFIX environment variables - add PREFIX and V to autocomplete - advertise auto-complete at install time
Diffstat (limited to 'scripts/showSamples.sh')
-rwxr-xr-xscripts/showSamples.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/showSamples.sh b/scripts/showSamples.sh
index 2c3f0cf..00490a9 100755
--- a/scripts/showSamples.sh
+++ b/scripts/showSamples.sh
@@ -30,10 +30,10 @@ dump_single_sample() {
;;
*) if [ -f "${CT_TOP_DIR}/samples/${sample}/crosstool.config" ]; then
sample_top="${CT_TOP_DIR}"
- sample_type="l"
+ sample_type="L"
else
sample_top="${CT_LIB_DIR}"
- sample_type="g"
+ sample_type="G"
fi
. "${sample_top}/samples/${sample}/crosstool.config"
;;
@@ -174,6 +174,8 @@ if [ "${opt}" = -w ]; then
printf "^ Initially\\\\\\\\ reported by "
printf "^ Last\\\\\\\\ updated "
echo "^"
+elif [ -z "${opt}" ]; then
+ printf "%-*s Status\n" ${width} "Sample name"
fi
for sample in "${@}"; do
@@ -184,8 +186,8 @@ if [ "${opt}" = -w ]; then
printf "^ Total: ${#@} samples || **X**: sample uses features marked as being EXPERIMENTAL.\\\\\\\\ **B**: sample is curently BROKEN. |||||||||||||"
echo ""
elif [ -z "${opt}" ]; then
- echo ' l (local) : sample was found in current directory'
- echo ' g (global) : sample was installed with crosstool-NG'
+ echo ' L (Local) : sample was found in current directory'
+ echo ' G (Global) : sample was installed with crosstool-NG'
echo ' X (EXPERIMENTAL): sample may use EXPERIMENTAL features'
echo ' B (BROKEN) : sample is currently broken'
fi