Last change
on this file since 2561 was
2561,
checked in by stefan, 9 years ago
|
use fetch instead of wget on FreeBSD (patch contributed by Pedro F. Giffuni)
|
File size:
1.1 KB
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | # Set the following to the latest MUMPS version. |
---|
4 | # THERE MUST BE NO SPACE BEFORE AND AFTER THE EQUAL (=) OPERATOR. |
---|
5 | mumps_ver=4.10.0 |
---|
6 | |
---|
7 | set -e |
---|
8 | |
---|
9 | wgetcmd=wget |
---|
10 | wgetcount=`which wget 2>/dev/null | wc -l` |
---|
11 | if test ! $wgetcount = 1; then |
---|
12 | echo "Utility wget not found in your PATH." |
---|
13 | if test `uname` = Darwin; then |
---|
14 | wgetcmd=ftp |
---|
15 | echo "Using ftp command instead." |
---|
16 | elif test `uname` = FreeBSD; then |
---|
17 | wgetcmd=fetch |
---|
18 | echo "Using fetch command instead." |
---|
19 | else |
---|
20 | exit -1 |
---|
21 | fi |
---|
22 | fi |
---|
23 | |
---|
24 | echo " " |
---|
25 | echo "Running script for downloading the source code for MUMPS" |
---|
26 | echo " " |
---|
27 | |
---|
28 | rm -f MUMPS*.tgz |
---|
29 | |
---|
30 | echo "Downloading the source code from ..." |
---|
31 | $wgetcmd http://mumps.enseeiht.fr/MUMPS_${mumps_ver}.tar.gz |
---|
32 | |
---|
33 | echo "Uncompressing the tarball..." |
---|
34 | gunzip -f MUMPS_${mumps_ver}.tar.gz |
---|
35 | |
---|
36 | echo "Unpacking the source code..." |
---|
37 | tar xf MUMPS_${mumps_ver}.tar |
---|
38 | |
---|
39 | echo "Deleting the tar file..." |
---|
40 | rm MUMPS_${mumps_ver}.tar |
---|
41 | |
---|
42 | rm -rf MUMPS |
---|
43 | mv MUMPS_${mumps_ver} MUMPS |
---|
44 | |
---|
45 | echo " " |
---|
46 | echo "Done downloading the source code for MUMPS." |
---|
47 | echo " " |
---|
48 | |
---|
49 | echo " " |
---|
50 | echo "Verify that there are no error message in the output above." |
---|
Note: See
TracBrowser
for help on using the repository browser.