source: ThirdParty/Blas/trunk/get.Blas @ 2807

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

Changing from ftp to http, since ftp is not currently working

  • Property svn:executable set to *
File size: 867 bytes
RevLine 
[49]1#!/bin/sh
2
[387]3set -e
4
[521]5wgetcmd=wget
[1546]6wgetcount=`which wget 2>/dev/null | wc -l`
[49]7if test ! $wgetcount = 1; then
8  echo "Utility wget not found in your PATH."
[521]9  if test `uname` = Darwin; then
10    wgetcmd=ftp
11    echo "Using ftp command instead."
[2557]12  elif test `uname` = FreeBSD; then
13    wgetcmd=fetch
14    echo "Using fetch command instead."
[521]15  else
16    exit -1
17  fi
[49]18fi
19
20echo " "
21echo "Running script for downloading the source code for BLAS"
22echo " "
23
24rm -f blas.tgz
25
26echo "Downloading the source code from www.netlib.org..."
[2807]27$wgetcmd http://www.netlib.org/blas/blas.tgz
[49]28
29echo "Uncompressing the tarball..."
30gunzip -f blas.tgz
31
32echo "Unpacking the source code..."
33tar xf blas.tar
34
35echo "Deleting the tar file..."
36rm blas.tar
37
[288]38echo "Moving the source files from BLAS subdirectory"
39mv BLAS/*.f .
40rm -rf BLAS
41
[49]42echo " "
43echo "Done downloading the source code for BLAS."
44echo " "
45
Note: See TracBrowser for help on using the repository browser.