Rev | Line | |
---|
[247] | 1 | #!/bin/sh |
---|
| 2 | |
---|
[360] | 3 | # Set the following to the latest MUMPS version. |
---|
| 4 | # THERE MUST BE NO SPACE BEFORE AND AFTER THE EQUAL (=) OPERATOR. |
---|
[1599] | 5 | mumps_ver=4.9.2 |
---|
[323] | 6 | |
---|
[389] | 7 | set -e |
---|
[360] | 8 | |
---|
[525] | 9 | wgetcmd=wget |
---|
[1457] | 10 | whichwget=`which wget 2>/dev/null` |
---|
| 11 | if test -z "$whichwget" ; then |
---|
[247] | 12 | echo "Utility wget not found in your PATH." |
---|
[525] | 13 | if test `uname` = Darwin; then |
---|
| 14 | wgetcmd=ftp |
---|
| 15 | echo "Using ftp command instead." |
---|
| 16 | else |
---|
| 17 | exit -1 |
---|
| 18 | fi |
---|
[247] | 19 | fi |
---|
| 20 | |
---|
| 21 | echo " " |
---|
| 22 | echo "Running script for downloading the source code for MUMPS" |
---|
| 23 | echo " " |
---|
| 24 | |
---|
| 25 | rm -f MUMPS*.tgz |
---|
| 26 | |
---|
| 27 | echo "Downloading the source code from ..." |
---|
[525] | 28 | $wgetcmd http://mumps.enseeiht.fr/MUMPS_${mumps_ver}.tar.gz |
---|
[247] | 29 | |
---|
| 30 | echo "Uncompressing the tarball..." |
---|
| 31 | gunzip -f MUMPS_${mumps_ver}.tar.gz |
---|
| 32 | |
---|
| 33 | echo "Unpacking the source code..." |
---|
| 34 | tar xf MUMPS_${mumps_ver}.tar |
---|
| 35 | |
---|
| 36 | echo "Deleting the tar file..." |
---|
| 37 | rm MUMPS_${mumps_ver}.tar |
---|
| 38 | |
---|
[957] | 39 | rm -rf MUMPS |
---|
[279] | 40 | mv MUMPS_${mumps_ver} MUMPS |
---|
| 41 | |
---|
[247] | 42 | echo " " |
---|
| 43 | echo "Done downloading the source code for MUMPS." |
---|
| 44 | echo " " |
---|
| 45 | |
---|
[323] | 46 | echo " " |
---|
[1500] | 47 | echo "Applying patch." |
---|
| 48 | echo " " |
---|
| 49 | |
---|
| 50 | patch -p0 < mumps.patch |
---|
| 51 | |
---|
| 52 | echo " " |
---|
[323] | 53 | echo "Verify that there are no error message in the output above." |
---|
Note: See
TracBrowser
for help on using the repository browser.