source: ThirdParty/Metis/stable/1.0/get.Metis @ 2131

Last change on this file since 2131 was 2131, checked in by stefan, 9 years ago

merge chgset 2128 from trunk: adapt to new metis release

  • Property svn:executable set to *
File size: 852 bytes
Line 
1#!/bin/sh
2
3set -e
4
5wgetcmd=wget
6wgetcount=`which wget 2>/dev/null | wc -w`
7if 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  else
13    exit -1
14  fi
15fi
16
17echo " "
18echo "Running script for downloading the source code for the METIS"
19echo " "
20
21rm -f metis-4.0.tar.gz
22echo "Downloading the source code from glaros.dtc.umn.edu..."
23$wgetcmd http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-4.0.tar.gz
24
25rm -rf metis-4.0
26
27echo "Uncompressing the tarball..."
28gunzip metis-4.0.tar.gz
29
30echo "Unpacking the source code..."
31tar xf metis-4.0.tar
32
33echo "Renaming directory to match source code name..."
34mv metis-4.0.? metis-4.0
35
36echo "Deleting the tar file..."
37rm metis-4.0.tar
38
39echo " "
40echo "Done downloading the source code for METIS."
41echo " "
42
Note: See TracBrowser for help on using the repository browser.