#!/bin/csh -f

#   testprep
# prepare an HP workstation to test Layered Athena
# i.e. move the current Athena stuff to the side, or
#   testprep -undo
# put it all back

set files=(/srvd /usr/vice /usr/athena /etc/athena /bin/athena)
set undo=0

if ($#argv == 1) then
	if ($argv[1] == "-undo") then
		set undo=1
	endif
endif

if ($undo) then
	foreach pathname ($files)
		rm -rf $pathname
		mv ${pathname}.preTest $pathname
	end
else
	foreach pathname ($files)
		mv $pathname ${pathname}.preTest
	end
endif
