]> granicus.if.org Git - postgis/commitdiff
Switch from sed to perl
authorPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 31 May 2012 16:45:52 +0000 (16:45 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 31 May 2012 16:45:52 +0000 (16:45 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9840 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/Makefile.in

index 4fabcbb0fd64dfd7b6426dfb4afda270652257f5..2fd681bcce39a49cba08fc37a5e8a7f2cc5ee443 100644 (file)
@@ -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 $^ > $@