source: ThirdParty/ASL/stable/1.2/get.ASL @ 2562

Last change on this file since 2562 was 2562, checked in by stefan, 7 years ago

sync with trunk r2561

  • Property svn:executable set to *
File size: 975 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 ASL"
22echo " "
23
24rm -f solvers.tar
25echo "Downloading the source code from www.netlib.org..."
26$wgetcmd ftp://www.netlib.org/ampl/solvers.tar
27
28rm -rf solvers
29
30echo "Unpacking the source code..."
31tar xf solvers.tar
32
33echo "Uncompressing the source files..."
34gunzip -fr solvers
35
36echo "Adding No_dtoa to CFLAGS..."
37cd solvers
38mv makefile.u makefile.u.orig
39sed -e 's/CFLAGS = /CFLAGS = -DNo_dtoa /g' makefile.u.orig > makefile.u
40cd ..
41
42echo "Deleting the tar file..."
43rm solvers.tar
44
45echo " "
46echo "Done downloading the source code for ASL."
47echo " "
48
Note: See TracBrowser for help on using the repository browser.