From 63f018eb41a0a0cbf7ca9365995225650e99e4b5 Mon Sep 17 00:00:00 2001 From: Ron Lee Date: Sat, 9 Oct 2004 12:08:05 +0000 Subject: [PATCH] Add basic --utility option for finding build dependent utils. More strictly define the exit codes -- 0 for success, 1 for failure, 2 for options that are not supported -- so as to enable feature testing. Quote the mac rezflags hack. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wx-config.in | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/wx-config.in b/wx-config.in index 97bbf20760..7b314ec627 100755 --- a/wx-config.in +++ b/wx-config.in @@ -28,8 +28,14 @@ decho() { echo "$*" 1>&2; } # usage _exitcode # Outputs a usage message to stderr and exits with _exitcode. -# Try to keep this to a single page. We can add alternate help -# targets if people want more detail from interactive help. +# Try to keep this to a single page (ie. < 25 lines). We can add +# alternate or interactive help targets if people want more detail. +# +# Exit codes are now subject to a more strict interpretation. +# wx-config should return 0 upon successful operation, 1 if the +# reqested operation could not be completed successfully, and 2 +# if the requested operation is not supported by this version of +# wx-config. usage() { cat 1>&2 <