Changeset 2868


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

disable certificate check only upon approval

Location:
ThirdParty
Files:
6 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
  • ThirdParty/Blas/stable/1.3/get.Blas

    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
     20coinblas=blas-20130815.tgz
     21
    2022echo " "
    2123echo "Running script for downloading the source code for BLAS"
     
    2527
    2628echo "Downloading the source code from projects.coin-or.org..."
    27 if $wgetcmd https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/src/blas-20130815.tgz ;
     29if $wgetcmd https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/src/$coinblas ;
    2830then
    29   mv blas-20130815.tgz blas.tgz
     31  mv $coinblas blas.tgz
    3032else
    3133  echo
     
    3537    echo
    3638    echo "Failed, try downloading the source code from netlib.sandia.gov..."
    37     $wgetcmd http://netlib.sandia.gov/blas/blas.tgz
     39    if ! $wgetcmd http://netlib.sandia.gov/blas/blas.tgz ;
     40    then
     41      if test "$wgetcmd" = wget ;
     42      then
     43        echo -n "Failed, try downloading from https://projects.coin-or.org without certificate check? (y/n) "
     44        if test "$1" = "-y" ;
     45        then
     46          doit=y
     47          echo y
     48        else
     49          read -n 1 doit
     50          echo
     51        fi
     52        if test "$doit" = y ;
     53        then
     54          $wgetcmd --no-check-certificate https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/src/$coinblas
     55          mv $coinblas blas.tgz
     56        else
     57          exit 1;
     58        fi
     59      else
     60        exit 1;
     61      fi
     62    fi
    3863  fi
    3964fi
  • ThirdParty/Blas/trunk/get.Blas

    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
     20coinblas=blas-20130815.tgz
     21
    2022echo " "
    2123echo "Running script for downloading the source code for BLAS"
     
    2527
    2628echo "Downloading the source code from projects.coin-or.org..."
    27 if $wgetcmd https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/src/blas-20130815.tgz ;
     29if $wgetcmd https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/src/$coinblas ;
    2830then
    29   mv blas-20130815.tgz blas.tgz
     31  mv $coinblas blas.tgz
    3032else
    3133  echo
     
    3537    echo
    3638    echo "Failed, try downloading the source code from netlib.sandia.gov..."
    37     $wgetcmd http://netlib.sandia.gov/blas/blas.tgz
     39    if ! $wgetcmd http://netlib.sandia.gov/blas/blas.tgz ;
     40    then
     41      if test "$wgetcmd" = wget ;
     42      then
     43        echo -n "Failed, try downloading from https://projects.coin-or.org without certificate check? (y/n) "
     44        if test "$1" = "-y" ;
     45        then
     46          doit=y
     47          echo y
     48        else
     49          read -n 1 doit
     50          echo
     51        fi
     52        if test "$doit" = y ;
     53        then
     54          $wgetcmd --no-check-certificate https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/src/$coinblas
     55          mv $coinblas blas.tgz
     56        else
     57          exit 1;
     58        fi
     59      else
     60        exit 1;
     61      fi
     62    fi
    3863  fi
    3964fi
  • ThirdParty/Lapack/stable/1.4/get.Lapack

    r2860 r2868  
    55lapack_ver=3.4.2
    66
    7 wgetcmd="wget --no-check-certificate"
     7wgetcmd="wget"
    88wgetcount=`which wget 2>/dev/null | wc -l`
    99if test ! $wgetcount = 1; then
     
    3535    echo
    3636    echo "Failed, try downloading the source code from netlib.sandia.gov..."
    37     $wgetcmd http://netlib.sandia.gov/lapack/lapack-${lapack_ver}.tgz
     37    if ! $wgetcmd http://netlib.sandia.gov/lapack/lapack-${lapack_ver}.tgz
     38    then
     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          $wgetcmd --no-check-certificate https://projects.coin-or.org/svn/BuildTools/ThirdParty/Lapack/src/lapack-${lapack_ver}.tgz
     53        else
     54          exit 1;
     55        fi
     56      else
     57        exit 1;
     58      fi
     59    fi
    3860  fi
    3961fi
  • ThirdParty/Lapack/trunk/get.Lapack

    r2859 r2868  
    55lapack_ver=3.4.2
    66
    7 wgetcmd="wget --no-check-certificate"
     7wgetcmd="wget"
    88wgetcount=`which wget 2>/dev/null | wc -l`
    99if test ! $wgetcount = 1; then
     
    3535    echo
    3636    echo "Failed, try downloading the source code from netlib.sandia.gov..."
    37     $wgetcmd http://netlib.sandia.gov/lapack/lapack-${lapack_ver}.tgz
     37    if ! $wgetcmd http://netlib.sandia.gov/lapack/lapack-${lapack_ver}.tgz
     38    then
     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          $wgetcmd --no-check-certificate https://projects.coin-or.org/svn/BuildTools/ThirdParty/Lapack/src/lapack-${lapack_ver}.tgz
     53        else
     54          exit 1;
     55        fi
     56      else
     57        exit 1;
     58      fi
     59    fi
    3860  fi
    3961fi
Note: See TracChangeset for help on using the changeset viewer.