# spctar
# script to tar spctools for distribution
#
# execute from the spctools directory
#
# by Dennis W. Brown, 4-30-94

unset verbose

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

# files to tar
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 announce.txt)

# get rid of old tar file
if (-d spctools.tar) then
	rm spctools.tar
endif

# make dates all the same
touch *

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

	# textedit backup files
	find $dname -name \*% -exec rm {} \;

	# some other textedit tmp file
	find $dname -name textedit.\* -exec rm {} \;

	# make dates all the same
	touch $dname/*
end;

# make the new tar file
tar cvf spctools.tar $datafiles
tar rvf spctools.tar $mscripts
tar rvf spctools.tar $cscripts
tar rvf spctools.tar $users
tar rvf spctools.tar $d
tar rvf spctools.tar $text
tar rvf spctools.tar dos42mex

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