Changeset 494 for ThirdParty/Glpk


Ignore:
Timestamp:
Aug 9, 2007 3:52:01 PM (12 years ago)
Author:
andreasw
Message:

on Darwin, use ftp if wget is not there for download

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/Glpk/branches/BSP/trunk/get.Glpk

    r436 r494  
    44glpk_ver=4.19
    55
     6wgetcmd=wget
    67wgetcount=`which wget 2>/dev/null | wc -w`
    78if test ! $wgetcount = 1; then
    89  echo "Utility wget not found in your PATH."
    9   exit -1
     10  if test `uname` = Darwin; then
     11    wgetcmd=ftp
     12    echo "Using ftp command instead."
     13  else
     14    exit -1
     15  fi
    1016fi
    1117
     
    1723
    1824echo "Downloading the source code from ftp.gnu.org..."
    19 wget ftp://ftp.gnu.org/gnu/glpk/glpk-${glpk_ver}.tar.gz
     25$wgetcmd ftp://ftp.gnu.org/gnu/glpk/glpk-${glpk_ver}.tar.gz
    2026
    2127echo "Uncompressing the tarball..."
Note: See TracChangeset for help on using the changeset viewer.