# spcsetup
# script to setup spctools for netwide use
#
# execute from the spctools directory
#
# by Dennis W. Brown, 3-16-94

unset verbose

# directories to setup
set d = (spccomms spcgui spcline spcprog spcspch spcsspi spcutil)

# get rid of junk files laying around
foreach dname ( $d )

	# change it's permission
	chmod 755 $dname

	# change to directory
	cd $dname

	# read/write by me and faculty, read by students
	chmod 644 *.m *.c

	# executable by all
	chmod 755 *.mex4

	# readable by all
	chmod 744 *.mex

	# back a directory
	cd ..

end;

# files in spctools dir to setup
set datafiles = (seatsit.voc t0x.mat uuu.mat datax.mat)
set mscripts = (spcolors.m spcbandw.m spcpath.m spcdata.m spc2flop.m \
	spcolor.m Contents.m Readme.m)
set cscripts = (spc2sun spcmex spctar spcsetup )
set users = (lower spc2flop)
set text = (install.txt descript.txt bugs.txt support.txt)

chmod 644 $datafiles $mscripts
chmod 755 $users
chmod 755 $text
chmod 700 $cscripts

# let anybody read the tar file
chmod 644 spctools.tar

unset d
unset datafiles
unset mscripts
unset cscripts
unset users
unset text
