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

Last change on this file since 2640 was 2640, checked in by stefan, 8 years ago

update to Lapack 3.4.2

  • Property svn:executable set to *
File size: 1019 bytes
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=ftp
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.tgz
27echo "Downloading the source code from www.netlib.org..."
28$wgetcmd ftp://www.netlib.org/lapack/lapack-${lapack_ver}.tgz
29
30echo "Uncompressing the tarball..."
31gunzip -f lapack-${lapack_ver}.tgz
32
33echo "Unpacking the source code..."
34tar xf lapack-${lapack_ver}.tar lapack-${lapack_ver}/SRC lapack-${lapack_ver}/INSTALL/dlamch.f lapack-${lapack_ver}/INSTALL/slamch.f
35rm -rf LAPACK
36mv lapack-${lapack_ver} LAPACK
37
38echo "Deleting the tar file..."
39rm lapack-${lapack_ver}.tar
40
41echo " "
42echo "Done downloading the source code for LAPACK."
43echo " "
Note: See TracBrowser for help on using the repository browser.