Last change
on this file since 2834 was
2825,
checked in by stefan, 8 years ago
|
use sandia mirror if main netlib does not work
|
-
Property svn:executable set to
*
|
File size:
1.2 KB
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | set -e |
---|
4 | |
---|
5 | lapack_ver=3.4.2 |
---|
6 | |
---|
7 | wgetcmd=wget |
---|
8 | wgetcount=`which wget 2>/dev/null | wc -l` |
---|
9 | if 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 |
---|
20 | fi |
---|
21 | |
---|
22 | echo " " |
---|
23 | echo "Running script for downloading the source code for LAPACK" |
---|
24 | echo " " |
---|
25 | |
---|
26 | rm -f lapack-${lapack_ver}.tgz |
---|
27 | echo "Downloading the source code from www.netlib.org..." |
---|
28 | if ! $wgetcmd http://www.netlib.org/lapack/lapack-${lapack_ver}.tgz ; |
---|
29 | then |
---|
30 | echo |
---|
31 | echo "Failed, try downloading the source code from netlib.sandia.gov..." |
---|
32 | $wgetcmd http://netlib.sandia.gov/lapack/lapack-${lapack_ver}.tgz |
---|
33 | fi |
---|
34 | |
---|
35 | echo "Uncompressing the tarball..." |
---|
36 | gunzip -f lapack-${lapack_ver}.tgz |
---|
37 | |
---|
38 | echo "Unpacking the source code..." |
---|
39 | tar xf lapack-${lapack_ver}.tar lapack-${lapack_ver}/SRC lapack-${lapack_ver}/INSTALL/dlamch.f lapack-${lapack_ver}/INSTALL/slamch.f |
---|
40 | rm -rf LAPACK |
---|
41 | mv lapack-${lapack_ver} LAPACK |
---|
42 | |
---|
43 | echo "Deleting the tar file..." |
---|
44 | rm lapack-${lapack_ver}.tar |
---|
45 | |
---|
46 | echo " " |
---|
47 | echo "Done downloading the source code for LAPACK." |
---|
48 | echo " " |
---|
Note: See
TracBrowser
for help on using the repository browser.