]> granicus.if.org Git - postgis/commitdiff
Generate uninstall_legacy.sql from legacy.sql (#949)
authorSandro Santilli <strk@keybit.net>
Mon, 27 Feb 2012 16:52:47 +0000 (16:52 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 27 Feb 2012 16:52:47 +0000 (16:52 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9314 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/Makefile.in
postgis/uninstall_legacy.sql.in.c [deleted file]

index 8f762aa27e29abb5c48053207311f7b713effb1e..9ded4c5e06a990fdcd1091646ded677c1c52711e 100644 (file)
@@ -19,7 +19,7 @@ DATA_built=postgis.sql uninstall_postgis.sql postgis_upgrade_20_minor.sql legacy
 DATA=../spatial_ref_sys.sql
 
 # SQL objects (files requiring C pre-processing)
-SQL_OBJS=postgis.sql.in legacy.sql.in uninstall_legacy.sql.in legacy_compatibility_layer.sql.in 
+SQL_OBJS=postgis.sql.in legacy.sql.in legacy_compatibility_layer.sql.in 
 
 # PostgreSQL objects
 PG_OBJS= \
@@ -72,7 +72,7 @@ PG_CPPFLAGS += @CPPFLAGS@ -I../liblwgeom -I../libpgcommon
 SHLIB_LINK_F = ../liblwgeom/.libs/liblwgeom.a ../libpgcommon/libpgcommon.a @SHLIB_LINK@ 
 
 # Extra files to remove during 'make clean'
-EXTRA_CLEAN=$(SQL_OBJS)
+EXTRA_CLEAN=$(SQL_OBJS) legacy_uninstall.sql
 
 # PGXS information
 PG_CONFIG = @PGCONFIG@ 
@@ -141,3 +141,6 @@ postgis.sql.in: sqldefines.h long_xact.sql.in.c geography.sql.in.c postgis_drop.
 #uninstall_postgis.sql.in: sqldefines.h uninstall_sqlmm.sql.in.c uninstall_long_xact.sql.in.c uninstall_geography.sql.in.c
 uninstall_postgis.sql: postgis.sql ../utils/create_undef.pl 
        $(PERL) ../utils/create_undef.pl $< $(POSTGIS_PGSQL_VERSION) > $@
+
+uninstall_legacy.sql: legacy.sql ../utils/create_undef.pl 
+       $(PERL) ../utils/create_undef.pl $< $(POSTGIS_PGSQL_VERSION) > $@
diff --git a/postgis/uninstall_legacy.sql.in.c b/postgis/uninstall_legacy.sql.in.c
deleted file mode 100644 (file)
index ea65030..0000000
+++ /dev/null
@@ -1,137 +0,0 @@
--- $Id: uninstall_legacy.sql.in.c 7065 2011-04-26 12:35:02Z robe $
--- Uninstall Legacy functions useful when you have your applications finally set up to not use legacy functions  --
-#include "sqldefines.h"
---- start functions that in theory should never have been used or internal like stuff deprecated
-#include "postgis_drop.sql.in.c"
--- Drop Affine family of deprecated functions --
-DROP FUNCTION IF EXISTS Affine(geometry,float8,float8,float8,float8,float8,float8,float8,float8,float8,float8,float8,float8);
-DROP FUNCTION IF EXISTS Affine(geometry,float8,float8,float8,float8,float8,float8);
-DROP FUNCTION IF EXISTS RotateZ(geometry,float8);
-DROP FUNCTION IF EXISTS Rotate(geometry,float8);
-DROP FUNCTION IF EXISTS RotateX(geometry,float8);
-DROP FUNCTION IF EXISTS RotateY(geometry,float8);
-DROP FUNCTION IF EXISTS Scale(geometry,float8,float8,float8);
-DROP FUNCTION IF EXISTS Scale(geometry,float8,float8);
-DROP FUNCTION IF EXISTS Translate(geometry,float8,float8,float8);
-DROP FUNCTION IF EXISTS Translate(geometry,float8,float8);
-DROP FUNCTION IF EXISTS TransScale(geometry,float8,float8,float8,float8);
-
--- POSTGIS Management functions now made obsolete with geometry_columns view
--- Or that were just really dumb
--- START MANAGEMENT FUNCTIONS
-DROP FUNCTION IF EXISTS rename_geometry_table_constraints();
-DROP FUNCTION IF EXISTS fix_geometry_columns();
-DROP FUNCTION IF EXISTS probe_geometry_columns();
--- END MANAGEMENT FUNCTIONS
-
--- Other functions --
-DROP AGGREGATE IF EXISTS Accum(geometry);
-DROP FUNCTION IF EXISTS AddBBox(geometry);
-DROP FUNCTION IF EXISTS AddPoint(geometry,geometry);
-DROP FUNCTION IF EXISTS AddPoint(geometry,geometry, integer);
-DROP FUNCTION IF EXISTS Area(geometry);
-DROP FUNCTION IF EXISTS Area2D(geometry);
-DROP FUNCTION IF EXISTS AsBinary(geometry);
-DROP FUNCTION IF EXISTS AsBinary(geometry,text);
-DROP FUNCTION IF EXISTS AsEWKB(geometry);
-DROP FUNCTION IF EXISTS AsEWKB(geometry,text);
-DROP FUNCTION IF EXISTS AsEWKT(geometry);
-DROP FUNCTION IF EXISTS AsGML(geometry);
-DROP FUNCTION IF EXISTS AsGML(geometry,int4);
-DROP FUNCTION IF EXISTS AsKML(geometry);
-DROP FUNCTION IF EXISTS AsKML(geometry,int4);
-DROP FUNCTION IF EXISTS AsKML(int4,geometry,int4);
-DROP FUNCTION IF EXISTS AsHEXEWKB(geometry);
-DROP FUNCTION IF EXISTS AsHEXEWKB(geometry,text);
-DROP FUNCTION IF EXISTS AsSVG(geometry);
-DROP FUNCTION IF EXISTS AsSVG(geometry,int4);
-DROP FUNCTION IF EXISTS AsSVG(geometry,int4,int4);
-DROP FUNCTION IF EXISTS AsText(geometry);
-DROP FUNCTION IF EXISTS AZimuth(geometry,geometry);
-DROP FUNCTION IF EXISTS BdPolyFromText(text, integer);
-DROP FUNCTION IF EXISTS BdMPolyFromText(text, integer);
-DROP FUNCTION IF EXISTS Boundary(geometry);
-DROP FUNCTION IF EXISTS Buffer(geometry,float8,integer);
-DROP FUNCTION IF EXISTS Buffer(geometry,float8);
-DROP FUNCTION IF EXISTS BuildArea(geometry);
-DROP FUNCTION IF EXISTS Centroid(geometry);
-DROP FUNCTION IF EXISTS Contains(geometry,geometry);
-DROP FUNCTION IF EXISTS ConvexHull(geometry);
-DROP FUNCTION IF EXISTS Crosses(geometry,geometry);
-DROP FUNCTION IF EXISTS Distance(geometry,geometry);
-DROP FUNCTION IF EXISTS Difference(geometry,geometry);
-DROP FUNCTION IF EXISTS Dimension(geometry);
-DROP FUNCTION IF EXISTS Disjoint(geometry,geometry);
-DROP FUNCTION IF EXISTS Distance_Sphere(geometry,geometry);
-DROP FUNCTION IF EXISTS Distance_Spheroid(geometry,geometry,spheroid);
-DROP FUNCTION IF EXISTS DropBBox(geometry);
-DROP FUNCTION IF EXISTS Dump(geometry);
-DROP FUNCTION IF EXISTS DumpRings(geometry);
-DROP FUNCTION IF EXISTS Envelope(geometry);
--- Extent related functions  --
-DROP FUNCTION IF EXISTS Estimated_Extent(text,text,text);
-DROP FUNCTION IF EXISTS Estimated_Extent(text,text);
-DROP FUNCTION IF EXISTS Expand(box2d,float8);
-DROP FUNCTION IF EXISTS Expand(box3d,float8);
-DROP FUNCTION IF EXISTS Expand(geometry,float8);
-DROP AGGREGATE IF EXISTS Extent(geometry);
-DROP FUNCTION IF EXISTS Find_Extent(text,text);
-DROP FUNCTION IF EXISTS Find_Extent(text,text,text);
---- End Extent related functions --
-
-DROP FUNCTION IF EXISTS EndPoint(geometry);
-DROP FUNCTION IF EXISTS ExteriorRing(geometry);
-DROP FUNCTION IF EXISTS Force_2d(geometry);
-DROP FUNCTION IF EXISTS Force_3d(geometry);
-DROP FUNCTION IF EXISTS Force_3dm(geometry);
-DROP FUNCTION IF EXISTS Force_3dz(geometry);
-DROP FUNCTION IF EXISTS Force_4d(geometry);
-DROP FUNCTION IF EXISTS Force_Collection(geometry);
-DROP FUNCTION IF EXISTS ForceRHR(geometry);
-DROP FUNCTION IF EXISTS GeomCollFromText(text, int4);
-DROP FUNCTION IF EXISTS GeomCollFromText(text);
-DROP FUNCTION IF EXISTS GeomCollFromWKB(bytea, int);
-DROP FUNCTION IF EXISTS GeomCollFromWKB(bytea);
-DROP FUNCTION IF EXISTS GeometryFromText(text);
-DROP FUNCTION IF EXISTS GeometryFromText(text,int4);
-DROP FUNCTION IF EXISTS GeomFromText(text);
-DROP FUNCTION IF EXISTS GeomFromText(text,int4);
-DROP FUNCTION IF EXISTS GeomFromWKB(bytea);
-DROP FUNCTION IF EXISTS GeomFromWKB(bytea, int);
-DROP FUNCTION IF EXISTS GeometryN(geometry,integer);
-DROP FUNCTION IF EXISTS GeomUnion(geometry,geometry);
-DROP FUNCTION IF EXISTS getbbox(geometry);
-DROP FUNCTION IF EXISTS getsrid(geometry);
-DROP FUNCTION IF EXISTS Intersects(geometry,geometry);
-DROP FUNCTION IF EXISTS IsRing(geometry);
-DROP FUNCTION IF EXISTS IsSimple(geometry);
-DROP FUNCTION IF EXISTS length_spheroid(geometry, spheroid);
-DROP FUNCTION IF EXISTS length2d_spheroid(geometry, spheroid);
-DROP FUNCTION IF EXISTS length3d_spheroid(geometry, spheroid);
-DROP FUNCTION IF EXISTS LineMerge(geometry);
-DROP FUNCTION IF EXISTS locate_along_measure(geometry, float8);
-DROP FUNCTION IF EXISTS MakeBox2d(geometry, geometry);
-DROP AGGREGATE IF EXISTS MakeLine(geometry);
-DROP FUNCTION IF EXISTS MakeLine(geometry, geometry);
-DROP FUNCTION IF EXISTS MakePolygon(geometry, geometry[]);
-DROP FUNCTION IF EXISTS MakePolygon(geometry);
-DROP FUNCTION IF EXISTS mem_size(geometry);
-DROP FUNCTION IF EXISTS MPolyFromWKB(bytea);
-DROP FUNCTION IF EXISTS multi(geometry);
-
-DROP FUNCTION IF EXISTS SetSRID(geometry, int4);
-DROP FUNCTION IF EXISTS SnapToGrid(geometry, float8, float8, float8, float8);
-DROP FUNCTION IF EXISTS SnapToGrid(geometry, float8);
-DROP FUNCTION IF EXISTS SnapToGrid(geometry, geometry, float8, float8, float8, float8);
-DROP FUNCTION IF EXISTS SnapToGrid(geometry, float8, float8);
-DROP FUNCTION IF EXISTS transform(geometry,integer);
-
--- ESRI compatibility functions --
-DROP FUNCTION IF EXISTS SE_Is3D(geometry);
-DROP FUNCTION IF EXISTS SE_IsMeasured(geometry);
-DROP FUNCTION IF EXISTS SE_Z(geometry);
-DROP FUNCTION IF EXISTS SE_M(geometry);
-DROP FUNCTION IF EXISTS SE_LocateBetween(geometry, float8, float8);
-DROP FUNCTION IF EXISTS SE_LocateAlong(geometry, float8);
-DROP FUNCTION IF EXISTS SE_EnvelopesIntersect(geometry,geometry);
-DROP FUNCTION IF EXISTS SE_AsShape(geometry);