source: projects/specs/trunk/t/texlive/reautoconf-parallel.diff @ 7148

Revision 7148, 812 bytes checked in by munepi, 12 years ago (diff)

upgrade to TeX Live 2012

RevLine 
[7148]1--- reautoconf.orig     2010-08-13 08:06:40.624000062 +0900
2+++ reautoconf  2010-08-13 08:14:38.940000722 +0900
3@@ -83,8 +83,10 @@
4 
5 # Give users a chance to quit here
6 # and set TL_AUTOCONF, TL_AUTOHEADER, TL_AUTOMAKE, and/or TL_ACLOCAL
7-$do_cmd sleep 5
8+#$do_cmd sleep 5
9 
10+PARALLEL_MAX=3
11+PARALLEL_NOW=0
12 AUTOCONF=$TL_AUTOCONF
13 AUTOHEADER=$TL_AUTOHEADER
14 AUTOMAKE=$TL_AUTOMAKE
15@@ -93,7 +95,12 @@
16 
17 do_it () {
18   $do_say "$0: running \"$@\""
19-  $do_cmd "$@"
20+  $do_cmd "$@" &
21+  PARALLEL_NOW=`expr $PARALLEL_NOW + 1`
22+  if [ $PARALLEL_NOW -eq $PARALLEL_MAX ] ; then
23+    echo -e "\e[1;34mWAITING\e[0m"; wait
24+    PARALLEL_NOW=0
25+  fi
26 }
27 
28 if test "x$list" = x; then
29@@ -122,4 +129,5 @@
30   do_it autoreconf $verbose --no-recursive $dir $extra_dirs
31 done
32 
33+echo -e "\e[1;34mWAITING\e[0m"; wait
34 echo "$0: done."
Note: See TracBrowser for help on using the repository browser.