From c8a68d987b4332bc57e8fe9e75ad7d5d4297d880 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Tue, 14 Oct 2008 21:30:27 +0000 Subject: 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(-) --- scripts/showSamples.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'scripts/showSamples.sh') diff --git a/scripts/showSamples.sh b/scripts/showSamples.sh index d946db99..a6c69632 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:' \ -- cgit v1.2.3