[postgis-tickets] r16752 - Re-use generalized extension upgrade paths makefile snippet
Sandro Santilli
strk at kbt.io
Tue Sep 11 02:20:26 PDT 2018
Author: strk
Date: 2018-09-11 02:20:25 -0700 (Tue, 11 Sep 2018)
New Revision: 16752
Modified:
trunk/extensions/postgis_raster/Makefile.in
Log:
Re-use generalized extension upgrade paths makefile snippet
Modified: trunk/extensions/postgis_raster/Makefile.in
===================================================================
--- trunk/extensions/postgis_raster/Makefile.in 2018-09-11 09:20:20 UTC (rev 16751)
+++ trunk/extensions/postgis_raster/Makefile.in 2018-09-11 09:20:25 UTC (rev 16752)
@@ -102,31 +102,8 @@
printf '\\echo Use "CREATE EXTENSION $(EXTENSION)" to load this file. \\quit\n' > $@
cat $(EXTENSION_UPGRADE_SCRIPTS) >> $@
-EXTDIR=$(DESTDIR)$(datadir)/$(datamoduledir)
+include ../upgrade-paths-rules.mk
-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)
-
distclean: clean
rm -f Makefile
More information about the postgis-tickets
mailing list