From: Regina Obe Date: Sat, 8 Jun 2013 20:28:01 +0000 (+0000) Subject: #2356: quick fix for extensions not building anymore because of raster upgrade file... X-Git-Tag: 2.1.0beta3~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=abbd1005100a92f368b95ff3bc1ffb048ee1007e;p=postgis #2356: quick fix for extensions not building anymore because of raster upgrade file change from rtpostgis_upgrade_20_minor.sql to rtpostgis_upgrade_20_21.sql Also got rid of some commented out code git-svn-id: http://svn.osgeo.org/postgis/trunk@11540 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/extensions/postgis/Makefile.in b/extensions/postgis/Makefile.in index 74a66f3ff..1da246005 100644 --- a/extensions/postgis/Makefile.in +++ b/extensions/postgis/Makefile.in @@ -71,20 +71,13 @@ sql_bits/rtpostgis.sql: ../../raster/rt_pg/rtpostgis.sql # for casts that are being dropped we need to drop them # from extension only if they are in the existension so we use our postgis_extension_drop.. # so that it will silently fail if cast is not in extension -sql_bits/rtpostgis_upgrade_20_minor.sql: ../../raster/rt_pg/rtpostgis_upgrade_20_minor.sql +sql_bits/rtpostgis_upgrade_20_21.sql: ../../raster/rt_pg/rtpostgis_upgrade_20_21.sql sed -e 's/BEGIN;//g' -e 's/COMMIT;//g' \ -e 's/DROP FUNCTION _rename_raster_tables();/ALTER EXTENSION ${EXTENSION} DROP FUNCTION _rename_raster_tables();DROP FUNCTION _rename_raster_tables();/g' \ -e 's/DROP FUNCTION _drop_st_samealignment();/ALTER EXTENSION ${EXTENSION} DROP FUNCTION _drop_st_samealignment();DROP FUNCTION _drop_st_samealignment();/g' \ -e 's/DROP CAST\(.*\)/SELECT postgis_extension_drop_if_exists('\''$(EXTENSION)'\'', '\''DROP CAST \1'\'');DROP CAST \1/' \ $< > $@ -#can't use the one built because can't drop the postgis_version function -#leave out all casts, operators, types, tables, schemas -# sql_bits/postgis_upgrade_minor.sql: ../../postgis/postgis.sql -# sed -e '/^\(CREATE\|ALTER\) \(CAST\|OPERATOR\|TYPE\|TABLE\|SCHEMA\|DOMAIN\|TRIGGER\).*;/d' \ -# -e '/^\(CREATE\|ALTER\) \(CAST\|OPERATOR\|TYPE\|TABLE\|SCHEMA\|DOMAIN\|TRIGGER\)/,/\;/d' \ -# -e 's/BEGIN;//g' -e 's/COMMIT;//g' \ -# $< > $@ #don't drop casts just yet since we don't have provision to remove from extension yet #need to also drop temporary functions from extenions since it gets auto-added sql_bits/postgis_upgrade_20_21.sql: ../../postgis/postgis_upgrade_20_21.sql @@ -104,7 +97,7 @@ sql_bits/raster_comments.sql: ../../doc/raster_comments.sql #postgis_raster_upgrade_minor.sql is the one that contains both postgis AND raster #TODO: come up with a better name #TODO: what about postgis_drop_after.sql ? where does it fit ?? -sql_bits/postgis_raster_upgrade_minor.sql: ../postgis_extension_helper.sql sql_bits/remove_from_extension.sql.in sql_bits/postgis_upgrade_20_21.sql sql_bits/rtpostgis_upgrade_20_minor.sql ../../doc/raster_comments.sql ../../doc/postgis_comments.sql ../postgis_extension_helper_uninstall.sql +sql_bits/postgis_raster_upgrade_minor.sql: ../postgis_extension_helper.sql sql_bits/remove_from_extension.sql.in sql_bits/postgis_upgrade_20_21.sql sql_bits/rtpostgis_upgrade_20_21.sql ../../doc/raster_comments.sql ../../doc/postgis_comments.sql ../postgis_extension_helper_uninstall.sql cat $^ > $@ # sql_bits/rtpostgis--unpackaged.sql: ../../raster/rt_pg/rtpostgis.sql