#!/bin/tcsh
if ($1 == "") then
	echo "Usage mkbup <filename>"
	echo "	mkbup will tar all *.[ch] [Mm]ake* files contained in the"
	echo "	current directory and all the subdirectories into <filename>.tar"
	echo "	and then gzip it."
	exit 0
else
	setenv TFNAME $1.tar
	tar -cf - /dev/null > $TFNAME
	find . -name "*.[ch]" -exec tar -rf $TFNAME {} \;
	find . -name "[Mm]akefile" -exec tar -rf $TFNAME {} \;
	gzip $TFNAME
endif
