summaryrefslogtreecommitdiff
path: root/scripts/showSamples.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-10-14 21:30:27 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-10-14 21:30:27 (GMT)
commitc8a68d987b4332bc57e8fe9e75ad7d5d4297d880 (patch)
treeb438da88441655545ca568a3ff2a03416ed5753c /scripts/showSamples.sh
parentcb5b60fc07784346c527e93ceff5d656bef20712 (diff)
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(-)
Diffstat (limited to 'scripts/showSamples.sh')
-rwxr-xr-xscripts/showSamples.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/showSamples.sh b/scripts/showSamples.sh
index d946db9..a6c6963 100755
--- a/scripts/showSamples.sh
+++ b/scripts/showSamples.sh
@@ -83,17 +83,17 @@ dump_single_sample() {
[ "${CT_CC_LANG_OBJCXX}" = "y" ] && printf ", Objective-C++"
[ -n "${CT_CC_LANG_OTHERS}" ] && printf "\\\\\\\\ Others: ${CT_CC_LANG_OTHERS}"
printf " "
- if [ -f "${sample_top}/samples/${sample}/reported.by" ]; then
- ( . "${sample_top}/samples/${sample}/reported.by"
+ ( . "${sample_top}/samples/${sample}/reported.by"
+ if [ -n "${reporter_name}" ]; then
if [ -n "${reporter_url}" ]; then
printf "| [[${reporter_url}|${reporter_name}]] "
else
printf "| ${reporter_name} "
fi
- )
- else
- printf "| [[http://ymorin.is-a-geek.org/|YEM]] "
- fi
+ else
+ printf "| [[http://ymorin.is-a-geek.org/|YEM]] "
+ fi
+ )
sample_updated=$(date -u "+%Y%m%d" \
-d "$(LC_ALL=C svn info ${sample_top}/samples/${sample} \
|GREP_OPTIONS= egrep '^Last Changed Date:' \