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

Last change on this file since 999 was 588, checked in by andreasw, 12 years ago

included changes proposed by Lou Hafer for ASL configuration and compilation with MSVC

  • Property svn:executable set to *
File size: 725 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
25rm -rf solvers
26
27echo "Unpacking the source code..."
28tar xf solvers.tar
29
30echo "Uncompressing the source files..."
31gunzip -fr solvers
32
33echo "Deleting the tar file..."
34rm solvers.tar
35
36echo " "
37echo "Done downloading the source code for ASL."
38echo " "
39
Note: See TracBrowser for help on using the repository browser.