#!/bin/bash
if [ -d ../qt5 ]; then 
  rm -rd ../qt5
fi
git clone https://code.qt.io/qt/qt5.git ../qt5              # cloning the repo
cd ../qt5
git checkout 5.15.0                                         # checking out the specific release or branch
perl init-repository

export LLVM_INSTALL_DIR=/usr/src/tools/llvm-9.0.1 &&
./configure -developer-build -opensource -nomake examples -nomake tests
