#!/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
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
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"