Commit 9350824e authored by Alvaro Herrera's avatar Alvaro Herrera

find -path is not portable, so use grep -v instead.

Per previous failure of buildfarm member koi (which is no longer
failing, alas).
parent 4ba61a48
...@@ -26,7 +26,7 @@ buildtree=`cd ${2:-'.'} && pwd` ...@@ -26,7 +26,7 @@ buildtree=`cd ${2:-'.'} && pwd`
# If we did, it would interfere with installation of prebuilt docs from # 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. # the source tree, if a VPATH build is done from a distribution tarball.
# See bug #5595. # 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\(.*\)"` subdir=`expr "$item" : "$sourcetree\(.*\)"`
if test ! -d "$buildtree/$subdir"; then if test ! -d "$buildtree/$subdir"; then
mkdir -p "$buildtree/$subdir" || exit 1 mkdir -p "$buildtree/$subdir" || exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment