#!/bin/csh -f
if (-f Makefile) then
    echo "Rename operation not necessary."
    exit
endif
touch NONSENSE
foreach f ([A-Z]*)
	mv $f `echo $f | tr '[A-Z]' '[a-z]'`
end
rm nonsense
if (-f makefile) mv makefile makefile.vax
if (-f makefile.) mv makefile. makefile.vax
mv makefile.unix Makefile
mv build_square.for build_square.f
mv cleanhis.for cleanhis.f
mv mmfinish.for mmfinish.f
mv mmins.for mmins.f
mv mmstart.for mmstart.f
mv square_nonebusy.for square_nonebusy.f
mv subroutines.for subroutines.vax
mv subroutines.unix subroutines.f
mv mmrun.com mmrun.vax
mv mmsq.com mmsq.vax
mv symbols.com symbols.vax
mv mmrun.csh mmrun
mv mmsq.csh mmsq
mv aliases.csh aliases
chmod +x mmrun mmsq aliases
