#! /bin/sh
MAIN_DIR=source_html
C2HTML=`which c2html`
if [ x$C2HTML = x ]
then
echo "c2html not found. Please install that first!"
exit 1
fi
rm -rf $MAIN_DIR
mkdir -p $MAIN_DIR
echo "
BotCommander sources in HTML
BotCommander sources in HTML
" >> $MAIN_DIR/index.html
for FILE in `find -name \*.[ch]`
do
DIR=`dirname $FILE`
mkdir -p $MAIN_DIR/$DIR
cat $FILE | c2html > $MAIN_DIR/$FILE.html
echo " $FILE
" >> $MAIN_DIR/index.html
done
echo "
" >> $MAIN_DIR/index.html
exit 0