Ticket #311: postgis-file-versioning.patch

File postgis-file-versioning.patch, 3.6 KB (added by mcayland, 2 years ago)
  • postgis/Makefile.in

     
    1313MODULE_big=postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@ 
    1414 
    1515# 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.sql 
     16DATA_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 
    1717DATA=../spatial_ref_sys.sql 
    1818 
    1919# SQL objects (files requiring C pre-processing) 
     
    8989 
    9090 
    9191# 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' $< >$@ 
     92postgis-@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 >$@ 
    9494 
    95 postgis_upgrade_15_minor.sql: postgis.sql 
     95postgis_upgrade_15_minor.sql: postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@.sql 
    9696        $(PERL) ../utils/postgis_proc_upgrade.pl $< 1.5 > $@ 
    9797 
    98 postgis_upgrade_14_to_15.sql: postgis.sql 
     98postgis_upgrade_14_to_15.sql: postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@.sql  
    9999        $(PERL) ../utils/postgis_proc_upgrade.pl $< 1.4 > $@ 
    100100 
    101 postgis_upgrade_13_to_15.sql: postgis.sql 
     101postgis_upgrade_13_to_15.sql: postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@.sql 
    102102        $(PERL) ../utils/postgis_proc_upgrade.pl $< 1.3 > $@ 
    103103 
    104104# Generate any .sql.in files from .sql.in.c files by running them through the C pre-processor  
  • doc/Makefile.in

     
    6464postgis_aggs_mm.xml: ./xsl/postgis_aggs_mm.xml.xsl postgis.xml 
    6565        $(XSLTPROC) ./xsl/postgis_aggs_mm.xml.xsl postgis.xml > $@ 
    6666 
    67 postgis_comments.sql: ./xsl/postgis_comments.sql.xsl postgis.xml postgis_aggs_mm.xml 
     67postgis_comments-$(POSTGIS_MAJOR_VERSION).$(POSTGIS_MINOR_VERSION).sql: ./xsl/postgis_comments.sql.xsl postgis.xml postgis_aggs_mm.xml 
    6868        $(XSLTPROC) ./xsl/postgis_comments.sql.xsl postgis.xml > $@ 
    6969 
    7070postgis-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

     
    9595test check: 
    9696        $(MAKE) -C ../postgis REGRESS=1 DESTDIR=$(REGRESS_INSTALLDIR) install 
    9797        $(MAKE) -C ../loader REGRESS=1 DESTDIR=$(REGRESS_INSTALLDIR) install 
    98         sed 's,$$libdir,$(REGRESS_INSTALLDIR)/lib,g' ../postgis/postgis.sql > postgis.sql 
     98        sed 's,$$libdir,$(REGRESS_INSTALLDIR)/lib,g' ../postgis/postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@.sql > postgis.sql 
    9999        @USE_VERSION=$(POSTGIS_PGSQL_VERSION) ./run_test $(TESTS) 
    100100 
    101101cleanup: