]> granicus.if.org Git - postgis/commitdiff
Add postgis_drop_before and postgis_drop_after scripts back to extension upgrade.
authorRegina Obe <lr@pcorp.us>
Tue, 6 Sep 2016 03:49:00 +0000 (03:49 +0000)
committerRegina Obe <lr@pcorp.us>
Tue, 6 Sep 2016 03:49:00 +0000 (03:49 +0000)
Closes #3623

git-svn-id: http://svn.osgeo.org/postgis/trunk@15061 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/Makefile.in

index aa736516a9a756a7436a56c5cd521e2c21533299..c76773bfd85f8674bbe9aab052b31a8ad33d9cdb 100644 (file)
@@ -177,9 +177,8 @@ $(PG_OBJS): ../liblwgeom/.libs/liblwgeom.a ../libpgcommon/libpgcommon.a ../postg
        $(SQLPP) -I../libpgcommon $< | grep -v '^#' | \
        $(PERL) -lpe "s'MODULE_PATHNAME'\$$libdir/postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@'g;s'@extschema@\.''g" > $@
        
-postgis_upgrade_for_extension.sql: postgis_upgrade_for_extension.sql.in
-       $(SQLPP) -I../libpgcommon $< | grep -v '^#' | \
-       $(PERL) -lpe "s'MODULE_PATHNAME'\$$libdir/postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@'g" > $@
+postgis_upgrade_for_extension.sql: postgis_drop_before.sql postgis_upgrade_for_extension.sql.in postgis_drop_after.sql
+       cat $^ >> $@
        
 postgis_for_extension.sql: postgis.sql.in
        $(SQLPP) -I../libpgcommon $< | grep -v '^#' | \