#!/bin/sh
# 
# Similar to the standard install command,
# but use cp instead. This is to get rid of 
# some difficulties on AIX 4.3.*

[ $# -ne 2 ] && exit 1

d=$1
f=$2

if [ ! -f $f ];
then 
  echo "$0: File $f does not exist."
  exit 1
fi 

[ ! -d $d ] && mkdir -p $d
[ ! -d $d ] && exit 1

to=$d/`basename $f`;

if cp $f $to;
then
  chmod go-w $to
  echo "File $f is installed as $to"
  exit 0
fi

exit 1

