#!/bin/sh -x
ROOT=/depot/fkleint/qt-56

cd $ROOT/qtbase/qmake
qmake qmake-docs.pro -o Makefile.qmake-docs
make -f Makefile.qmake-docs prepare_docs
cd ..

cd src/corelib
make prepare_docs
cd ../..

export QT_INSTALL_DOCS=$ROOT/qtbase/doc
export QT_VERSION_TAG=560
export QT_VER=5.6
export QT_VERSION=5.6.0 

VG_OPTIONS=--num-callers=50 --tool=memcheck --leak-check=full --smc-check=all
# qdoc -outputdir $ROOT/qtbase/doc/qmake -installdir $ROOT/qtbase/doc $ROOT/qtbase/qmake/doc/qmake.qdocconf -prepare -no-link-errors
valgrind $VG_OPTIONS qdoc -outputdir $ROOT/qtbase/doc/qtcore -installdir $ROOT/qtbase/doc $ROOT/qtbase/src/corelib/doc/qtcore.qdocconf -prepare -no-link-errors 2>core.errlog
