318 |
# setup for distcc goes *before* ccache, so ccache comes before distcc in path |
# setup for distcc goes *before* ccache, so ccache comes before distcc in path |
319 |
mqueryfeature "distcc" && setup_distcc_environment |
mqueryfeature "distcc" && setup_distcc_environment |
320 |
|
|
321 |
|
# setup icecc |
322 |
|
# setup for icecc goes *before* ccache, so ccache comes before icecc in path |
323 |
|
mqueryfeature "icecc" && setup_icecc_environment |
324 |
|
|
325 |
# setup ccache |
# setup ccache |
326 |
mqueryfeature "ccache" && setup_ccache_environment |
mqueryfeature "ccache" && setup_ccache_environment |
327 |
|
|
650 |
fi |
fi |
651 |
fi |
fi |
652 |
|
|
653 |
|
if mqueryfeature "qalint" |
654 |
|
then |
655 |
|
if mqueryfeature "!pkgbuild" |
656 |
|
then |
657 |
|
echo "!pkgbuild detected; skipping QA lint checks ..." |
658 |
|
else |
659 |
|
if [[ -n ${SPLIT_PACKAGES} ]] |
660 |
|
then |
661 |
|
# save smage environment |
662 |
|
split_save_variables |
663 |
|
for subpackage in ${SPLIT_PACKAGES} |
664 |
|
do |
665 |
|
# honor split_info |
666 |
|
split_info_${subpackage} |
667 |
|
if [[ ${PKGTYPE} = virtual ]] |
668 |
|
then |
669 |
|
# automatically set !pkgbuild here too |
670 |
|
msetfeature "!pkgbuild" |
671 |
|
fi |
672 |
|
|
673 |
|
if mqueryfeature "qalint" |
674 |
|
then |
675 |
|
if mqueryfeature "!pkgbuild" |
676 |
|
then |
677 |
|
echo "!pkgbuild detected; skipping QA lint checks for '${subpackage}' ..." |
678 |
|
else |
679 |
|
echo -e "${COLBLUE}===${COLGREEN} running QA lint checks for '${subpackage}' ...${COLDEFAULT}" |
680 |
|
mqalint ${BINDIR}_${subpackage} |
681 |
|
fi |
682 |
|
fi |
683 |
|
|
684 |
|
# restore smage environment |
685 |
|
split_restore_variables |
686 |
|
done |
687 |
|
# unset saved variables |
688 |
|
split_unset_variables |
689 |
|
else |
690 |
|
echo -e "${COLBLUE}===${COLGREEN} running QA lint checks ...${COLDEFAULT}" |
691 |
|
mqalint ${BINDIR} |
692 |
|
fi |
693 |
|
fi |
694 |
|
fi |
695 |
|
|
696 |
if mqueryfeature "!pkgbuild" |
if mqueryfeature "!pkgbuild" |
697 |
then |
then |
698 |
echo -e "!pkgbuild detected; Package will not be build ..." |
echo -e "!pkgbuild detected; Package will not be build ..." |