]> granicus.if.org Git - postgis/commitdiff
Re-use generalized extension upgrade paths makefile snippet
authorSandro Santilli <strk@kbt.io>
Tue, 11 Sep 2018 09:20:25 +0000 (09:20 +0000)
committerSandro Santilli <strk@kbt.io>
Tue, 11 Sep 2018 09:20:25 +0000 (09:20 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@16752 b70326c6-7e19-0410-871a-916f4a2858ee

extensions/postgis_raster/Makefile.in

index 360e717f7f8926d5c3f85383662dd547644f6e07..ea44006c683629604e60ee59f1a7ebd7f07e6084 100644 (file)
@@ -102,30 +102,7 @@ sql/$(EXTENSION)--ANY--$(EXTVERSION).sql: $(EXTENSION_UPGRADE_SCRIPTS) | sql
        printf '\\echo Use "CREATE EXTENSION $(EXTENSION)" to load this file. \\quit\n' > $@
        cat $(EXTENSION_UPGRADE_SCRIPTS) >> $@
 
-EXTDIR=$(DESTDIR)$(datadir)/$(datamoduledir)
-
-install: install-upgrade-paths
-
-# The "next" lines are a cludge to allow upgrading between different
-# revisions of the same version
-install-upgrade-paths: sql/$(EXTENSION)--ANY--$(EXTVERSION).sql
-       tpl='$(EXTENSION)--ANY--$(EXTVERSION).sql'; \
-       $(INSTALL_DATA) $^ "$(EXTDIR)/$${tpl}"; \
-       ln -fs "$${tpl}" $(EXTDIR)/$(EXTENSION)--$(EXTVERSION)--$(EXTVERSION)next.sql; \
-       ln -fs "$${tpl}" $(EXTDIR)/$(EXTENSION)--$(EXTVERSION)next--$(EXTVERSION).sql; \
-       for OLD_VERSION in $(UPGRADEABLE_VERSIONS); do \
-               ln -fs "$${tpl}" $(EXTDIR)/$(EXTENSION)--$$OLD_VERSION--$(EXTVERSION).sql; \
-       done
-
-uninstall: uninstall-upgrade-paths
-
-INSTALLED_UPGRADE_SCRIPTS = \
-       $(wildcard $(EXTDIR)/*$(EXTVERSION).sql) \
-       $(wildcard $(EXTDIR)/*$(EXTVERSION)next.sql) \
-       $(NULL)
-
-uninstall-upgrade-paths:
-       rm -f $(INSTALLED_UPGRADE_SCRIPTS)
+include ../upgrade-paths-rules.mk
 
 distclean: clean
        rm -f Makefile