find -path is not portable, so use grep -v instead.
authorAlvaro Herrera <[email protected]>
Mon, 25 Oct 2010 12:24:02 +0000 (09:24 -0300)
committerAlvaro Herrera <[email protected]>
Mon, 25 Oct 2010 13:04:00 +0000 (10:04 -0300)
Per previous failure of buildfarm member koi (which is no longer
failing, alas).

config/prep_buildtree

index 30572326d44a4acac77f2b907320fc9d3b382003..5b72c392f687c9a54d628d9b36e9f038a3d55c04 100644 (file)
@@ -26,7 +26,7 @@ buildtree=`cd ${2:-'.'} && pwd`
 # 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
+for item in `find "$sourcetree" -type d \( \( -name CVS -prune \) -o \( -name .git -prune \) -o -print \) | grep -v "$sourcetree/doc/src/sgml/\+"`; do
     subdir=`expr "$item" : "$sourcetree\(.*\)"`
     if test ! -d "$buildtree/$subdir"; then
         mkdir -p "$buildtree/$subdir" || exit 1