Last change
on this file since 1959 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:
772 bytes
|
Rev | Line | |
---|
[49] | 1 | #!/bin/sh |
---|
| 2 | |
---|
[387] | 3 | set -e |
---|
| 4 | |
---|
[521] | 5 | wgetcmd=wget |
---|
[1546] | 6 | wgetcount=`which wget 2>/dev/null | wc -l` |
---|
[49] | 7 | if test ! $wgetcount = 1; then |
---|
| 8 | echo "Utility wget not found in your PATH." |
---|
[521] | 9 | if test `uname` = Darwin; then |
---|
| 10 | wgetcmd=ftp |
---|
| 11 | echo "Using ftp command instead." |
---|
| 12 | else |
---|
| 13 | exit -1 |
---|
| 14 | fi |
---|
[49] | 15 | fi |
---|
| 16 | |
---|
| 17 | echo " " |
---|
| 18 | echo "Running script for downloading the source code for BLAS" |
---|
| 19 | echo " " |
---|
| 20 | |
---|
| 21 | rm -f blas.tgz |
---|
| 22 | |
---|
| 23 | echo "Downloading the source code from www.netlib.org..." |
---|
[521] | 24 | $wgetcmd ftp://www.netlib.org/blas/blas.tgz |
---|
[49] | 25 | |
---|
| 26 | echo "Uncompressing the tarball..." |
---|
| 27 | gunzip -f blas.tgz |
---|
| 28 | |
---|
| 29 | echo "Unpacking the source code..." |
---|
| 30 | tar xf blas.tar |
---|
| 31 | |
---|
| 32 | echo "Deleting the tar file..." |
---|
| 33 | rm blas.tar |
---|
| 34 | |
---|
[288] | 35 | echo "Moving the source files from BLAS subdirectory" |
---|
| 36 | mv BLAS/*.f . |
---|
| 37 | rm -rf BLAS |
---|
| 38 | |
---|
[49] | 39 | echo " " |
---|
| 40 | echo "Done downloading the source code for BLAS." |
---|
| 41 | echo " " |
---|
| 42 | |
---|
Note: See
TracBrowser
for help on using the repository browser.