	#!/bin/sh
	#
	# Write a vplot distribution tar file.
	#
	# Usage:
	# makedist outfile
	#
	# This will write a tar file to disk.
	#
	# Author - Chuck Karish
	#

if [ $# -ne 1 ]
then
	echo "Usage: makedist tar_file_name"
	exit 1
fi

tar cvf $1 *.c MakeMake* machdep machdepsep hosttype distribute_to makedist \
	README

for direct in *lib include utilities machines Tests
do
	tar rvf $1 \
		` find $direct -type f -print | \
		egrep -v "(\\.a\$|\\.o\$|\\.bin|\\.include)" `
done
