#!/bin/bash
#
# Script to make the html files for this project
#

if [ ! -d doc/html ]; then
   echo "This is the first time" $0 "is run"
   echo "Creating html directory"
   mkdir -p doc/html
fi

if [ ! -f doc/html/qt.tag ]; then
   echo "qt.tag doesn't exist"
   echo "Creating tag file"
   doxytag -t doc/html/qt.tag $QTDIR/doc/*.html
fi

doxygen Doxyfile

if [ -f doc/html/installdox ]; then
    doc/html/installdox -l qt.tag@$QTDIR/doc doc/html/*.html
fi
