Ticket #311: postgis-file-versioning.patch
| File postgis-file-versioning.patch, 3.6 KB (added by mcayland, 2 years ago) |
|---|
-
postgis/Makefile.in
13 13 MODULE_big=postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@ 14 14 15 15 # Files to be copied to the contrib/ directory 16 DATA_built=postgis .sql uninstall_postgis.sql postgis_upgrade_15_minor.sql postgis_upgrade_14_to_15.sql postgis_upgrade_13_to_15.sql16 DATA_built=postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@.sql uninstall_postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@.sql postgis_upgrade_15_minor.sql postgis_upgrade_14_to_15.sql postgis_upgrade_13_to_15.sql 17 17 DATA=../spatial_ref_sys.sql 18 18 19 19 # SQL objects (files requiring C pre-processing) … … 89 89 90 90 91 91 # Borrow the $libdir substitution from PGXS but customise by adding the version number 92 %.sql: %.sql.in 93 sed 's,MODULE_PATHNAME,$$libdir/postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@,g' $ <>$@92 postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@.sql uninstall_postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@.sql: $(SQL_OBJS) 93 sed 's,MODULE_PATHNAME,$$libdir/postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@,g' $(subst -@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@,,$@).in >$@ 94 94 95 postgis_upgrade_15_minor.sql: postgis .sql95 postgis_upgrade_15_minor.sql: postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@.sql 96 96 $(PERL) ../utils/postgis_proc_upgrade.pl $< 1.5 > $@ 97 97 98 postgis_upgrade_14_to_15.sql: postgis .sql98 postgis_upgrade_14_to_15.sql: postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@.sql 99 99 $(PERL) ../utils/postgis_proc_upgrade.pl $< 1.4 > $@ 100 100 101 postgis_upgrade_13_to_15.sql: postgis .sql101 postgis_upgrade_13_to_15.sql: postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@.sql 102 102 $(PERL) ../utils/postgis_proc_upgrade.pl $< 1.3 > $@ 103 103 104 104 # Generate any .sql.in files from .sql.in.c files by running them through the C pre-processor -
doc/Makefile.in
64 64 postgis_aggs_mm.xml: ./xsl/postgis_aggs_mm.xml.xsl postgis.xml 65 65 $(XSLTPROC) ./xsl/postgis_aggs_mm.xml.xsl postgis.xml > $@ 66 66 67 postgis_comments .sql: ./xsl/postgis_comments.sql.xsl postgis.xml postgis_aggs_mm.xml67 postgis_comments-$(POSTGIS_MAJOR_VERSION).$(POSTGIS_MINOR_VERSION).sql: ./xsl/postgis_comments.sql.xsl postgis.xml postgis_aggs_mm.xml 68 68 $(XSLTPROC) ./xsl/postgis_comments.sql.xsl postgis.xml > $@ 69 69 70 70 postgis-out.xml: postgis.xml introduction.xml installation.xml faq.xml using_postgis_dataman.xml using_postgis_app.xml performance_tips.xml reference.xml reference_management.xml reference_constructor.xml reference_accessor.xml reference_editor.xml reference_output.xml reference_operator.xml reference_measure.xml reference_processing.xml reference_lrs.xml reference_transaction.xml reference_misc.xml reference_exception.xml postgis_aggs_mm.xml reporting.xml release_notes.xml ../Version.config -
regress/Makefile.in
95 95 test check: 96 96 $(MAKE) -C ../postgis REGRESS=1 DESTDIR=$(REGRESS_INSTALLDIR) install 97 97 $(MAKE) -C ../loader REGRESS=1 DESTDIR=$(REGRESS_INSTALLDIR) install 98 sed 's,$$libdir,$(REGRESS_INSTALLDIR)/lib,g' ../postgis/postgis .sql > postgis.sql98 sed 's,$$libdir,$(REGRESS_INSTALLDIR)/lib,g' ../postgis/postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@.sql > postgis.sql 99 99 @USE_VERSION=$(POSTGIS_PGSQL_VERSION) ./run_test $(TESTS) 100 100 101 101 cleanup:
