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

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

make sure get.ASL script exits if there is a failure

  • Property svn:executable set to *
File size: 591 bytes
Line 
1#!/bin/sh
2
3set -e
4
5wgetcount=`which wget 2>/dev/null | wc -w`
6if test ! $wgetcount = 1; then
7  echo "Utility wget not found in your PATH."
8  exit -1
9fi
10
11echo " "
12echo "Running script for downloading the source code for the ASL"
13echo " "
14
15rm -f solvers.tar
16echo "Downloading the source code from www.netlib.org..."
17wget ftp://www.netlib.org/ampl/solvers.tar
18
19echo "Unpacking the source code..."
20tar xf solvers.tar
21
22echo "Uncompressing the source files..."
23gunzip -fr solvers
24
25echo "Deleting the tar file..."
26rm solvers.tar
27
28echo " "
29echo "Done downloading the source code for ASL."
30echo " "
31
Note: See TracBrowser for help on using the repository browser.