Revision: 3473 Author: eliot Date: 2015-10-08 12:11:37 -0700 (Thu, 08 Oct 2015) Log Message: ----------- Check for an executable wget and issue a helpful error message pointing to an installable version for windows.
Modified Paths: -------------- branches/Cog/image/envvars.sh
Modified: branches/Cog/image/envvars.sh =================================================================== --- branches/Cog/image/envvars.sh 2015-10-06 18:13:18 UTC (rev 3472) +++ branches/Cog/image/envvars.sh 2015-10-08 19:11:37 UTC (rev 3473) @@ -29,6 +29,11 @@ test "$OS" = Darwin && function geturl () { FILE=`basename "$1"`; curl -C - "`echo $1 | sed 's/ /%20/g'`" -o "$FILE"; } test "$OS" = Darwin || function geturl () { wget -c "$1"; }
+if [ "$OS" != Darwin -a ! -x "`which wget`" ]; then + echo "cannot find wget. wget for Windows is available from http://gnuwin32.sourceforge.net/packages/wget.htm, probably as http://downloads.sourceforge.net/gnuwin32/wget-1.11.4-1-setup.exe" 1>&2 + exit +fi + if unzip --help >/dev/null; then true else
vm-dev@lists.squeakfoundation.org