Last change
on this file since 2845 was
2844,
checked in by stefan, 8 years ago
|
use curl instead of ftp on mac, since it can download via https
|
-
Property svn:executable set to
*
|
File size:
1.2 KB
|
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="curl -L -k -O" |
---|
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 projects.coin-or.org..." |
---|
27 | if $wgetcmd https://projects.coin-or.org/svn/BuildTools/ThirdParty/Blas/src/blas-20130815.tgz ; |
---|
28 | then |
---|
29 | mv blas-20130815.tgz blas.tgz |
---|
30 | else |
---|
31 | echo |
---|
32 | echo "Failed, try downloading the source code from www.netlib.org..." |
---|
33 | if ! $wgetcmd http://www.netlib.org/blas/blas.tgz ; |
---|
34 | then |
---|
35 | echo |
---|
36 | echo "Failed, try downloading the source code from netlib.sandia.gov..." |
---|
37 | $wgetcmd http://netlib.sandia.gov/blas/blas.tgz |
---|
38 | fi |
---|
39 | fi |
---|
40 | |
---|
41 | echo "Uncompressing the tarball..." |
---|
42 | gunzip -f blas.tgz |
---|
43 | |
---|
44 | echo "Unpacking the source code..." |
---|
45 | tar xf blas.tar |
---|
46 | |
---|
47 | echo "Deleting the tar file..." |
---|
48 | rm blas.tar |
---|
49 | |
---|
50 | echo "Moving the source files from BLAS subdirectory" |
---|
51 | mv BLAS/*.f . |
---|
52 | rm -rf BLAS |
---|
53 | |
---|
54 | echo " " |
---|
55 | echo "Done downloading the source code for BLAS." |
---|
56 | echo " " |
---|
57 | |
---|
Note: See
TracBrowser
for help on using the repository browser.