]> granicus.if.org Git - postgis/commitdiff
Generate uninstall_topology.sql
authorSandro Santilli <strk@keybit.net>
Sat, 24 Dec 2011 10:42:40 +0000 (10:42 +0000)
committerSandro Santilli <strk@keybit.net>
Sat, 24 Dec 2011 10:42:40 +0000 (10:42 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8556 b70326c6-7e19-0410-871a-916f4a2858ee

.gitignore
topology/Makefile.in

index 235d2f39d02e0a633b4fd0ce58f5761d5b48f552..e330542c9f5e522fc235272b5b37fb8b45b4a388 100644 (file)
@@ -93,6 +93,7 @@ topology/test/topo_predicates.sql
 topology/topology.sql
 topology/topology.sql.in
 topology/topology_upgrade_20_minor.sql
+topology/uninstall_topology.sql
 authors.git
 libpgcommon/Makefile
 libpgcommon/cunit/Makefile
index 5216cf1d14912cf4554842e210de628bba9a0da5..75093f3c3ced5db00ce5e191f4f210c21c0a3684 100644 (file)
@@ -1,13 +1,30 @@
+# **********************************************************************
+# * $Id$
+# *
+# * PostGIS - Spatial Types for PostgreSQL
+# * http://postgis.refractions.net
+# * 
+# * Copyright (C) 2010-2011 Sandro Santilli <strk@keybit.net>
+# * Copyright (C) 2008 Mark Cave-Ayland
+# * Copyright (C) 2005 Refractions Research Inc.
+# *
+# * This is free software; you can redistribute and/or modify it under
+# * the terms of the GNU General Public Licence. See the COPYING file.
+# *
+# **********************************************************************
+
 #
 # PostGIS PGXS build system
 #
 
+POSTGIS_PGSQL_VERSION=@POSTGIS_PGSQL_VERSION@
+
 # NOTE: we can't use MODULE_big or PGXS insists in building a library...
 PGIS_MODULE_big=postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@
 MODULEDIR=contrib/$(PGIS_MODULE_big)
 
 # Files to be copied to the contrib/ directory
-DATA_built=topology.sql topology_upgrade_20_minor.sql
+DATA_built=topology.sql topology_upgrade_20_minor.sql uninstall_topology.sql
 
 # SQL objects (files requiring C pre-processing)
 SQL_OBJS=topology.sql.in
@@ -51,5 +68,8 @@ topology_upgrade_20_minor.sql:  topology.sql
 
 topology.sql.in: sql/sqlmm.sql sql/populate.sql sql/polygonize.sql sql/gml.sql sql/query/getnodebypoint.sql sql/query/getedgebypoint.sql sql/query/getfacebypoint.sql sql/query/GetRingEdges.sql sql/manage/TopologySummary.sql sql/manage/CopyTopology.sql sql/manage/ManageHelper.sql
 
+uninstall_topology.sql: topology.sql ../utils/create_undef.pl 
+       $(PERL) ../utils/create_undef.pl $< $(POSTGIS_PGSQL_VERSION) > $@
+
 check: topology.sql
        $(MAKE) -C test $@