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