[23717] users/pipping/test.pl

source_changes at macosforge.org source_changes at macosforge.org
Sat Apr 7 09:25:17 PDT 2007


Revision: 23717
          http://trac.macosforge.org/projects/macports/changeset/23717
Author:   pipping at macports.org
Date:     2007-04-07 09:25:16 -0700 (Sat, 07 Apr 2007)

Log Message:
-----------
 * anchor /Portfile to end of line in $portfile
 * replace \W with \s
 * ignore whatever comes before 'depends_'

Modified Paths:
--------------
    users/pipping/test.pl

Modified: users/pipping/test.pl
===================================================================
--- users/pipping/test.pl	2007-04-07 16:15:33 UTC (rev 23716)
+++ users/pipping/test.pl	2007-04-07 16:25:16 UTC (rev 23717)
@@ -26,12 +26,12 @@
       s{;\s*#.*}{}g;
 
       if ($_ =~ m{
-        \Wdepends_(?:build|run|lib)(?:-(?:append|delete))?
+        depends_(?:build|run|lib)(?:-(?:append|delete))?
         .*
-        (?:port|(?:path|lib|bin):[^:]+):${port}(?:\W|$)}x)
+        (?:port|(?:path|lib|bin):[^:]+):${port}(?:\s|$)}x)
       {
         # remove trailing '/Portfile' in the path
-        $portfile =~ s{\/Portfile}{};
+        $portfile =~ s{\/Portfile$}{};
         print "$portfile\n";
       }
     }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070407/fe1bf9c2/attachment.html


More information about the macports-changes mailing list