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

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

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

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