[postgis-tickets] r16252 - Fix generation of postgis_topology.control

Sandro Santilli strk at kbt.io
Wed Jan 10 09:57:39 PST 2018


Author: strk
Date: 2018-01-10 21:57:38 -0800 (Wed, 10 Jan 2018)
New Revision: 16252

Modified:
   trunk/extensions/postgis_topology/Makefile.in
   trunk/extensions/postgis_topology/postgis_topology.control.in
Log:
Fix generation of postgis_topology.control

Modified: trunk/extensions/postgis_topology/Makefile.in
===================================================================
--- trunk/extensions/postgis_topology/Makefile.in	2018-01-10 19:27:48 UTC (rev 16251)
+++ trunk/extensions/postgis_topology/Makefile.in	2018-01-11 05:57:38 UTC (rev 16252)
@@ -44,6 +44,11 @@
 
 all: sql/$(EXTENSION)--$(EXTVERSION).sql sql/$(EXTENSION)--unpackaged--$(EXTVERSION).sql sql/$(EXTENSION)--ANY--$(EXTVERSION).sql
 
+$(EXTENSION).control: $(EXTENSION).control.in Makefile
+	cat $< \
+		| sed -e 's|@EXTVERSION@|$(EXTVERSION)|g' \
+		> $@
+
 sql/$(EXTENSION)--$(EXTVERSION).sql: sql/$(EXTENSION).sql
 	mkdir -p sql
 	cp $< $@

Modified: trunk/extensions/postgis_topology/postgis_topology.control.in
===================================================================
--- trunk/extensions/postgis_topology/postgis_topology.control.in	2018-01-10 19:27:48 UTC (rev 16251)
+++ trunk/extensions/postgis_topology/postgis_topology.control.in	2018-01-11 05:57:38 UTC (rev 16252)
@@ -1,6 +1,6 @@
 # postgis topology extension
 comment = 'PostGIS topology spatial types and functions'
-default_version = '@POSTGIS_LIB_VERSION@'
+default_version = '@EXTVERSION@'
 relocatable = false
 schema = topology
 requires = postgis



More information about the postgis-tickets mailing list