Navigation Menu

Skip to content

Commit

Permalink
support parallel build.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Dec 30, 2010
1 parent aa7cdd1 commit 410410e
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion yum/build-in-chroot.sh
Expand Up @@ -16,6 +16,12 @@ PATH=/usr/local/sbin:/usr/sbin:$PATH

script_base_dir=`dirname $0`

if test "$PARALLEL" = "yes"; then
parallel="yes"
else
parallel="no"
fi

run()
{
"$@"
Expand Down Expand Up @@ -132,6 +138,14 @@ build()

for architecture in $ARCHITECTURES; do
for distribution in $DISTRIBUTIONS; do
build $architecture $distribution
if test "$parallel" = "yes"; then
build $architecture $distribution &
else
build $architecture $distribution
fi;
done;
done

if test "$parallel" = "yes"; then
wait
fi

0 comments on commit 410410e

Please sign in to comment.