Changeset 2868 for ThirdParty/Blas


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

disable certificate check only upon approval

Location:
ThirdParty/Blas
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.