3 # Main script, build all packages in the tree.
8 ERROR_LOG
=${CWD}/build_error.log
9 VERSIONING
=${CWD}/versioning
11 if [ ! -f $VERSIONING ];then
12 echo "NO $VERSIONING FOUND! ABORTING NOW." >> $ERROR_LOG
13 echo -e "file: $VERSIONING NOT found!! Aborting"
14 echo -e "run ${CWD}/GRAB_VERSION.SH to generate the file again."
17 # We source the versioning file here and use it later
21 if [ ! -f $ERROR_LOG ];then
25 SLACKBUILD
="$CWD/LXQt.SlackBuild"
27 BUILD_DIR
=${BUILD_DIR:-$TMP/lxqt-build}
29 check_already_built
() {
32 if [[ -z $
(/bin
/ls -A ${CWD}/packages
) ]];then
35 elif [[ ! $
(find ${CWD}/packages
/${PKG} -name $PKG* -print > /dev
/null
2>&1) ]]; then
36 # packages is not empty but we can't find $1
45 LIST
=$
(cat ${CWD}/build_order
)
47 TOTAL
=$
(wc -l ${CWD}/build_order |cut
-d " " -f1)
50 if [[ $p == 'libfm-extra' ]]; then
51 # libfm-extra doesn't have a source directory but uses libfm as well
52 PKGS
=$
(find ${CWD}/src
-mindepth 1 -maxdepth 1 -type d
-name 'libfm' -print)
54 PKGS
=$
(find ${CWD}/src
-mindepth 1 -maxdepth 1 -type d
-name $p -print)
56 ALREADY_BUILT
=$
(check_already_built
$p)
57 VNUM
=${versions[${p}]}
58 if [[ -e $PKGS && $ALREADY_BUILT != "found" ]];then
59 echo -e "########################################################"
60 echo -e "#\t[$COUNTER / $TOTAL] building $p"
61 echo -e "########################################################"
63 ${CWD}/lxqt.SlackBuild
$p
65 echo -e "########################################################"
66 echo -e "# done building $p!"
67 echo -e "########################################################"
68 mkdir
-p ${CWD}/packages
/${p}
69 mv ${BUILD_DIR}/${p}*.txz ${CWD}/packages/${p}/
70 upgradepkg
--reinstall --install-new ${CWD}/packages/${p}/${p}*.txz
72 echo $PKGS not found
>> ${ERROR_LOG}