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

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: BUG #5595: Documentation is not installs from VPATH build.
Дата
Msg-id 1282856316-sup-8524@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: BUG #5595: Documentation is not installs from VPATH build.  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: BUG #5595: Documentation is not installs from VPATH build.  (Alvaro Herrera <alvherre@commandprompt.com>)
Список 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@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 <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #5595: Documentation is not installs from VPATH build.
Следующее
От: "Alexsander"
Дата:
Сообщение: BUG #5629: ALTER SEQUENCE foo START execute a RESTART