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(-)
2 # (C) 2008 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
3 # Licensed under the GPL v.2
9 case "${LD_PRELOAD}" in
11 *) LD_PRELOAD="${LIBDUMA_SO} ${LD_PRELOAD}";;
16 # We use a suposedly POSIX-compliant shell: /bin/sh
17 # -> we can't use "${LD_PRELOAD//${LIBDUMA_SO}/}", it's not POSIX
18 # We don't know if sed will be present on the target
19 # -> we can't use $(echo "${LD_PRELOAD}" |sed -r -e "s|${LIBDUMA_SO}||;")
20 # So, iterate through LD_PRELOAD, and keep only those libs that
21 # are not "${LIBDUMA_SO}"
22 old_LD_PRELOAD="${LD_PRELOAD}"
24 for lib in ${old_LD_PRELOAD}; do
25 [ "${lib}" = "${LIBDUMA_SO}" ] || LD_PRELOAD="${LD_PRELOAD} ${lib}"
31 case "${LD_PRELOAD}" in
32 *${LIBDUMA_SO}*) echo "duma is enabled";;
33 *) echo "duma is disabled";;
41 Sets, unsets or show DUMA usage.
42 $0 <executable [arg...]>
43 Execute 'executable' (with arguments 'args') using DUMA.
45 false # Don't 'exit', we could well be source'd