changeset 10:72ac28634233

Take advantage of my laptop's core 2 duo.
author Rob Landley <rob@landley.net>
date Thu, 02 Aug 2007 14:45:38 -0400
parents b1f967311862
children af7d7a237911
files make/make.sh
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/make/make.sh	Thu Aug 02 14:32:16 2007 -0400
+++ b/make/make.sh	Thu Aug 02 14:45:38 2007 -0400
@@ -15,12 +15,19 @@
 cd ~/linux/hg/linux-2.6
 mkdir ~/linux/temp
 make allnoconfig O=~/linux/temp
+
+# I have a dual processor laptop, so overlap work here.  Generate the xml
+# first, then have make htmldocs produce split-up versions in the background
+# while a script produces nochunks versions in the foreground.
 cd ~/linux/temp
-make -j 2 htmldocs
+make -j 2 xmldocs
+make -j 2 htmldocs &
 cd Documentation/DocBook
 for i in *.xml
   do xmlto xhtml-nochunks $i -o xhtml-nochunks 
 done
+# Wait for background task to finish before retrieving result
+while [ $(jobs | wc -l) -ne 0 ]; do sleep 1; done
 mv xhtml-nochunks/*.html .
 rmdir xhtml-nochunks