Last change
on this file since 2773 was
2557,
checked in by stefan, 9 years ago
|
use fetch instead of wget on FreeBSD (patch contributed by Pedro F. Giffuni)
|
-
Property svn:executable set to
*
|
File size:
866 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | set -e |
---|
4 | |
---|
5 | wgetcmd=wget |
---|
6 | wgetcount=`which wget 2>/dev/null | wc -l` |
---|
7 | if test ! $wgetcount = 1; then |
---|
8 | echo "Utility wget not found in your PATH." |
---|
9 | if test `uname` = Darwin; then |
---|
10 | wgetcmd=ftp |
---|
11 | echo "Using ftp command instead." |
---|
12 | elif test `uname` = FreeBSD; then |
---|
13 | wgetcmd=fetch |
---|
14 | echo "Using fetch command instead." |
---|
15 | else |
---|
16 | exit -1 |
---|
17 | fi |
---|
18 | fi |
---|
19 | |
---|
20 | echo " " |
---|
21 | echo "Running script for downloading the source code for BLAS" |
---|
22 | echo " " |
---|
23 | |
---|
24 | rm -f blas.tgz |
---|
25 | |
---|
26 | echo "Downloading the source code from www.netlib.org..." |
---|
27 | $wgetcmd ftp://www.netlib.org/blas/blas.tgz |
---|
28 | |
---|
29 | echo "Uncompressing the tarball..." |
---|
30 | gunzip -f blas.tgz |
---|
31 | |
---|
32 | echo "Unpacking the source code..." |
---|
33 | tar xf blas.tar |
---|
34 | |
---|
35 | echo "Deleting the tar file..." |
---|
36 | rm blas.tar |
---|
37 | |
---|
38 | echo "Moving the source files from BLAS subdirectory" |
---|
39 | mv BLAS/*.f . |
---|
40 | rm -rf BLAS |
---|
41 | |
---|
42 | echo " " |
---|
43 | echo "Done downloading the source code for BLAS." |
---|
44 | echo " " |
---|
45 | |
---|
Note: See
TracBrowser
for help on using the repository browser.