#!/bin/ksh
#
#                $1         $2             $3        $4
# baserelocate  newdir responsefiledir  pkgname    outputfile
umask 2

SED="/usr/bin/sed"
RM="/usr/bin/rm"
ECHO="/usr/bin/echo"
CP="/usr/bin/cp"

file="$2/$3"
pkg="$3"

if [[ -e $file ]]
then
	$RM -f /tmp/${pkg}
        $CP $file /tmp/${pkg}
        $ECHO "BASEDIR=$1" >>  /tmp/${pkg}
else
	exit 1
fi
exit 0
