#!/bin/csh

# -----------------------------------------------------------------------------
# Collect the Sparky source code and sample in a single file.
#
# The --exclude option of gnutar 1.13.25 on Alpha Tru64 (socrates) does
# not work.  On SGI IRIX 6.5.14f (spinoza) the same version works correctly.
#

set SPARKY		= /usr/local/src/sparky/code

# turn on command echo
set echo		= 1

ln -s $SPARKY sparky
gnutar chf sparky-source.tar \
	--exclude=sparky/bin/RCS \
	--exclude=sparky/c++/RCS \
	--exclude=sparky/lib/RCS \
	--exclude=sparky/mac/RCS \
	--exclude=sparky/manual/RCS \
	--exclude=sparky/manual/manual.tar.gz \
	--exclude=sparky/manual/manual.zip \
	--exclude=sparky/manual/manual-postscript.gz \
	--exclude=sparky/manual/manual-postscript.zip \
	--exclude=sparky/python/RCS \
	--exclude=sparky/python/lib-tk/RCS \
        sparky/bin \
        sparky/c++ \
	sparky/example \
	sparky/ideas \
        sparky/lib \
	sparky/LICENSE \
	sparky/mac \
	sparky/Makefile \
        sparky/manual \
	sparky/python \
	sparky/README \
	sparky/readme-code.html
\rm sparky sparky-source.tar.gz
gzip sparky-source.tar
