source: ThirdParty/ASL/trunk/get.ASL @ 520

Last change on this file since 520 was 520, checked in by andreasw, 13 years ago

merging changes from Bug Squashing Party Aug 2007 to regular trunk

  • Property svn:executable set to *
File size: 709 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 ASL"
19echo " "
20
21rm -f solvers.tar
22echo "Downloading the source code from www.netlib.org..."
23$wgetcmd ftp://www.netlib.org/ampl/solvers.tar
24
25echo "Unpacking the source code..."
26tar xf solvers.tar
27
28echo "Uncompressing the source files..."
29gunzip -fr solvers
30
31echo "Deleting the tar file..."
32rm solvers.tar
33
34echo " "
35echo "Done downloading the source code for ASL."
36echo " "
37
Note: See TracBrowser for help on using the repository browser.