#!/bin/sh
#
# $1 - the module file name with suffix (without any directory path)
# $2 - the module file name with suffix with directory path pointing to
#      the directory containing the include files
# mv $1 $2
#
SUFFIX=.d
DIR=`dirname $2`
PC=$DIR/linsol.pc
NAME=`basename $1 $SUFFIX`
#
if [ ! -f $PC ]
then
ifccem << EOF
cr $PC
EOF
fi
#
cp $1 $2
ifccem << EOF
cp work.pc $PC $NAME
rm work.pc
EOF
