changeset 70:fd02ad006886

new action: --list
author Volker Grabsch <vog@notjusthosting.com>
date Sun, 08 Jul 2007 01:30:41 +0200
parents ec91baeda774
children 690813a472bf
files build_mingw_cross_env.sh
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/build_mingw_cross_env.sh	Sat Jul 07 22:35:15 2007 +0000
+++ b/build_mingw_cross_env.sh	Sun Jul 08 01:30:41 2007 +0200
@@ -23,6 +23,10 @@
 #   <no action>
 #       same as '--download', followed by '--build'.
 #
+#   --list
+#       list all supported packages and their versions to
+#       be built.
+#
 #   --new-versions
 #       retrieve the new version numbers of all packages
 #       (modifies the script in-place, use with caution!)
@@ -145,6 +149,12 @@
     $BASH "$0" --build
     exit 0
     ;;
+--list)
+    # transform all VERSION_xxx declaration lines of this script
+    set - -x
+    $SED -n 's,^VERSION_\([^=]*\)=\(.*\),\1 (\2),p' "$0"
+    exit 0
+    ;;
 --new-versions|--download|--build|--build-experimental)
     # go ahead
     ;;