#!/bin/csh -f
#
# WIDE AREA INFORMATION SERVER SOFTWARE:
#   No guarantees or restrictions.  See the readme file for the full standard
#   disclaimer.
#
# $Log:	fixResources.sh,v $
# Revision 1.2  92/08/05  13:01:30  epeisach
# Multiple subsitutions required.
# 
# Revision 1.1  92/08/05  12:59:54  epeisach
# Initial revision
# 
# Revision 1.4  92/02/24  14:59:29  jonathan
# removed bogus log.
# 
# Revision 1.3  92/02/24  14:58:56  jonathan
# use TOP if defined.
# 
# $Header: /afs/athena.mit.edu/astaff/project/wais/src/wais-8-b5/x/RCS/fixResources.sh,v 1.2 92/08/05 13:01:30 epeisach Exp $
#

if ($?TOP) then
 set DIR=$TOP
else
 set DIR=`./dirname $cwd`
endif
echo "Substituting $DIR for /proj/wais/wais in $1"
set DIR=`echo $DIR | sed -e 's/\//\\\//g'`
sed -e 's/\/proj\/wais\/wais/'${DIR}'/g' < $1.raw > $1
