# HG changeset patch # User Rob Landley # Date 1194500528 21600 # Node ID 41f999d7f077e1f3f49027dd5e82d129c036d432 # Parent 490dd648a9bfc701ded048fb5f4a95422268c14b Disentangle Documentation from temporary linux directory. (Allows the scsi patch to be applied from the queue, and anything else that wants to play with files outside of the Documentation dir.) diff -r 490dd648a9bf -r 41f999d7f077 make/functions.sh --- a/make/functions.sh Wed Nov 07 23:41:23 2007 -0600 +++ b/make/functions.sh Wed Nov 07 23:42:08 2007 -0600 @@ -15,15 +15,10 @@ function update_documentation_dir() { rm -rf "$WEBDIR"/Documentation/ - cp -a "$LNXDIR"/hg/Documentation "$WEBDIR"/Documentation + cp -a "$LNXDIR"/temp/Documentation "$WEBDIR"/Documentation # Make the change directory local to this function ( cd $WEBDIR - for i in make/patches/*.patch - do - echo $i - patch -p1 -i $i || exit 1 - done make/docdiridx.py ) } @@ -240,19 +235,21 @@ function setuplinuxtemp() { - if [ ! -d "$WEBDIR"/Documentation ] - then - echo "Need Documentation dir first" - exit 1 - fi - rm -rf "$LNXDIR"/temp && mkdir "$LNXDIR"/temp && - ( cd "$LNXDIR"/hg && - make allnoconfig O=$LNXDIR/temp > /dev/null && - # Adjust to use the patched Documentation directory - ln -s "$WEBDIR"/Documentation "$LNXDIR"/temp && - # We'll need this later. + # Building out of tree conflicts with patching the files, so copy. + cp -r "$LNXDIR"/hg/* "$LNXDIR"/temp && + ( + cd "$LNXDIR"/hg + # Apply patches + for i in "$WEBDIR"/make/patches/*.patch + do + echo $i + patch -p1 -i $i || exit 1 + done + + # Do setup we'll need later. + make allnoconfig > /dev/null && make -j 2 xmldocs ) } diff -r 490dd648a9bf -r 41f999d7f077 make/make.sh --- a/make/make.sh Wed Nov 07 23:41:23 2007 -0600 +++ b/make/make.sh Wed Nov 07 23:42:08 2007 -0600 @@ -16,10 +16,7 @@ shift fi -echo "Install updated (and patched) Documentation directory." -update_documentation_dir || exit 1 - -echo "Set up Linux build directory (uses patched Documentation dir)" +echo "Set up Linux build directory" setuplinuxtemp || exit 1 if [ "$1" == "--long" ] @@ -30,6 +27,9 @@ make_htmldocs > /dev/null 2>/dev/null & fi +echo "Install and index Documentation directory." +update_documentation_dir || exit 1 + echo "Update master index." update_master || exit 1