From: Paul Ramsey Date: Thu, 31 May 2012 16:45:52 +0000 (+0000) Subject: Switch from sed to perl X-Git-Tag: 2.1.0beta2~953 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0679e2a0ed18215caed33d5f9ab56e67df9f21c4;p=postgis Switch from sed to perl git-svn-id: http://svn.osgeo.org/postgis/trunk@9840 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/Makefile.in b/postgis/Makefile.in index 4fabcbb0f..2fd681bcc 100644 --- a/postgis/Makefile.in +++ b/postgis/Makefile.in @@ -130,7 +130,7 @@ $(PG_OBJS): ../liblwgeom/.libs/liblwgeom.a ../libpgcommon/libpgcommon.a ../postg # Borrow the $libdir substitution from PGXS but customise by adding the version number %.sql: %.sql.in - sed 's,MODULE_PATHNAME,$$libdir/postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@,g' $< >$@ + $(PERL) -lpe "s'MODULE_PATHNAME'\$$libdir/postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@'g" $< > $@ postgis_upgrade_20_minor.sql.in: postgis_drop_before.sql postgis.sql postgis_drop_after.sql cat $^ > $@