Excerpts from Alvaro Herrera's message of jue ago 26 16:46:42 -0400 2010: > Excerpts from Tom Lane's message of jue ago 26 16:38:07 -0400 2010: > > Alvaro Herrera <alvhe...@commandprompt.com> writes: > > > Excerpts from Peter Eisentraut's message of jue ago 26 14:25:31 -0400 > > > 2010: > > >> If you have "find" superpowers, maybe you can tell it not to process > > >> anything below doc/src/sgml/. > > > > > line 25: > > > > > find "$sourcetree" -type d \( -name CVS -prune -o -path "*doc/src/sgml/*" > > > -prune -o -print \) > > > > Those wildcards look a bit scary, although I suppose only a really > > perverse person would put their PG source tree underneath a path > > containing that. > > Hmm, perhaps it can be > -path "$sourcetree/doc/src/sgml/*"
Yeah, this works for me (i.e. it creates doc/src/sgml but not anything under it), though I didn't test whether this fixes the original problem. *** config/prep_buildtree 10 Sep 2001 23:28:59 -0000 1.5 --- config/prep_buildtree 26 Aug 2010 20:56:40 -0000 *************** *** 22,35 **** buildtree=`cd ${2:-'.'} && pwd` ! for item in `find "$sourcetree" -type d \( -name CVS -prune -o -print \)`; do subdir=`expr "$item" : "$sourcetree\(.*\)"` if test ! -d "$buildtree/$subdir"; then mkdir -p "$buildtree/$subdir" || exit 1 fi done ! for item in `find "$sourcetree" -name Makefile -print -o -name GNUmakefile -print`; do filename=`expr "$item" : "$sourcetree\(.*\)"` if test ! -f "${item}.in"; then if cmp "$item" "$buildtree/$filename" >/dev/null 2>&1; then : ; else --- 22,35 ---- buildtree=`cd ${2:-'.'} && pwd` ! for item in `find "$sourcetree" -type d \( -name CVS -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 fi done ! for item in `find "$sourcetree" \( -name Makefile -o -name GNUmakefile \) -print `; do filename=`expr "$item" : "$sourcetree\(.*\)"` if test ! -f "${item}.in"; then if cmp "$item" "$buildtree/$filename" >/dev/null 2>&1; then : ; else -- Álvaro Herrera <alvhe...@commandprompt.com> The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs