source: ThirdParty/Blas/trunk/get.Blas @ 2859

Last change on this file since 2859 was 2859, checked in by stefan, 7 years ago

use wget with --no-check-certificate option when downloading from coin-or https, hopefully avoids issues with wget < 1.14

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1#!/bin/sh
2
3set -e
4
5wgetcmd="wget --no-check-certificate"
6wgetcount=`which wget 2>/dev/null | wc -l`
7if test ! $wgetcount = 1; then
8  echo "Utility wget not found in your PATH."
9  if test `uname` = Darwin; then
10    wgetcmd="curl -L -k -O"
11    echo "Using ftp command instead."
12  elif test `uname` = FreeBSD; then
13    wgetcmd=fetch
14    echo "Using fetch command instead."
15  else
16    exit -1
17  fi
18fi
19
20echo " "
21echo "Running script for downloading the source code for BLAS"
22echo " "
23
24rm -f blas.tgz
25
26echo "Downloading the source code from projects.coin-or.org..."
27if $wgetcmd https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/src/blas-20130815.tgz ;
28then
29  mv blas-20130815.tgz blas.tgz
30else
31  echo
32  echo "Failed, try downloading the source code from www.netlib.org..."
33  if ! $wgetcmd http://www.netlib.org/blas/blas.tgz ;
34  then
35    echo
36    echo "Failed, try downloading the source code from netlib.sandia.gov..."
37    $wgetcmd http://netlib.sandia.gov/blas/blas.tgz
38  fi
39fi
40
41echo "Uncompressing the tarball..."
42gunzip -f blas.tgz
43
44echo "Unpacking the source code..."
45tar xf blas.tar
46
47echo "Deleting the tar file..."
48rm blas.tar
49
50echo "Moving the source files from BLAS subdirectory"
51mv BLAS/*.f .
52rm -rf BLAS
53
54echo " "
55echo "Done downloading the source code for BLAS."
56echo " "
57
Note: See TracBrowser for help on using the repository browser.