#NOTE: parts of the header are generated in ../../lib/gis/parser.c
# generic html rules for all commands
ifdef CROSS_COMPILING
htmlgen:
htmlcmd:
htmlcmd1:
htmlscript:
htmlscript1:
htmlinter:
htmletc:
htmletc1:
htmldir:
htmldir1:
htmlmulti:
else
htmlgen:
@if ! grep -i '' $(PGM).tmp.html > /dev/null 2>&1 ; then \
echo > $(PGM).tmp.html ; \
fi
@if test -f $(PGM).html ; then \
cat $(PGM).html >> $(PGM).tmp.html ; \
elif test -f description.html ; then \
cat description.html >> $(PGM).tmp.html ; \
fi
@if ! grep -i '' $(PGM).tmp.html > /dev/null ; then \
{ \
echo '' ; \
echo '' ; \
echo '
' ; \
echo 'GRASS GIS: $(PGM)' ; \
echo '' ; \
echo '' ; \
echo '' ; \
echo '' ; \
echo '
' ; \
echo 'NAME
' ; \
echo '$(PGM)' ; \
} > $(PGM).tmp.html.header ; \
grep -iv '\|' $(PGM).tmp.html >> $(PGM).tmp.html.header ; \
mv -f $(PGM).tmp.html.header $(PGM).tmp.html ; \
fi
# if is found, suppose a complete html is provided.
# otherwise, generate module class reference:
@if ! grep -i '' $(PGM).tmp.html > /dev/null ; then \
echo "
" >> $(PGM).tmp.html ; \
MODCLASS=`echo $(PGM) | cut -d'.' -f1` ; \
if [ "$$MODCLASS" = "d" ] ; then INDEXNAME=`echo display` ; \
elif [ $$MODCLASS = "db" ] ; then INDEXNAME=`echo database` ; \
elif [ $$MODCLASS = "g" ] ; then INDEXNAME=`echo general` ; \
elif [ $$MODCLASS = "i" ] ; then INDEXNAME=`echo imagery` ; \
elif [ $$MODCLASS = "m" ] ; then INDEXNAME=`echo misc` ; \
elif [ $$MODCLASS = "pg" ] ; then INDEXNAME=`echo postGRASS` ; \
elif [ $$MODCLASS = "ps" ] ; then INDEXNAME=`echo postscript` ; \
elif [ $$MODCLASS = "p" ] ; then INDEXNAME=`echo paint` ; \
elif [ $$MODCLASS = "r" ] ; then INDEXNAME=`echo raster` ; \
elif [ $$MODCLASS = "r3" ] ; then INDEXNAME=`echo raster3D` ; \
elif [ $$MODCLASS = "s" ] ; then INDEXNAME=`echo sites` ; \
elif [ $$MODCLASS = "v" ] ; then INDEXNAME=`echo vector` ; \
else \
INDEXNAME=`echo $$MODCLASS` ; \
fi ; \
echo "Main index - $$INDEXNAME index - Full index
" >> $(PGM).tmp.html ; \
echo "