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

Last change on this file since 3196 was 3106, checked in by tkr, 7 years ago

Merging r3095 from trunk

  • Property svn:executable set to *
File size: 1.2 KB
RevLine 
[45]1#!/bin/sh
2
[386]3set -e
4
[2868]5wgetcmd="wget"
[1546]6wgetcount=`which wget 2>/dev/null | wc -l`
[45]7if test ! $wgetcount = 1; then
8  echo "Utility wget not found in your PATH."
[520]9  if test `uname` = Darwin; then
[2845]10    wgetcmd="curl -L -k -O"
[520]11    echo "Using ftp command instead."
[2562]12  elif test `uname` = FreeBSD; then
13    wgetcmd=fetch
14    echo "Using fetch command instead."
[520]15  else
16    exit -1
17  fi
[45]18fi
19
[3061]20coinasl=solvers-20130815.tgz
[2868]21
[45]22echo " "
23echo "Running script for downloading the source code for the ASL"
24echo " "
25
[3061]26rm -f solvers.tgz
[2845]27
28echo "Downloading the source code from projects.coin-or.org..."
[3061]29if $wgetcmd http://www.coin-or.org/BuildTools/ASL/$coinasl ;
[2826]30then
[3061]31  mv $coinasl solvers.tgz
[2845]32else
[2826]33  echo
[3061]34  echo "Failed, try downloading the source code from www.ampl.com..."
35  $wgetcmd http://www.ampl.com/netlib/ampl/solvers.tgz
[2826]36fi
[45]37
[588]38rm -rf solvers
39
[45]40echo "Unpacking the source code..."
[3061]41gunzip -f solvers.tgz
[45]42tar xf solvers.tar
43
[3106]44#echo "Uncompressing the source files..."
45#gunzip -fr solvers
[45]46
[1084]47echo "Adding No_dtoa to CFLAGS..."
48cd solvers
49mv makefile.u makefile.u.orig
50sed -e 's/CFLAGS = /CFLAGS = -DNo_dtoa /g' makefile.u.orig > makefile.u
51cd ..
52
[45]53echo "Deleting the tar file..."
54rm solvers.tar
55
56echo " "
57echo "Done downloading the source code for ASL."
58echo " "
59
Note: See TracBrowser for help on using the repository browser.