#! /bin/sh

INC=/boot/local/include
BIN=/boot/local/bin
# I would have preferred /boot/local/lib but could not get it to work
# with the libraries not in /boot/system/lib.
#LIB=/boot/local/lib
LIB=/boot/system/lib

if [ ! -d $INC ]; then
   mkdir $INC
fi

if [ ! -d $BIN ]; then
   mkdir $BIN
fi

if [ ! -d $LIB ]; then
   mkdir $LIB
fi

cp src/f2c $BIN
cp f77     $BIN
cp getopt  $BIN
chmod 755 $BIN/f2c $BIN/f77 $BIN/getopt

cp libf2c.a     $LIB
cp libf2c.so    $LIB
cp libI77/f2c.h $INC
cp f2cmain.o    $INC

exit 0
