Alvaro Herrera wrote:
The attached patch is a prototype which allows the user to specify a
new MODULEDIR variable in a module makefile which, if specified,
will install DATA and DOCS items in contrib/$(MODULEDIR) rather than
just contrib. If MODULEDIR is left unspecified, the files will
simply be stored directly in contrib/ as before.
As a proof of its usefulness, you could remove DATA_TSEARCH and replace
it with usage of MODULEDIR, right?
Not in its current form because PGXS always places files underneath a
contrib/ subdirectory within datadir. However, if people are happier
with this approach then it shouldn't be too hard to alter things so that
my PGXS Makefile would look like this:
MODULE_big=postgis-1.5
MODULEDIR=contrib/$(MODULE_big)
Once in this form it should then be possible to use this code to replace
the DATA_TSEARCH variable that is currently in place.
ATB,
Mark.
--
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063
Sirius Labs: http://www.siriusit.co.uk/labs
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers