[postgis-tickets] r16746 - Fix install-upgrade-paths rule

Sandro Santilli strk at kbt.io
Tue Sep 11 02:19:52 PDT 2018


Author: strk
Date: 2018-09-11 02:19:52 -0700 (Tue, 11 Sep 2018)
New Revision: 16746

Modified:
   trunk/extensions/postgis_raster/Makefile.in
Log:
Fix install-upgrade-paths rule

Modified: trunk/extensions/postgis_raster/Makefile.in
===================================================================
--- trunk/extensions/postgis_raster/Makefile.in	2018-09-11 09:19:46 UTC (rev 16745)
+++ trunk/extensions/postgis_raster/Makefile.in	2018-09-11 09:19:52 UTC (rev 16746)
@@ -103,10 +103,10 @@
 # The "next" lines are a cludge to allow upgrading between different
 # revisions of the same version
 install-upgrade-paths: sql/postgis_extension_upgrade_minor.sql
-	tpl='$(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; \
-	$(INSTALL_DATA) $^ "$(EXTDIR)/$${tpl}"; \
 	for OLD_VERSION in $(UPGRADEABLE_VERSIONS); do \
 		ln -fs "$${tpl}" $(EXTDIR)/$(EXTENSION)--$$OLD_VERSION--$(EXTVERSION).sql; \
 	done



More information about the postgis-tickets mailing list