Use tools discovered via ./configure in scripts/showSample.sh; make it a POSIX shell script.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Feb 01 18:43:45 2009 +0000 (2009-02-01)
changeset 1188a954ea1de05f
parent 1187 3a76b3242ed8
child 1189 5c20d52c8270
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(-)
scripts/showSamples.sh
     1.1 --- a/scripts/showSamples.sh	Sun Feb 01 18:40:16 2009 +0000
     1.2 +++ b/scripts/showSamples.sh	Sun Feb 01 18:43:45 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                          )