http://bugs.ethereal.com/bugzilla/show_bug.cgi?id=377
[obnox/wireshark/wip.git] / tools / win32-setup.sh
old mode 100644 (file)
new mode 100755 (executable)
index 0272762..a1494d9
@@ -1,8 +1,10 @@
 #!/bin/sh
 
-DOWNLOAD_PREFIX="http://www.ethereal.com/distribution/win32/development"
+# DOWNLOAD_PREFIX="http://www.ethereal.com/distribution/win32/development"
+DOWNLOAD_PREFIX="http://anonsvn.ethereal.com/ethereal-win32-libs/tags/2005-07-24/packages"
 
 err_exit () {
+       echo ""
        echo "ERROR: $1"
        echo ""
        exit 1
@@ -24,6 +26,8 @@ case "$1" in
                usage
        fi
        echo "Checking for required applications:"
+       which which > /dev/null 2>&1 || \
+               err_exit "Can't find 'which'.  Unable to proceed."
        for APP in $* ; do
                APP_PATH=`cygpath --unix $APP`
                if [ -x "$APP_PATH" -a ! -d "$APP_PATH" ] ; then
@@ -70,7 +74,7 @@ case "$1" in
        unzip -nq "$DEST_PATH/$PACKAGE" || 
                err_exit "Couldn't unpack $DEST_PATH/$PACKAGE"
        echo "Verifying that the DLLs in $DEST_PATH/$DEST_SUBDIR are executable."
-       for i in `find $DEST_PATH/$DEST_SUBDIR -name \*\.dll` ; do
+       for i in `/usr/bin/find $DEST_PATH/$DEST_SUBDIR -name \*\.dll` ; do
                if [ ! -x "$i" ] ; then
                        echo "Changing file permissions (add executable bit) to:"
                        echo "$i"