1.1 --- a/scripts/showSamples.sh Sat Nov 01 16:49:00 2008 +0000
1.2 +++ b/scripts/showSamples.sh Mon May 18 16:51:20 2009 +0000
1.3 @@ -1,8 +1,12 @@
1.4 -#!/bin/bash
1.5 +#!/bin/sh
1.6 +# Yes, this is supposed to be a POSIX-compliant shell script.
1.7
1.8 # Parses all samples on the command line, and for each of them, prints
1.9 # the versions of the main tools
1.10
1.11 +# Use tools discovered by ./configure
1.12 +. "${CT_LIB_DIR}/paths.mk"
1.13 +
1.14 [ "$1" = "-v" ] && opt="$1" && shift
1.15 [ "$1" = "-w" ] && opt="$1" && shift
1.16
1.17 @@ -100,8 +104,8 @@
1.18 )
1.19 sample_updated=$(date -u "+%Y%m%d" \
1.20 -d "$(LC_ALL=C svn info ${sample_top}/samples/${sample} \
1.21 - |GREP_OPTIONS= egrep '^Last Changed Date:' \
1.22 - |sed -r -e 's/^[^:]+: //;' \
1.23 + |GREP_OPTIONS= "${grep}" -E '^Last Changed Date:' \
1.24 + |"${sed}" -r -e 's/^[^:]+: //;' \
1.25 -e 's/^(.+:.. [+-][[:digit:]]{4}) \(.+\)$/\1/;' \
1.26 )" \
1.27 )