changeset 9:b1f967311862

Update the build infrastructure. Documentation is still just copied, but htmldocs is now built out of tree. It builds both split-up and nochunks versions of the html (the path with the .html extension is the big version, without is the directory containing the split-up version), and does so without requiring a kernel patch.
author Rob Landley <rob@landley.net>
date Thu, 02 Aug 2007 14:32:16 -0400
parents e43bf5356404
children 72ac28634233
files make/make.sh
diffstat 1 files changed, 24 insertions(+), 27 deletions(-) [+]
line wrap: on
line diff
--- a/make/make.sh	Thu Aug 02 14:24:15 2007 -0400
+++ b/make/make.sh	Thu Aug 02 14:32:16 2007 -0400
@@ -1,32 +1,29 @@
 #!/bin/bash
 
-# Update website from kernel tarball.
-# usage: cd kerneldir; make.sh kdocsdir
+echo Update linux kernel from kernel.org Mercurial repository
+# mkdir -p ~/linux/hg
+# hg clone http://kernel.org/hg/linux-2.6
+cd ~/linux/hg/linux-2.6
+hg pull -u
 
-if [ ! -f "MAINTAINERS" ]
-then
-  echo $1 Not in kernel source dir
-  exit 1
-fi
-
-if [ ! -d "$1" ]
-then
-  echo $1 not directory
-  exit 1
-fi
+echo Install updated Documentation
+rm -rf ~/www/kdocs/Documentation/
+cp -a ~/linux/hg/linux-2.6/Documentation ~/www/kdocs/Documentation
 
-# Delete old copies, create empty directories.
-
-rm -rf $1/{Documentation,htmldocs}
-mkdir -p $1/{Documentation,htmldocs}
-
-# The list of architectures supported by this kernel
-# echo include/asm-* | sed 's@include/asm-@@g'
+echo Build htmldocs and xhtml-nochunks
+rm -rf ~/linux/temp
+cd ~/linux/hg/linux-2.6
+mkdir ~/linux/temp
+make allnoconfig O=~/linux/temp
+cd ~/linux/temp
+make -j 2 htmldocs
+cd Documentation/DocBook
+for i in *.xml
+  do xmlto xhtml-nochunks $i -o xhtml-nochunks 
+done
+mv xhtml-nochunks/*.html .
+rmdir xhtml-nochunks
 
-# Run this in the linux kernel source directory
-
-make distclean
-tar c Documentation | tar xvC $1
-make htmldocs
-cat Documentation/DocBook/index.html | sed -re 's@HREF=".*/(.*)"@HREF="\1"@' > $1/htmldocs/index.html &&
-cp `find Documentation/DocBook -name "*.html" | grep "Documentation/DocBook/.*/.*\.html"` $1/htmldocs/
+echo Install htmldocs
+rm -rf ~/www/kdocs/htmldocs
+cp -a ~/linux/temp/Documentation/DocBook ~/www/kdocs/htmldocs