null+****@clear*****
null+****@clear*****
2010年 12月 29日 (水) 19:18:09 JST
Kouhei Sutou 2010-12-29 10:18:09 +0000 (Wed, 29 Dec 2010)
New Revision: 264e85c9eeb20695f5121969d0ed6d0ffb114171
Log:
support parallel build.
Modified files:
apt/build-in-chroot.sh
Modified: apt/build-in-chroot.sh (+15 -1)
===================================================================
--- apt/build-in-chroot.sh 2010-12-29 09:52:30 +0000 (141bf33)
+++ apt/build-in-chroot.sh 2010-12-29 10:18:09 +0000 (17f4bdf)
@@ -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()
{
"$@"
@@ -111,6 +117,14 @@ build()
for architecture in $ARCHITECTURES; do
for code_name in $CODES; do
- build $architecture $code_name
+ if test "$parallel" = "yes"; then
+ build $architecture $code_name &
+ else
+ build $architecture $code_name
+ fi;
done;
done
+
+if test "$parallel" = "yes"; then
+ wait
+fi