## make a glossary from the m4/C source, <version>.m4
## USAGE:  Glossary <version>
##    e.g.  Glossary 1.1
## Comments with a /* in the leftmost columns of the source are
##  	included. This involves minor care with the source.  

SYS="xxxxxxx"

if [ $DISTRO = "cLIeNUX" ]
then

	echo "cLIeNUX version of Glossary "
	grep "^#" $1 >> /.tm/blah
	ed /.tm/blah <<BLA
	,s/^#   //
	wq
BLA
	cat  /.tm/blah > glossary
	rm /.tm/blah

	echo 
	echo "if Glossary didn't work maybe you omitted the version number argument"

else 

	echo "other"
	echo $1 > /tmp/blah
	grep "^\/\*" $1.m4 >> /tmp/blah
	tp /tmp/blah <<BLA
	,x!\/\*!c!!
	,x!\*\/!c!!
	w
	q
BLA
	get  /tmp/blah > glossary
	rm /tmp/blah

	echo
	echo "if Glossary didn't work maybe you omitted the version number argument"


fi
