source: ThirdParty/Metis/stable/1.2/get.Metis @ 2934

Last change on this file since 2934 was 2566, checked in by stefan, 8 years ago

sync with trunk r2565

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