Magellan Linux

Diff of /branches/mage-next/src/smage2.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2043 by niro, Fri Feb 1 10:19:20 2013 UTC revision 2209 by niro, Mon Oct 14 11:00:28 2013 UTC
# Line 18  source ${MAGERC} Line 18  source ${MAGERC}
18  source ${MLIBDIR}/mage4.functions.sh  source ${MLIBDIR}/mage4.functions.sh
19  source ${MLIBDIR}/smage2.functions.sh  source ${MLIBDIR}/smage2.functions.sh
20    
21    # export default path
22    export PATH="${PATH}:${MLIBDIR}"
23    
24  ## setup ##  ## setup ##
25  SMAGENAME="$1"  SMAGENAME="$1"
26  SMAGEVERSION="$(< ${MLIBDIR}/version)"  SMAGEVERSION="$(< ${MLIBDIR}/version)"
# Line 318  export MAKEOPTS="${MAKEOPTS}" || die "MA Line 321  export MAKEOPTS="${MAKEOPTS}" || die "MA
321  # 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
322  mqueryfeature "distcc" && setup_distcc_environment  mqueryfeature "distcc" && setup_distcc_environment
323    
324    # setup icecc
325    # setup for icecc goes *before* ccache, so ccache comes before icecc in path
326    mqueryfeature "icecc" && setup_icecc_environment
327    
328  # setup ccache  # setup ccache
329  mqueryfeature "ccache" && setup_ccache_environment  mqueryfeature "ccache" && setup_ccache_environment
330    
# Line 646  else Line 653  else
653   fi   fi
654  fi  fi
655    
656    if mqueryfeature "qalint"
657    then
658     if mqueryfeature "!pkgbuild"
659     then
660     echo "!pkgbuild detected; skipping QA lint checks ..."
661     else
662     if [[ -n ${SPLIT_PACKAGES} ]]
663     then
664     # save smage environment
665     split_save_variables
666     for subpackage in ${SPLIT_PACKAGES}
667     do
668     # honor split_info
669     split_info_${subpackage}
670     if [[ ${PKGTYPE} = virtual ]]
671     then
672     # automatically set !pkgbuild here too
673     msetfeature "!pkgbuild"
674     fi
675    
676     if mqueryfeature "qalint"
677     then
678     if mqueryfeature "!pkgbuild"
679     then
680     echo "!pkgbuild detected; skipping QA lint checks for '${subpackage}' ..."
681     else
682     echo -e "${COLBLUE}===${COLGREEN} running QA lint checks for '${subpackage}' ...${COLDEFAULT}"
683     mqalint ${BINDIR}_${subpackage}
684     fi
685     fi
686    
687     # restore smage environment
688     split_restore_variables
689     done
690     # unset saved variables
691     split_unset_variables
692     else
693     echo -e "${COLBLUE}===${COLGREEN} running QA lint checks ...${COLDEFAULT}"
694     mqalint ${BINDIR}
695     fi
696     fi
697    fi
698    
699  if mqueryfeature "!pkgbuild"  if mqueryfeature "!pkgbuild"
700  then  then
701   echo -e "!pkgbuild detected; Package will not be build ..."   echo -e "!pkgbuild detected; Package will not be build ..."

Legend:
Removed from v.2043  
changed lines
  Added in v.2209