#! /bin/sh #**************************************************************************** # # Installation procedure for SCIPORT # #**************************************************************************** test_error=0 compile_error=0 error_flag=0 # # Copy the SCIPORT files off the tar tape # echo " " echo " Read sources from tape..." echo " " tar xv # # Compile the single and double precision FORTRAN source files # echo " " echo " Compiling FORTRAN source files..." echo " with fortran flags " ${FFLAGS} echo " " sunf77 blass.f searchs.f linrecs.f matrixs.f ffts.f filters.f gatscats.f if [ "$?" -ne 0 ] then compile_error=1 error_flag=1 fi sunf77 eispacks.f linpacks.f udate.f if [ "$?" -ne 0 ] then compile_error=1 error_flag=1 fi sunf77 blasd.f searchd.f linrecd.f matrixd.f fftd.f filterd.f gatscatd.f if [ "$?" -ne 0 ] then compile_error=1 error_flag=1 fi sunf77 eispackd.f linpackd.f if [ "$?" -ne 0 ] then compile_error=1 error_flag=1 fi # # Create the single and double precision FORTRAN object libraries # echo " " echo " Creating object libraries..." echo " " if [ "$compile_error" -eq 0 ] then ar rcv sciports.a blass.o searchs.o linrecs.o matrixs.o ffts.o filters.o gatscats.o eispacks.o linpacks.o udate.o ranlib sciports.a # ar rcv sciportd.a blasd.o searchd.o linrecd.o matrixd.o fftd.o filterd.o gatscatd.o eispackd.o linpackd.o udate.o ranlib sciportd.a else echo "LIBRARY FILES NOT CREATED DUE TO COMPILATION ERRORS " fi # # # Compile the test drivers # echo " " echo " Compiling the test drivers..." echo " " sunf77 drblass.f drsrchs.f drlinrs.f drmats.f drffts.f drfilts.f drgats.f if [ "$?" -ne 0 ] then test_error=1 error_flag=1 fi f77 ${FFLAGS} -c drblasd.f drsrchd.f drlinrd.f drmatd.f drfftd.f drfiltd.f drgatd.f if [ "$?" -ne 0 ] then test_error=1 error_flag=1 fi # # Run the test drivers # echo " " echo " Calling the SCITEST procedure to run the test drivers..." echo " " if [ "$test_error" -eq 0 ] then echo " Running scitest Procedure " scitest else echo "TEST PROCEDURE NOT RUN DUE TO TEST DRIVER COMPILATION ERRORS" fi # if [ "$error_flag" -ne 0 ] then echo " " echo " " echo " ERRORS OCCURRED DURING SCIPORT INSTALLATION " else # # install SCIPORT Manual file (MAN) by copying file sciport.1 to # /usr/man/man1 as Superuser # echo " **************************************************************" echo " ** **" echo " ** INSTALLATION OF SCIPORT SOFTWARE COMPLETE **" echo " ** LOG IN AS SUPER USER AND COPY SCIPORT.1 TO /USR/MAN/MAN1 **" echo " ** **" echo " **************************************************************" fi exit .