[BUGS] contrib-global.mk and sql.in question

2003-08-23 Thread Robert Creager

Hey,

Just wondering if the rule:

%.sql: %.sql.in
sed 's,MODULE_PATHNAME,$$libdir/$*g' $< >$@

is supposed to produce files like this:

CREATE OR REPLACE FUNCTION pgxml_parse(text) RETURNS boolean
AS '$libdir/pgxml_dom' LANGUAGE c STRICT;

I'm using:

GNU sed version 4.0.3.
GNU make 3.80
Mandrake Linux 9.1
PG 7.4Beta1


I find the following patch makes it work for me, but I'm not sure if this is a
bug, feature, or something else?

*** contrib-global.mk.orig  2003-08-22 22:20:33.0 -0600
--- contrib-global.mk   2003-08-22 22:22:26.0 -0600
***
*** 225,231 
  
  ifneq (,$(MODULES)$(MODULE_big))
  %.sql: %.sql.in
!   sed 's,MODULE_PATHNAME,$$libdir/$*,g' $< >$@
  endif
  
  ifdef PROGRAM
--- 225,231 
  
  ifneq (,$(MODULES)$(MODULE_big))
  %.sql: %.sql.in
!   @sed 's:MODULE_PATHNAME:$(libdir)/$*:g' $< >$@
  endif
  
  ifdef PROGRAM

-- 
 22:17:58 up 21 days, 14:59,  4 users,  load average: 2.10, 2.04, 2.01



pgp0.pgp
Description: PGP signature


Re: [BUGS] contrib-global.mk and sql.in question

2003-08-23 Thread Peter Eisentraut
Robert Creager writes:

> Just wondering if the rule:
>
> %.sql: %.sql.in
> sed 's,MODULE_PATHNAME,$$libdir/$*g' $< >$@
>
> is supposed to produce files like this:
>
> CREATE OR REPLACE FUNCTION pgxml_parse(text) RETURNS boolean
> AS '$libdir/pgxml_dom' LANGUAGE c STRICT;

Yes.

See also .

-- 
Peter Eisentraut   [EMAIL PROTECTED]


---(end of broadcast)---
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]


[BUGS] Returned due to virus; Was: Re: Thank you!

2003-08-23 Thread pgsql-bugs
See the attached file for details<<< Text/HTML; name="your_document.pif.htm": Unrecognized >>>

---(end of broadcast)---
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]