Changeset 2823 for ThirdParty/ASL


Ignore:
Timestamp:
Jul 23, 2013 6:04:07 AM (6 years ago)
Author:
stefan
Message:

try sandia mirror if ftp-netlib does not work

File:
1 edited

Legend:

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

    r2820 r2823  
    2424rm -f solvers.tar
    2525echo "Downloading the source code from www.netlib.org..."
    26 $wgetcmd ftp://www.netlib.org/ampl/solvers.tar
     26if ! $wgetcmd ftp://www.netlib.org/ampl/solvers.tar ;
     27then
     28  echo
     29  echo "Failed, try downloading the source code from netlib.sandia.gov..."
     30  rm -f netlibfiles.tar*
     31  $wgetcmd http://netlib.sandia.gov/cgi-bin/netlib/netlibfiles.tar?filename=netlib/ampl/solvers
     32  mv netlibfiles.tar* solvers.tar
     33fi
    2734
    2835rm -rf solvers
Note: See TracChangeset for help on using the changeset viewer.