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

Last change on this file since 3354 was 3055, checked in by stefan, 6 years ago

download asl/blas/lapack from http://www.coin-or.org/BuildTools/
give up on downloading via https-access to svn repo

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1#!/bin/sh
2
3set -e
4
5wgetcmd="wget"
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
20coinblas=blas-20130815.tgz
21
22echo " "
23echo "Running script for downloading the source code for BLAS"
24echo " "
25
26rm -f blas.tgz
27
28echo "Downloading the source code from projects.coin-or.org..."
29if $wgetcmd http://www.coin-or.org/BuildTools/Blas/$coinblas ;
30then
31  mv $coinblas blas.tgz
32else
33  echo
34  echo "Failed, try downloading the source code from www.netlib.org..."
35  if ! $wgetcmd http://www.netlib.org/blas/blas.tgz ;
36  then
37    echo
38    echo "Failed, try downloading the source code from netlib.sandia.gov..."
39    if ! $wgetcmd http://netlib.sandia.gov/blas/blas.tgz ;
40    then
41      exit 1;
42    fi
43  fi
44fi
45
46echo "Uncompressing the tarball..."
47gunzip -f blas.tgz
48
49echo "Unpacking the source code..."
50tar xf blas.tar
51
52echo "Deleting the tar file..."
53rm blas.tar
54
55echo "Moving the source files from BLAS subdirectory"
56mv BLAS/*.f .
57rm -rf BLAS
58
59echo " "
60echo "Done downloading the source code for BLAS."
61echo " "
62
Note: See TracBrowser for help on using the repository browser.