## 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 "
	echo $1 > /.tm/blah
	grep "^__(" $1.m4 >> /.tm/blah
	ed /.tm/blah <<BLA
	,s/__(//
	w
	q
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
	ed /tmp/blah <<BLA
	,s!\/\*!!
	,s!\*\/!!
	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
