[119731] trunk/doc-new/guide/xml/portfile-livecheck.xml

jmr at macports.org jmr at macports.org
Sun May 4 23:00:17 PDT 2014


Revision: 119731
          https://trac.macports.org/changeset/119731
Author:   jmr at macports.org
Date:     2014-05-04 23:00:17 -0700 (Sun, 04 May 2014)
Log Message:
-----------
guide: fix unquoted brackets in livecheck.regex example

Modified Paths:
--------------
    trunk/doc-new/guide/xml/portfile-livecheck.xml

Modified: trunk/doc-new/guide/xml/portfile-livecheck.xml
===================================================================
--- trunk/doc-new/guide/xml/portfile-livecheck.xml	2014-05-05 04:59:50 UTC (rev 119730)
+++ trunk/doc-new/guide/xml/portfile-livecheck.xml	2014-05-05 06:00:17 UTC (rev 119731)
@@ -177,7 +177,8 @@
       <listitem>
         <para>Regular expression to parse the resource for regex checks. Be
         sure to use a regular expression grouping around the version
-        component.</para>
+        component. Also remember that square brackets need to be quoted because Tcl
+        otherwise interprets them as a procedure call.</para>
 
         <itemizedlist>
           <listitem>
@@ -187,7 +188,7 @@
           <listitem>
             <para>Example:</para>
 
-            <programlisting>livecheck.regex     4th-([a-z0-9.]+)-unix${extract.suffix}</programlisting>
+            <programlisting>livecheck.regex     4th-(\[a-z0-9.\]+)-unix${extract.suffix}</programlisting>
 
             <!-- TODO: add more examples -->
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140504/0e2686bd/attachment.html>


More information about the macports-changes mailing list