checkout-qt.sh 395 Bytes
Newer Older
1 2 3 4 5
#!/bin/bash
set -ex
srcdir=$(pwd)/qt5
qt5_rev=${QT_DOCKERTEST_QT5_REV:-5.11}

Johan Helsing's avatar
Johan Helsing committed
6
cd $srcdir
7 8 9 10 11 12 13 14 15
git fetch --depth 1 origin "$qt5_rev"
git checkout FETCH_HEAD
git submodule update --init -- qtbase qtxmlpatterns qtdeclarative qtwayland

if [[ -v QT_DOCKERTEST_QTWAYLAND_REV ]] ; then
    cd "$srcdir/qtwayland"
    git fetch --depth 1 origin "$QT_DOCKERTEST_QTWAYLAND_REV"
    git checkout FETCH_HEAD
fi