source: ThirdParty/Metis/trunk/get.Metis @ 1546

Last change on this file since 1546 was 1546, checked in by stefan, 10 years ago

use wc -l instead of -w to accomodate people which use a spaces in paths

  • Property svn:executable set to *
File size: 823 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  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 "Deleting the tar file..."
34rm metis-4.0.tar
35
36echo "Apply patch file..."
37patch -p0 < metis.patch
38
39echo " "
40echo "Done downloading the source code for METIS."
41echo " "
42
Note: See TracBrowser for help on using the repository browser.