checkout-qt.sh 554 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
git fetch --depth 1 origin "$qt5_rev"
git checkout FETCH_HEAD
git submodule update --init -- qtbase qtxmlpatterns qtdeclarative qtwayland

11 12 13 14 15 16
if [[ -v QT_DOCKERTEST_QTBASE_REV ]] ; then
    cd "$srcdir/qtbase"
    git fetch --depth 1 origin "$QT_DOCKERTEST_QTBASE_REV"
    git checkout FETCH_HEAD
fi

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