Changeset 2868 for ThirdParty/ASL


Ignore:
Timestamp:
Sep 8, 2013 12:55:26 PM (6 years ago)
Author:
stefan
Message:

disable certificate check only upon approval

Location:
ThirdParty/ASL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/ASL/stable/1.2/get.ASL

    r2860 r2868  
    33set -e
    44
    5 wgetcmd="wget --no-check-certificate"
     5wgetcmd="wget"
    66wgetcount=`which wget 2>/dev/null | wc -l`
    77if test ! $wgetcount = 1; then
     
    1818fi
    1919
     20coinasl=solvers-20130815.tar
     21
    2022echo " "
    2123echo "Running script for downloading the source code for the ASL"
     
    2527
    2628echo "Downloading the source code from projects.coin-or.org..."
    27 if $wgetcmd https://projects.coin-or.org/svn/BuildTools/ThirdParty/ASL/src/solvers-20130815.tar ;
     29if $wgetcmd https://projects.coin-or.org/svn/BuildTools/ThirdParty/ASL/src/$coinasl ;
    2830then
    29   mv solvers-20130815.tar solvers.tar
     31  mv $coinasl solvers.tar
    3032else
    3133  echo
     
    3335  if ! $wgetcmd ftp://www.netlib.org/ampl/solvers.tar ;
    3436  then
    35     echo
    36     echo "Failed, try downloading the source code from netlib.sandia.gov..."
    37     rm -f netlibfiles.tar*
    38     $wgetcmd http://netlib.sandia.gov/cgi-bin/netlib/netlibfiles.tar?filename=netlib/ampl/solvers
    39     mv netlibfiles.tar* solvers.tar
     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 ;
     40    then
     41      echo -n "Failed, try downloading from https://projects.coin-or.org without certificate check? (y/n) "
     42      if test "$1" = "-y" ;
     43      then
     44        doit=y
     45        echo y
     46      else
     47        read -n 1 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
     57      fi
     58    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
    4067  fi
    4168fi
  • ThirdParty/ASL/trunk/get.ASL

    r2859 r2868  
    33set -e
    44
    5 wgetcmd="wget --no-check-certificate"
     5wgetcmd="wget"
    66wgetcount=`which wget 2>/dev/null | wc -l`
    77if test ! $wgetcount = 1; then
     
    1818fi
    1919
     20coinasl=solvers-20130815.tar
     21
    2022echo " "
    2123echo "Running script for downloading the source code for the ASL"
     
    2527
    2628echo "Downloading the source code from projects.coin-or.org..."
    27 if $wgetcmd https://projects.coin-or.org/svn/BuildTools/ThirdParty/ASL/src/solvers-20130815.tar ;
     29if $wgetcmd https://projects.coin-or.org/svn/BuildTools/ThirdParty/ASL/src/$coinasl ;
    2830then
    29   mv solvers-20130815.tar solvers.tar
     31  mv $coinasl solvers.tar
    3032else
    3133  echo
     
    3335  if ! $wgetcmd ftp://www.netlib.org/ampl/solvers.tar ;
    3436  then
    35     echo
    36     echo "Failed, try downloading the source code from netlib.sandia.gov..."
    37     rm -f netlibfiles.tar*
    38     $wgetcmd http://netlib.sandia.gov/cgi-bin/netlib/netlibfiles.tar?filename=netlib/ampl/solvers
    39     mv netlibfiles.tar* solvers.tar
     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 ;
     40    then
     41      echo -n "Failed, try downloading from https://projects.coin-or.org without certificate check? (y/n) "
     42      if test "$1" = "-y" ;
     43      then
     44        doit=y
     45        echo y
     46      else
     47        read -n 1 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
     57      fi
     58    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
    4067  fi
    4168fi
Note: See TracChangeset for help on using the changeset viewer.