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

Last change on this file since 453 was 387, checked in by andreasw, 14 years ago

make sure get.ASL script exits if there is a failure

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