source: ThirdParty/Lapack/stable/1.4/get.Lapack @ 2834

Last change on this file since 2834 was 2828, checked in by stefan, 8 years ago

sync with trunk rev 2827

  • Property svn:executable set to *
File size: 1.2 KB
RevLine 
[49]1#!/bin/sh
2
[388]3set -e
4
[2640]5lapack_ver=3.4.2
[1520]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."
[2559]14  elif test `uname` = FreeBSD; then
15    wgetcmd=fetch
16    echo "Using fetch command instead."
[524]17  else
18    exit -1
19  fi
[49]20fi
21
22echo " "
23echo "Running script for downloading the source code for LAPACK"
24echo " "
25
[2828]26rm -f lapack-${lapack_ver}.tgz
[49]27echo "Downloading the source code from www.netlib.org..."
[2828]28if ! $wgetcmd http://www.netlib.org/lapack/lapack-${lapack_ver}.tgz ;
29then
30  echo
31  echo "Failed, try downloading the source code from netlib.sandia.gov..."
32  $wgetcmd http://netlib.sandia.gov/lapack/lapack-${lapack_ver}.tgz
33fi
[49]34
35echo "Uncompressing the tarball..."
[1520]36gunzip -f lapack-${lapack_ver}.tgz
[49]37
38echo "Unpacking the source code..."
[2576]39tar xf lapack-${lapack_ver}.tar lapack-${lapack_ver}/SRC lapack-${lapack_ver}/INSTALL/dlamch.f lapack-${lapack_ver}/INSTALL/slamch.f
[141]40rm -rf LAPACK
[1520]41mv lapack-${lapack_ver} LAPACK
[49]42
43echo "Deleting the tar file..."
[1520]44rm lapack-${lapack_ver}.tar
[49]45
46echo " "
47echo "Done downloading the source code for LAPACK."
48echo " "
Note: See TracBrowser for help on using the repository browser.