diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-02-01 18:43:45 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-02-01 18:43:45 +0000 |
commit | d80eda68dd4ea5070fbe1b7c4df2802fc8ef04d3 (patch) | |
tree | 50bb9b084609fdadee402946cab3a11e29bc7b71 /scripts | |
parent | 7eda231a2d7903324c7ea84fe1107ac21333e6ea (diff) | |
download | crosstool-ng-d80eda68dd4ea5070fbe1b7c4df2802fc8ef04d3.tar.gz crosstool-ng-d80eda68dd4ea5070fbe1b7c4df2802fc8ef04d3.tar.bz2 crosstool-ng-d80eda68dd4ea5070fbe1b7c4df2802fc8ef04d3.zip |
Use tools discovered via ./configure in scripts/showSample.sh; make it a POSIX shell script.
/trunk/scripts/showSamples.sh | 10 7 3 0 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/showSamples.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/showSamples.sh b/scripts/showSamples.sh index 6a847a16..f06a1838 100755 --- a/scripts/showSamples.sh +++ b/scripts/showSamples.sh @@ -1,8 +1,12 @@ -#!/bin/bash +#!/bin/sh +# Yes, this is supposed to be a POSIX-compliant shell script. # Parses all samples on the command line, and for each of them, prints # the versions of the main tools +# Use tools discovered by ./configure +. "${CT_LIB_DIR}/paths.mk" + [ "$1" = "-v" ] && opt="$1" && shift [ "$1" = "-w" ] && opt="$1" && shift @@ -100,8 +104,8 @@ dump_single_sample() { ) sample_updated=$(date -u "+%Y%m%d" \ -d "$(LC_ALL=C svn info ${sample_top}/samples/${sample} \ - |GREP_OPTIONS= egrep '^Last Changed Date:' \ - |sed -r -e 's/^[^:]+: //;' \ + |GREP_OPTIONS= "${grep}" -E '^Last Changed Date:' \ + |"${sed}" -r -e 's/^[^:]+: //;' \ -e 's/^(.+:.. [+-][[:digit:]]{4}) \(.+\)$/\1/;' \ )" \ ) |