Changeset 3047


Ignore:
Timestamp:
Nov 1, 2013 11:10:09 AM (6 years ago)
Author:
stefan
Message:

try again with coin-or server before using ampl.com

File:
1 edited

Legend:

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

    r2986 r3047  
    3232else
    3333  echo
    34   echo "Failed, try downloading the source code from www.ampl.com..."
    35   if ! $wgetcmd http://www.ampl.com/netlib/ampl/solvers.tgz ;
     34  tryamplcom=1
     35  if test "$wgetcmd" = wget ;
    3636  then
    37     # Gus reported problems with the ASL tarball downloaded from sandia via his wget, so we give the coin-or server another chance first
    38     trysandia=1
    39     if test "$wgetcmd" = wget ;
     37    # the ASL tarball on ampl.com is changing over time, so we give the coin-or server another chance first
     38    echo -n "Failed, try downloading from https://projects.coin-or.org without certificate check? (y/n) "
     39    if test "$1" = "-y" ;
    4040    then
    41       echo -n "Failed, try downloading from https://projects.coin-or.org without certificate check? (y/n) "
    42       if test "$1" = "-y" ;
     41      doit=y
     42      echo y
     43    else
     44      read doit
     45      echo
     46    fi
     47    if test "$doit" = y ;
     48    then
     49      if $wgetcmd --no-check-certificate https://projects.coin-or.org/svn/BuildTools/ThirdParty/ASL/src/$coinasl ;
    4350      then
    44         doit=y
    45         echo y
    46       else
    47         read doit
    48         echo
    49       fi
    50       if test "$doit" = y ;
    51       then
    52         if $wgetcmd --no-check-certificate https://projects.coin-or.org/svn/BuildTools/ThirdParty/ASL/src/$coinasl ;
    53         then
    54           mv $coinasl solvers.tar
    55           trysandia=0
    56         fi
     51        mv $coinasl solvers.tar
     52        tryamplcom=0
    5753      fi
    5854    fi
    59     if test $trysandia = 1 ;
    60     then
    61       echo
    62       echo "Failed, try downloading the source code from netlib.sandia.gov..."
    63       rm -f netlibfiles.tar*
    64       $wgetcmd http://netlib.sandia.gov/cgi-bin/netlib/netlibfiles.tar?filename=netlib/ampl/solvers
    65       mv netlibfiles.tar* solvers.tar
    66     fi
    67   else
     55  fi
     56  if test $tryamplcom = 1 ;
     57  then
     58    echo
     59    echo "Failed, try downloading the source code from www.ampl.com..."
     60    $wgetcmd http://www.ampl.com/netlib/ampl/solvers.tgz ;
    6861    gunzip solvers.tgz
    6962  fi
Note: See TracChangeset for help on using the changeset viewer.