From 2cb978d32a3b57b3fd22ed8485e9de9dd3c770ba Mon Sep 17 00:00:00 2001 From: Volker Grabsch Date: Mon, 9 Jul 2007 14:56:35 +0200 Subject: [PATCH] improved output of --list --- build_mingw_cross_env.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build_mingw_cross_env.sh b/build_mingw_cross_env.sh index 053eba91..24d6d0fb 100755 --- a/build_mingw_cross_env.sh +++ b/build_mingw_cross_env.sh @@ -152,7 +152,10 @@ case "$1" in --list) # transform all VERSION_xxx declaration lines of this script set - -x - $SED -n 's,^VERSION_\([^=]*\)=\(.*\),\1 (\2),p' "$0" + awk <"$0" ' + BEGIN { FS="^VERSION_|=" } + /^VERSION/ { printf "%-13s %s\n", $2, $3 }' | + sort exit 0 ;; --new-versions|--download|--build|--build-experimental)