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

raster/test/regress/Makefile.in

index 359f92e62854c564e94a4db3fdd2976edface385..f20b339921ef0eb542986b9c7c4f33fdece40d71 100644 (file)
@@ -12,6 +12,7 @@
 #############################################################################
 
 POSTGIS_SRC=../../..
+PERL=@PERL@
 
 # MingW hack: rather than use PGSQL_BINDIR directly, we change
 # to the directory and then use "pwd" to return the path. This
@@ -145,7 +146,8 @@ clean:
        $(RM) -f rtpostgis.sql
 
 rtpostgis.sql: ../../rt_pg/rtpostgis.sql
-       sed 's,$$libdir,$(REGRESS_INSTALLDIR)/lib,g' ../../rt_pg/rtpostgis.sql > rtpostgis.sql
+       $(PERL) -lpe "s'\\\$$libdir'$(REGRESS_INSTALLDIR)/lib'g" $< > $@
+
 
 check: 
        $(MAKE) -C ../../../regress staged-install