#!/bin/sh wgetcount=`which wget 2>/dev/null | wc -w` if test ! $wgetcount = 1; then echo "Utility wget not found in your PATH." exit -1 fi echo " " echo "Running script for downloading the source code for BLAS" echo " " rm -f blas.tgz echo "Downloading the source code from www.netlib.org..." wget ftp://www.netlib.org/blas/blas.tgz echo "Uncompressing the tarball..." gunzip -f blas.tgz echo "Unpacking the source code..." tar xf blas.tar echo "Deleting the tar file..." rm blas.tar echo " " echo "Done downloading the source code for BLAS." echo " "