[88851] trunk/dports/math/crfpp/Portfile

hum at macports.org hum at macports.org
Fri Jan 13 05:13:21 PST 2012


Revision: 88851
          http://trac.macports.org/changeset/88851
Author:   hum at macports.org
Date:     2012-01-13 05:13:21 -0800 (Fri, 13 Jan 2012)
Log Message:
-----------
crfpp: correct escape notation in regex of reinplace.

Modified Paths:
--------------
    trunk/dports/math/crfpp/Portfile

Modified: trunk/dports/math/crfpp/Portfile
===================================================================
--- trunk/dports/math/crfpp/Portfile	2012-01-13 13:10:20 UTC (rev 88850)
+++ trunk/dports/math/crfpp/Portfile	2012-01-13 13:13:21 UTC (rev 88851)
@@ -42,7 +42,7 @@
     set modeldir /tmp
     foreach ex {JapaneseNE basenp chunking seg} {
         set dir ${sharedir}/example/${ex}
-        reinplace "s|../../|${prefix}/bin/|g"             ${destroot}${dir}/exec.sh
+        reinplace "s|\\.\\./\\.\\./|${prefix}/bin/|g"     ${destroot}${dir}/exec.sh
         foreach file {template train.data test.data} {
             reinplace "s| ${file}| ${dir}/${file}|g"      ${destroot}${dir}/exec.sh
         }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120113/4b1b363e/attachment.html>


More information about the macports-changes mailing list