summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera2010-09-24 05:32:52 +0000
committerAlvaro Herrera2010-09-24 05:32:52 +0000
commitfde5ce4fe2286d3c66cd77db0b7116566ac7b66b (patch)
tree7c82297a64c9ce72c19a0dd37569c1637fd0dbe0
parent0a8ed2cdb4f7a34f65976a87a2b08a39df17939a (diff)
Prevent doc/src/sgml subdirs from being created, instead of deleting
them after the fact. This is a more elegant fix for bug #5595.
-rw-r--r--config/prep_buildtree15
1 files changed, 5 insertions, 10 deletions
diff --git a/config/prep_buildtree b/config/prep_buildtree
index 2527812f12..30572326d4 100644
--- a/config/prep_buildtree
+++ b/config/prep_buildtree
@@ -22,7 +22,11 @@ sourcetree=`cd $1 && pwd`
buildtree=`cd ${2:-'.'} && pwd`
-for item in `find "$sourcetree" -type d \( \( -name CVS -prune \) -o \( -name .git -prune \) -o -print \)`; do
+# We must not auto-create the subdirectories holding built documentation.
+# If we did, it would interfere with installation of prebuilt docs from
+# the source tree, if a VPATH build is done from a distribution tarball.
+# See bug #5595.
+for item in `find "$sourcetree" -type d \( \( -name CVS -prune \) -o \( -name .git -prune \) -o \( -path "$sourcetree/doc/src/sgml/*" -prune \) -o -print \)`; do
subdir=`expr "$item" : "$sourcetree\(.*\)"`
if test ! -d "$buildtree/$subdir"; then
mkdir -p "$buildtree/$subdir" || exit 1
@@ -38,13 +42,4 @@ for item in `find "$sourcetree" -name Makefile -print -o -name GNUmakefile -prin
fi
done
-# We must not auto-create the subdirectories holding built documentation.
-# If we did, it would interfere with installation of prebuilt docs from
-# the source tree, if a VPATH build is done from a distribution tarball.
-# See bug #5595.
-rmdir "$buildtree/doc/src/sgml/html" 2>/dev/null
-rmdir "$buildtree/doc/src/sgml/man1" 2>/dev/null
-rmdir "$buildtree/doc/src/sgml/man3" 2>/dev/null
-rmdir "$buildtree/doc/src/sgml/man7" 2>/dev/null
-
exit 0