[postgis-tickets] r16053 - Make upgrade install rule always run when asked (no deps)
Sandro Santilli
strk at kbt.io
Sun Oct 22 14:27:06 PDT 2017
Author: strk
Date: 2017-10-22 14:27:06 -0700 (Sun, 22 Oct 2017)
New Revision: 16053
Modified:
trunk/extensions/postgis/Makefile.in
Log:
Make upgrade install rule always run when asked (no deps)
Modified: trunk/extensions/postgis/Makefile.in
===================================================================
--- trunk/extensions/postgis/Makefile.in 2017-10-22 19:52:28 UTC (rev 16052)
+++ trunk/extensions/postgis/Makefile.in 2017-10-22 21:27:06 UTC (rev 16053)
@@ -63,7 +63,7 @@
CURV_big=@POSTGIS_MAJOR_VERSION@@POSTGIS_MINOR_VERSION@
-all: sql/$(EXTENSION)--$(EXTVERSION).sql sql/$(EXTENSION)--unpackaged--$(EXTVERSION).sql
+all: sql/$(EXTENSION)--$(EXTVERSION).sql sql/$(EXTENSION)--unpackaged--$(EXTVERSION).sql sql/$(EXTENSION)--ANY--$(EXTVERSION).sql
sql/$(EXTENSION).sql: $(EXTENSION_SCRIPTS) | sql
printf '\\echo Use "CREATE EXTENSION $(EXTENSION)" to load this file. \\quit\n' > $@
@@ -131,7 +131,7 @@
cp $< $@
#postgis_extension_upgrade_minor.sql is the one that contains both postgis AND raster
-sql_bits/postgis_extension_upgrade_minor.sql: $(EXTENSION_UPGRADE_SCRIPTS) | sql_bits
+sql/$(EXTENSION)--ANY--$(EXTVERSION).sql: $(EXTENSION_UPGRADE_SCRIPTS) | sql
printf '\\echo Use "CREATE EXTENSION $(EXTENSION)" to load this file. \\quit\n' > $@
cat $^ >> $@
@@ -141,9 +141,9 @@
# The "next" lines are a cludge to allow upgrading between different
# revisions of the same version
-install-upgrade-paths: sql_bits/postgis_extension_upgrade_minor.sql
+install-upgrade-paths:
tpl='$(EXTENSION)--ANY--$(EXTVERSION).sql'; \
- $(INSTALL_DATA) $^ "$(EXTDIR)/$${tpl}"; \
+ $(INSTALL_DATA) sql/$${tpl} "$(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 \
More information about the postgis-tickets
mailing list