source: ThirdParty/Lapack/trunk/get.Lapack @ 2185

Last change on this file since 2185 was 1546, checked in by stefan, 11 years ago

use wc -l instead of -w to accomodate people which use a spaces in paths

  • Property svn:executable set to *
File size: 887 bytes
RevLine 
[49]1#!/bin/sh
2
[388]3set -e
4
[1520]5lapack_ver=3.2.1
6
[524]7wgetcmd=wget
[1546]8wgetcount=`which wget 2>/dev/null | wc -l`
[49]9if test ! $wgetcount = 1; then
10  echo "Utility wget not found in your PATH."
[524]11  if test `uname` = Darwin; then
12    wgetcmd=ftp
13    echo "Using ftp command instead."
14  else
15    exit -1
16  fi
[49]17fi
18
19echo " "
20echo "Running script for downloading the source code for LAPACK"
21echo " "
22
23rm -f lapack.tgz
24echo "Downloading the source code from www.netlib.org..."
[1520]25$wgetcmd ftp://www.netlib.org/lapack/lapack-${lapack_ver}.tgz
[49]26
27echo "Uncompressing the tarball..."
[1520]28gunzip -f lapack-${lapack_ver}.tgz
[49]29
30echo "Unpacking the source code..."
[1520]31tar xf lapack-${lapack_ver}.tar lapack-${lapack_ver}/SRC lapack-${lapack_ver}/INSTALL/dlamch.f
[141]32rm -rf LAPACK
[1520]33mv lapack-${lapack_ver} LAPACK
[49]34
35echo "Deleting the tar file..."
[1520]36rm lapack-${lapack_ver}.tar
[49]37
38echo " "
39echo "Done downloading the source code for LAPACK."
40echo " "
Note: See TracBrowser for help on using the repository browser.