Re: SGML index build fix

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: SGML index build fix
Date: 2007-01-07 15:03:28
Message-ID: 200701071503.l07F3SR13441@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Peter Eisentraut wrote:
> Bruce Momjian wrote:
> > The attached patch warns users when they create documentation output
> > that has no index, and suggests re-running 'gmake'.
>
> > ! # for some reason $wildcard expands too early, so we use 'test'
>
> $wildcard is expanded whenever you tell it to. What did you write?

I wrote:

ifeq (,$(wildcard bookindex.valid))
echo "Run 'gmake' again to generate output with a proper index"
endif

but that warns on the first _two_ runs, meaning it expanded at the time
the rule started, not at the time it hit that line.

> > ! @test -f bookindex.valid || echo "Run 'gmake' again to generate output with a proper index"
>
> The proper command to run is $(MAKE).

OK, updated.

>
> > !
>
> There is a redundant tab on that line.

OK, removed.

>
> > + @test -f bookindex.valid || echo "Run 'gmake' again to generate output with a proper index"
>
> Probably better to capture that in a variable instead of copying it half a dozen times.
>
> > -e '1a\' -e '<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">' \
> > >$@
> > # ' hello Emacs
> > + @test -f bookindex.valid || echo "Run 'gmake' again to generate output with a proper index"
>
> When converting to XML, you probably don't want an index because it will
> be built differently by the XSLT toolchain. It's not clear what we want
> anyway.

OK, removed.

--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2007-01-07 15:04:03 Re: security definer default for some PL languages (SQL/PSM)?
Previous Message Pavel Stehule 2007-01-07 14:52:29 Re: proposal: catch warnings

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2007-01-07 16:14:11 Re: [HACKERS] COPY with no WAL, in certain circumstances
Previous Message Bruce Momjian 2007-01-07 14:50:07 Re: [HACKERS] SGML index build fix