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

Last change on this file since 1959 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: 772 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."
12  else
13    exit -1
14  fi
[49]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..."
[521]24$wgetcmd ftp://www.netlib.org/blas/blas.tgz
[49]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
[288]35echo "Moving the source files from BLAS subdirectory"
36mv BLAS/*.f .
37rm -rf BLAS
38
[49]39echo " "
40echo "Done downloading the source code for BLAS."
41echo " "
42
Note: See TracBrowser for help on using the repository browser.