diff options
author | Bill Meier <wmeier@newsguy.com> | 2009-02-09 17:02:26 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2009-02-09 17:02:26 +0000 |
commit | 1eac6ce0733d3971dcdb9cfa06205eb7c6d21d8c (patch) | |
tree | 574f625fbfcc9e31227c09dbae1c7db3f23427ba | |
parent | 79e68576f0d06dbec50bde3778e3feffb18b9f76 (diff) |
From yamisoe AT gmail.com: appverify: Report all missing applications in one run.
svn path=/trunk/; revision=27402
-rwxr-xr-x | tools/win32-setup.sh | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tools/win32-setup.sh b/tools/win32-setup.sh index 2b2af6f1f3..d03efc52f4 100755 --- a/tools/win32-setup.sh +++ b/tools/win32-setup.sh @@ -76,6 +76,8 @@ case "$1" in echo "Checking for required applications:" which which > /dev/null 2>&1 || \ err_exit "Can't find 'which'. Unable to proceed." + + MISSING_APPS= for APP in $* ; do APP_PATH=`cygpath --unix $APP` if [ -x "$APP_PATH" -a ! -d "$APP_PATH" ] ; then @@ -84,10 +86,17 @@ case "$1" in APP_LOC=`which $APP_PATH 2> /dev/null` fi if [ "$APP_LOC" = "" ] ; then - err_exit "Can't find $APP. This is probably an optional cygwin package not yet installed. Try to install it using cygwin's setup.exe!" + MISSING_APPS="$MISSING_APPS $APP" + else + echo " $APP: $APP_LOC $res" fi - echo " $APP: $APP_LOC $res" done + + if [ -n "$MISSING_APPS" ]; then + echo + echo "Can't find: $MISSING_APPS" + err_exit "These are probably optional cygwin packages not yet installed. Try to install them using cygwin's setup.exe!" + fi ;; --libverify) if [ -z "$2" -o -z "$3" -o -z "$4" ] ; then |