Changeset 492


Ignore:
Timestamp:
Aug 9, 2007 3:45:06 PM (12 years ago)
Author:
andreasw
Message:

on Darwin, use ftp if wget is not there for download

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/ASL/branches/BSP/trunk/get.ASL

    r386 r492  
    33set -e
    44
     5wgetcmd=wget
    56wgetcount=`which wget 2>/dev/null | wc -w`
    67if test ! $wgetcount = 1; then
    78  echo "Utility wget not found in your PATH."
    8   exit -1
     9  if test `uname` = Darwin; then
     10    wgetcmd=ftp
     11    echo "Using ftp command instead."
     12  else
     13    exit -1
     14  fi
    915fi
    1016
     
    1521rm -f solvers.tar
    1622echo "Downloading the source code from www.netlib.org..."
    17 wget ftp://www.netlib.org/ampl/solvers.tar
     23$wgetcmd ftp://www.netlib.org/ampl/solvers.tar
    1824
    1925echo "Unpacking the source code..."
Note: See TracChangeset for help on using the changeset viewer.