--- trunk/mage/usr/lib/mage/smage2.sh 2005/07/31 14:15:59 171 +++ trunk/mage/usr/lib/mage/smage2.sh 2005/07/31 14:16:19 172 @@ -4,7 +4,7 @@ # needs pkgbuild_dir (mage) # SMAGE2 -# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/smage2.sh,v 1.16 2005-07-31 11:57:05 niro Exp $ +# $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/smage2.sh,v 1.17 2005-07-31 14:16:19 niro Exp $ #01.10.2004 # added ccache support @@ -357,6 +357,19 @@ find ${stripdir} | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null } +sminclude() { + local i + + if [ -n "$@" ] + then + for i in $@ + do + echo "--- including ${SMAGESCRIPTSDIR}/include/${i}.incl" + source ${SMAGESCRIPTSDIR}/include/${i}.sminc + done + fi +} + setup_distcc_environment(){ if [ -x /usr/bin/distcc ] then