--- trunk/mage/usr/lib/mage/smage2.sh 2013/02/01 10:19:20 2043 +++ trunk/mage/usr/lib/mage/smage2.sh 2013/08/15 08:56:57 2172 @@ -318,6 +318,10 @@ # setup for distcc goes *before* ccache, so ccache comes before distcc in path mqueryfeature "distcc" && setup_distcc_environment +# setup icecc +# setup for icecc goes *before* ccache, so ccache comes before icecc in path +mqueryfeature "icecc" && setup_icecc_environment + # setup ccache mqueryfeature "ccache" && setup_ccache_environment @@ -646,6 +650,49 @@ fi fi +if mqueryfeature "qalint" +then + if mqueryfeature "!pkgbuild" + then + echo "!pkgbuild detected; skipping QA lint checks ..." + else + if [[ -n ${SPLIT_PACKAGES} ]] + then + # save smage environment + split_save_variables + for subpackage in ${SPLIT_PACKAGES} + do + # honor split_info + split_info_${subpackage} + if [[ ${PKGTYPE} = virtual ]] + then + # automatically set !pkgbuild here too + msetfeature "!pkgbuild" + fi + + if mqueryfeature "qalint" + then + if mqueryfeature "!pkgbuild" + then + echo "!pkgbuild detected; skipping QA lint checks for '${subpackage}' ..." + else + echo -e "${COLBLUE}===${COLGREEN} running QA lint checks for '${subpackage}' ...${COLDEFAULT}" + mqalint ${BINDIR}_${subpackage} + fi + fi + + # restore smage environment + split_restore_variables + done + # unset saved variables + split_unset_variables + else + echo -e "${COLBLUE}===${COLGREEN} running QA lint checks ...${COLDEFAULT}" + mqalint ${BINDIR} + fi + fi +fi + if mqueryfeature "!pkgbuild" then echo -e "!pkgbuild detected; Package will not be build ..."