source: ThirdParty/Lapack/trunk/get.Lapack @ 3055

Last change on this file since 3055 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.4 KB
Line 
1#!/bin/sh
2
3set -e
4
5lapack_ver=3.4.2
6
7wgetcmd="wget"
8wgetcount=`which wget 2>/dev/null | wc -l`
9if test ! $wgetcount = 1; then
10  echo "Utility wget not found in your PATH."
11  if test `uname` = Darwin; then
12    wgetcmd="curl -L -k -O"
13    echo "Using ftp command instead."
14  elif test `uname` = FreeBSD; then
15    wgetcmd=fetch
16    echo "Using fetch command instead."
17  else
18    exit -1
19  fi
20fi
21
22echo " "
23echo "Running script for downloading the source code for LAPACK"
24echo " "
25
26rm -f lapack-${lapack_ver}.tgz
27
28echo "Downloading the source code from projects.coin-or.org..."
29if ! $wgetcmd http://www.coin-or.org/BuildTools/Lapack/lapack-${lapack_ver}.tgz ;
30then
31  echo
32  echo "Failed, try downloading the source code from www.netlib.org..."
33  if ! $wgetcmd http://www.netlib.org/lapack/lapack-${lapack_ver}.tgz ;
34  then
35    echo
36    echo "Failed, try downloading the source code from netlib.sandia.gov..."
37    if ! $wgetcmd http://netlib.sandia.gov/lapack/lapack-${lapack_ver}.tgz
38    then
39      exit 1;
40    fi
41  fi
42fi
43
44echo "Uncompressing the tarball..."
45gunzip -f lapack-${lapack_ver}.tgz
46
47echo "Unpacking the source code..."
48tar xf lapack-${lapack_ver}.tar lapack-${lapack_ver}/SRC lapack-${lapack_ver}/INSTALL/dlamch.f lapack-${lapack_ver}/INSTALL/slamch.f
49rm -rf LAPACK
50mv lapack-${lapack_ver} LAPACK
51
52echo "Deleting the tar file..."
53rm lapack-${lapack_ver}.tar
54
55echo " "
56echo "Done downloading the source code for LAPACK."
57echo " "
Note: See TracBrowser for help on using the repository browser.