swfote2.1/.slog/
swfote2.1/backup/u/
swfote2.1/bin/cygwin/
swfote2.1/building/
swfote2.1/doc/mudprogs/
swfote2.1/gods/
swfote2.1/html/profiles/
swfote2.1/player/
swfote2.1/player/u/
#! /bin/csh -f


#This Script was created by Greg (Keberus) Mosley
#SW:DoD
#www.t-n-k-games.com
#This little script is the major reason copyover for this mud is now possible

#I would just like to say thanks to whoever came up with the startup script enancement to tell the mud
#not to startup if the port was in use...I used thier Idea for part of this. 

# Setup working directory
cd ../bin
set wd = `pwd`
cd ../src

# Check if already running
   set matches = `ps ux | grep "$wd" | grep -c "swr"`
    if ( $matches >= 1 ) then
           # Already running
            mv ../bin/swr.exe ../bin/swr_old.exe || echo "Don't Worry, this probably means you've changed more stuff but haven't done a Copyover Yet!"
    endif