#!/bin/csh

# -----------------------------------------------------------------------------
# Collect the Sparky source code and sample in a single file.
#

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/RCS \
	--exclude=sparky/bin/RCS \
	--exclude=sparky/c++/RCS \
	--exclude=sparky/lib/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/Makefile \
        sparky/bin \
        sparky/c++ \
	sparky/python \
        sparky/lib \
	sparky/README \
	sparky/readme-code.html \
	sparky/ideas \
	sparky/license \
	sparky/license-trial \
        sparky/manual \
	sparky/example
\rm sparky sparky-source.tar.gz
gzip sparky-source.tar
