[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] support parallel build.

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:23:46 JST 2012


Kouhei Sutou	2010-12-31 00:08:47 +0900 (Fri, 31 Dec 2010)

  New Revision: 410410e02de00774b5309a207ab28e299dccd5ba
  https://github.com/mroonga/mroonga/commit/410410e02de00774b5309a207ab28e299dccd5ba

  Log:
    support parallel build.

  Modified files:
    yum/build-in-chroot.sh

  Modified: yum/build-in-chroot.sh (+15 -1)
===================================================================
--- yum/build-in-chroot.sh    2010-12-20 01:06:43 +0900 (6e8682c)
+++ yum/build-in-chroot.sh    2010-12-31 00:08:47 +0900 (cccfd95)
@@ -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()
 {
     "$@"
@@ -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
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index