dbTalk Databases Forums  

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

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] contrib-global.mk and sql.in question in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Robert Creager
 
Posts: n/a

Default [BUGS] contrib-global.mk and sql.in question - 08-24-2003 , 03:21 PM






--=.G2)4tL(BGfBTqt
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit


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.

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.000000000 -0600
--- contrib-global.mk 2003-08-22 22:22:26.000000000 -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

--=.G2)4tL(BGfBTqt
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iEYEARECAAYFAj9G7h4ACgkQgy51bQc2FFmWsACfcn7bzBAHDZ BhrkBW4Dynrm0I
v9sAoJamVQ654HIvAlzHO4BPCKxlbr30
=k9Uj
-----END PGP SIGNATURE-----

--=.G2)4tL(BGfBTqt--


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.