#!/bin/sh # Get the log file name of make_lapack CERN_ROOT=$CERN/$CERN_LEVEL cd $CERN_ROOT/build touch log/lapack.`date +%m%d` cd $CERN_ROOT/build/log logfile=`ls | grep lapack` # Install the blas and lapack in $CERN/LAPACK # (On x86_64 platforms this will create x86_64 binaries) cd $CERN gtar -zxvf $CERN/lapack.tar.gz >> $CERN_ROOT/build/log/$logfile 2>&1 cd LAPACK mv Makefile Makefile.orig ed -s Makefile.orig > /dev/null <&1 | grep version | cut -d' ' -f3 | cut -c1` if [ "${GCCVERSION}" = "3" ]; then mv make.inc make.inc.orig ed -s make.inc.orig > /dev/null < /dev/null <> $CERN_ROOT/build/log/$logfile 2>&1 cd $CERN