Skip site navigation (1) Skip section navigation (2)

Re: BUG #5595: Documentation is not installs from VPATH build.

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Dmtiriy Igrishin <dmitigr(at)gmail(dot)com>, pgsql-bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #5595: Documentation is not installs from VPATH build.
Date: 2010-08-26 21:01:14
Message-ID: 1282856316-sup-8524@alvh.no-ip.org (view raw or flat)
Thread:
Lists: pgsql-bugs
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 <alvherre(at)commandprompt(dot)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 <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

pgsql-bugs by date

Next:From: Tom LaneDate: 2010-08-26 21:23:11
Subject: Re: BUG #5629: ALTER SEQUENCE foo START execute a RESTART
Previous:From: Cristian BittelDate: 2010-08-26 20:59:59
Subject: Re: [BUGS] BUG #5305: Postgres service stops when closing Windows session

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group