#!/bin/bash
rm -rf qt5
rm -rf qt5build
git clone git://code.qt.io/qt/qt5.git
cd qt5
git checkout dev
perl init-repository -module-subset=all
git submodule foreach "git checkout dev || true"
git submodule foreach "git pull --rebase || true"
cd ..
mkdir qt5build
cd qt5build
../qt5/configure -developer-build -skip qtremoteobjects -skip qtwebsockets -skip qtconnectivity 2>&1 | tee ../configure_`date +%F_%H-%M-%S`.txt
cmake --build . --target html_docs 2>&1 | tee ../output_`date +%F_%H-%M-%S`.txt
