mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-06-21 00:22:54 +00:00
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(-)
This commit is contained in:
@ -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
|
# Parses all samples on the command line, and for each of them, prints
|
||||||
# the versions of the main tools
|
# the versions of the main tools
|
||||||
|
|
||||||
|
# Use tools discovered by ./configure
|
||||||
|
. "${CT_LIB_DIR}/paths.mk"
|
||||||
|
|
||||||
[ "$1" = "-v" ] && opt="$1" && shift
|
[ "$1" = "-v" ] && opt="$1" && shift
|
||||||
[ "$1" = "-w" ] && opt="$1" && shift
|
[ "$1" = "-w" ] && opt="$1" && shift
|
||||||
|
|
||||||
@ -100,8 +104,8 @@ dump_single_sample() {
|
|||||||
)
|
)
|
||||||
sample_updated=$(date -u "+%Y%m%d" \
|
sample_updated=$(date -u "+%Y%m%d" \
|
||||||
-d "$(LC_ALL=C svn info ${sample_top}/samples/${sample} \
|
-d "$(LC_ALL=C svn info ${sample_top}/samples/${sample} \
|
||||||
|GREP_OPTIONS= egrep '^Last Changed Date:' \
|
|GREP_OPTIONS= "${grep}" -E '^Last Changed Date:' \
|
||||||
|sed -r -e 's/^[^:]+: //;' \
|
|"${sed}" -r -e 's/^[^:]+: //;' \
|
||||||
-e 's/^(.+:.. [+-][[:digit:]]{4}) \(.+\)$/\1/;' \
|
-e 's/^(.+:.. [+-][[:digit:]]{4}) \(.+\)$/\1/;' \
|
||||||
)" \
|
)" \
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user