#!/bin/bash
echo ""
echo "
IGL LIB documentation"
echo " "
echo " IGL LIB
"
echo " Headers:
"
echo " "
echo " .h file | Functions |
"
# loop over all headers
for h in include/igl/*.h;
do
b=`basename $h`
if [ -e $h ]
then
printf " $b | "
fi
# portion of file inside namespace
html_nsp=`cat $h | perl -ne 'BEGIN{$p = 0;$\="
";} $o=$p;$p ^= $_=~"[{}]";print if $o && $p;'`
#html_nsp=`echo -e $nsp | sed -e "s/\</g" | sed -e "s/>/\>/g" | tr '\n' '
'`
#html_nsp=`echo -e $nsp | sed -e "s/\</g" | sed -e "s/>/\>/g" | sed -e "s/%/%%/g"`
printf "$html_nsp | "
# Try to find functions and corresponding comments
echo "
"
done
echo " "
echo ""