#! /bin/sh
#*******************************************************************************
#
# "@(#) $Id: docCreateCC,v 1.4 2002/07/10 12:05:41 vltsccm Exp $"
#
# who       when      what
# --------  --------  ----------------------------------------------
# rkarban  11/10/98  created
#

#************************************************************************
#   NAME
# 
#   SYNOPSIS
# 
#   DESCRIPTION
#
#   FILES
#
#   ENVIRONMENT
#
#   RETURN VALUES
#
#   CAUTIONS
#
#   EXAMPLES
#
#   SEE ALSO
#
#   BUGS     
#
#------------------------------------------------------------------------
#

# signal trap (if any)

uctemplate=Templates/atcsucCollaborationCaseTemplate.htm
ucinput=Templates/atcsucCollaborationCaseInput.htm

if [ ! -f $uctemplate ]
then 
    echo "" >&2
    echo " ERROR: ccCreate: " >&2
    echo "          >>$uctemplate<< file not found " >&2
    echo "" >&2
    exit 1
fi
if [ ! -f $ucinput ]
then 
    echo "" >&2
    echo " ERROR: ccCreate: " >&2
    echo "          >>$ucinput<< file not found " >&2
    echo "" >&2
    exit 1
fi

fileList=$*

if [ "$fileList" != "" ]
then     

    for FILE in $fileList
    do
      echo $FILE
      ip=${FILE}Ip
      cp -f $ucinput $ip.htm
      sed -e "s/atcsucCollaborationCaseInput/$ip/g" $uctemplate > $FILE.htm
    done
fi

exit 0


#
# ___oOo___
