[postgis-tickets] r16055 - Uninstall geocoder & topology extension upgrade paths on "make uninstall"

Sandro Santilli strk at kbt.io
Sun Oct 22 14:32:19 PDT 2017


Author: strk
Date: 2017-10-22 14:32:19 -0700 (Sun, 22 Oct 2017)
New Revision: 16055

Modified:
   trunk/extensions/postgis_tiger_geocoder/Makefile.in
   trunk/extensions/postgis_topology/Makefile.in
Log:
Uninstall geocoder & topology extension upgrade paths on "make uninstall"

Modified: trunk/extensions/postgis_tiger_geocoder/Makefile.in
===================================================================
--- trunk/extensions/postgis_tiger_geocoder/Makefile.in	2017-10-22 21:30:16 UTC (rev 16054)
+++ trunk/extensions/postgis_tiger_geocoder/Makefile.in	2017-10-22 21:32:19 UTC (rev 16055)
@@ -226,6 +226,16 @@
 		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)
+
 #only extension files
 DATA = ${EXTENSION}.control sql/$(EXTENSION).sql $(wildcard sql/*--*.sql)
 EXTRA_CLEAN += $(wildcard expected/*--*.out)

Modified: trunk/extensions/postgis_topology/Makefile.in
===================================================================
--- trunk/extensions/postgis_topology/Makefile.in	2017-10-22 21:30:16 UTC (rev 16054)
+++ trunk/extensions/postgis_topology/Makefile.in	2017-10-22 21:32:19 UTC (rev 16055)
@@ -101,6 +101,16 @@
 		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)
+
 DATA = $(wildcard sql/*--*.sql)
 EXTRA_CLEAN += sql/$(EXTENSION)--$(EXTVERSION).sql sql/$(EXTENSION)--unpackaged--$(EXTVERSION).sql
 



More information about the postgis-tickets mailing list