GEOM = ../../..
include ${GEOM}/makefiles/Makedefs.global
include Makedefs
include ${GEOM}/makefiles/Makerules.src

# The following updates geomview.5 by running geomview to produce
# the documenation strings.  It runs geomview with no panels or
# windows, but even so under IRIX 3.x it requires that the window
# server be running in order to work.  Under IRIX 4.x it works
# in all cases.

# The makefile does not automatically update geomview.5 when lang.c
# changes.  You must explicitly type "make geomview.5" in order for
# this to happen.

geomview.5:	_always
	@echo updating geomview.5
	@/bin/mv geomview.5 geomview.5.old
	@(sed -e '/^.nf/d' -e '/SHORT LIST OF COMMANDS/,$$d' < geomview.5.old ; \
	  echo '.nf' ; \
	  echo './" SHORT LIST OF COMMANDS' ; \
	  echo '' ; \
	  echo '(progn (? *) (quit))' | gl/gv -wins 0 -nopanels -c - ; \
	  echo '' ; \
	  echo './" END OF SHORT LIST OF COMMANDS' ; \
	  sed -e '1,/END OF SHORT LIST OF COMMANDS/d' \
	      -e '/LONG LIST OF COMMANDS/,$$d' < geomview.5.old ; \
	  echo './" LONG LIST OF COMMANDS' ; \
	  echo '' ; \
	  echo '(progn (?? *) (quit))' | gl/gv -wins 0 -nopanels -c - ; \
	  echo '' ; \
	  echo './" END OF LONG LIST OF COMMANDS' ; \
	  sed -e '1,/END OF LONG LIST OF COMMANDS/d' < geomview.5.old ; \
	) > geomview.5





