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

Last change on this file since 3354 was 3055, checked in by stefan, 8 years ago

download asl/blas/lapack from http://www.coin-or.org/BuildTools/
give up on downloading via https-access to svn repo

  • Property svn:executable set to *
File size: 1.3 KB
RevLine 
[49]1#!/bin/sh
2
[387]3set -e
4
[2868]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
[2844]10    wgetcmd="curl -L -k -O"
[521]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
[2868]20coinblas=blas-20130815.tgz
21
[49]22echo " "
23echo "Running script for downloading the source code for BLAS"
24echo " "
25
26rm -f blas.tgz
27
[2843]28echo "Downloading the source code from projects.coin-or.org..."
[3055]29if $wgetcmd http://www.coin-or.org/BuildTools/Blas/$coinblas ;
[2824]30then
[2868]31  mv $coinblas blas.tgz
[2843]32else
[2824]33  echo
[2843]34  echo "Failed, try downloading the source code from www.netlib.org..."
35  if ! $wgetcmd http://www.netlib.org/blas/blas.tgz ;
36  then
37    echo
38    echo "Failed, try downloading the source code from netlib.sandia.gov..."
[2868]39    if ! $wgetcmd http://netlib.sandia.gov/blas/blas.tgz ;
40    then
[3055]41      exit 1;
[2868]42    fi
[2843]43  fi
[2824]44fi
[49]45
46echo "Uncompressing the tarball..."
47gunzip -f blas.tgz
48
49echo "Unpacking the source code..."
50tar xf blas.tar
51
52echo "Deleting the tar file..."
53rm blas.tar
54
[288]55echo "Moving the source files from BLAS subdirectory"
56mv BLAS/*.f .
57rm -rf BLAS
58
[49]59echo " "
60echo "Done downloading the source code for BLAS."
61echo " "
62
Note: See TracBrowser for help on using the repository browser.