3 # Download the superproject and all submodules for LXQT
9 LXQT
="https://github.com/lxqt/lxqt.git"
10 SRCDIR
=${SRCDIR:-$CWD/src}
11 ERROR_LOG
=${CWD}/build_error.log
12 GIT
=${GIT:-/usr/bin/git}
14 if [ ! -f $ERROR_LOG ];then
18 # clone the superproject in the source directory
19 $GIT clone
$LXQT $SRCDIR ||
echo "error cloning superproject" >> $ERROR_LOG
22 # initialize every submodule
23 $GIT submodule init ||
echo "error initializing submodules" >> $ERROR_LOG
25 # checkout every submodule
26 $GIT submodule update
--remote --rebase ||
echo "error during checkout of submodules" >> $ERROR_LOG
28 # we are done with git, so let's cleanup from all the unwanted git folders and files
29 find .
-name '.git*' -mindepth 1 -exec rm -rfv '{}' \
; ||
echo "error during removal of git files from source" >> $ERROR_LOG