#!/bin/csh

set base=$PWD

set basex=`echo $base | sed "s/\//\\\//g"`

foreach i (mace mace-loop)
    if (-e $i) then
	cp $i temp$$
    else
	cp $i.orig temp$$
    endif
    sed -e "/set ANLDP=/s/=.*/=$basex\/anldp/" temp$$ >! $i
    /bin/rm -f temp$$
    chmod +x $i
end

echo 
echo "mace and mace-loop have been set to use $base/anldp."
echo ""

