From: František Dvořák Date: Mon, 16 Jul 2012 22:30:50 +0000 (+0200) Subject: How to do paralel build. X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=36339fc7e192844b907526877b59e0b145c7299b;p=mock.git How to do paralel build. --- diff --git a/mock.sh b/mock.sh index 8116240..0961334 100755 --- a/mock.sh +++ b/mock.sh @@ -22,6 +22,7 @@ KEY_ID=${KEY_ID:-'7157882F'} DEBREPO=~/debian DEBDISTRO=stable +#PBUILDER_OPTS='--debbuildopts "-j8"' OS=`cat /etc/issue | head -n 1` ARCH=`uname -i` @@ -101,7 +102,7 @@ pbuilder_build() { touch $REPORTS/fail.$BASENAME (cd $DIR; dpkg-source -x "`basename $FILE`") SUBDIR=`find $DIR -maxdepth 1 -type d -name ${BASENAME}-\* | head -n 1` - (cd $SUBDIR; pdebuild --buildresult $BASEDIR/results/pbuilder --auto-debsign --debsign-k $KEY_ID -- --hookdir $LAUNCHDIR/pbuilder) + (cd $SUBDIR; pdebuild --buildresult $BASEDIR/results/pbuilder --auto-debsign --debsign-k $KEY_ID -- --hookdir $LAUNCHDIR/pbuilder $PBUILDER_OPTS) mv $DIR/*.build results/reports CHANGES=`find results/pbuilder -type f -name ${BASENAME}_\*.changes | head -n 1` # buggy mini-dinstall?