#!/bin/sh
#
#    Syntax:  ccheck <file> <dir> 
#
#    This script gets called before installation of a command file.
#

pdir=$2

# This next line quietly handles an error condition.

if [ .$pdir = . ]; then
   exit
fi

if [ $pdir = "." ]; then
   pdir=`pwd`
fi

if [ -f $pdir/$1 ]; then
   oldscript=$pdir/$1
   vnum=`awk -f $utils/snhint.awk $oldscript`
   vers=$1$vnum
if [ -f $ITMPDIR/CommandDir ]; then
   shadowprompt $pdir $vers $oldscript $1
fi
fi
