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

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

use sandia mirror if main netlib does not work

  • Property svn:executable set to *
File size: 1014 bytes
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=ftp
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 www.netlib.org..."
27if ! $wgetcmd http://www.netlib.org/blas/blas.tgz ;
28then
29  echo
30  echo "Failed, try downloading the source code from netlib.sandia.gov..."
31  $wgetcmd http://netlib.sandia.gov/blas/blas.tgz
32fi
33
34echo "Uncompressing the tarball..."
35gunzip -f blas.tgz
36
37echo "Unpacking the source code..."
38tar xf blas.tar
39
40echo "Deleting the tar file..."
41rm blas.tar
42
43echo "Moving the source files from BLAS subdirectory"
44mv BLAS/*.f .
45rm -rf BLAS
46
47echo " "
48echo "Done downloading the source code for BLAS."
49echo " "
50
Note: See TracBrowser for help on using the repository browser.