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

Last change on this file since 1520 was 1520, checked in by stefan, 10 years ago

update to use Lapack 3.2.1

  • Property svn:executable set to *
File size: 887 bytes
Line 
1#!/bin/sh
2
3set -e
4
5lapack_ver=3.2.1
6
7wgetcmd=wget
8wgetcount=`which wget 2>/dev/null | wc -w`
9if test ! $wgetcount = 1; then
10  echo "Utility wget not found in your PATH."
11  if test `uname` = Darwin; then
12    wgetcmd=ftp
13    echo "Using ftp command instead."
14  else
15    exit -1
16  fi
17fi
18
19echo " "
20echo "Running script for downloading the source code for LAPACK"
21echo " "
22
23rm -f lapack.tgz
24echo "Downloading the source code from www.netlib.org..."
25$wgetcmd ftp://www.netlib.org/lapack/lapack-${lapack_ver}.tgz
26
27echo "Uncompressing the tarball..."
28gunzip -f lapack-${lapack_ver}.tgz
29
30echo "Unpacking the source code..."
31tar xf lapack-${lapack_ver}.tar lapack-${lapack_ver}/SRC lapack-${lapack_ver}/INSTALL/dlamch.f
32rm -rf LAPACK
33mv lapack-${lapack_ver} LAPACK
34
35echo "Deleting the tar file..."
36rm lapack-${lapack_ver}.tar
37
38echo " "
39echo "Done downloading the source code for LAPACK."
40echo " "
Note: See TracBrowser for help on using the repository browser.