<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -9,17 +9,23 @@ GetOptions (
     &quot;-w&quot;	=&gt; \$opt_w,
     ) or die &quot;usage: metagrep [-w] pattern\n&quot;;
 
+use Cwd qw(getcwd abs_path);
 use File::Find;
 
 my $pat = shift or die &quot;usage: metagrep pattern\n&quot;;
 $opt_w and $pat = &quot;\\b$pat\\b&quot;;
 $pat = qr/$pat/i;
 
+my $cwd    = getcwd;
+my $mcpath = abs_path &quot;/pro/3gl/CPAN/metaconfig&quot; or die &quot;cannot cd metaconfig\n&quot;;
+
+my $onmeta = $cwd =~ m{CPAN/meta[^/]+$} ? 1 : 0;
+
 my %dir; # I don't want a file for which any path component symlinks
 find (sub {
     -l and return;
     -d and $dir{$File::Find::name}++;
-    }, &quot;metaconfig&quot;);
+    }, $mcpath);
 
 print STDERR &quot;&lt;$pat&gt;\n&quot;;
 find (sub {
@@ -31,5 +37,7 @@ find (sub {
     #print STDERR &quot;$File::Find::dir - $_\n&quot;;
 
     open my $f, &quot;&lt;$_&quot; or die &quot;$File::Find::name: $!\n&quot;;
-    print map { &quot;$File::Find::name:$_&quot; } grep /$pat/, &lt;$f&gt;;
-    }, &quot;metaconfig&quot;);
+    my $fnm = $File::Find::name;
+    $fnm =~ s{^$cwd/}{};
+    print map { &quot;$fnm:$_&quot; } grep /$pat/, &lt;$f&gt;;
+    }, $mcpath);</diff>
      <filename>bin/metagrep</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a4b2cf0d0991e1486da6fd9dc47033526ffe8f95</id>
    </parent>
  </parents>
  <author>
    <name>H.Merijn Brand</name>
    <email>merijn@nb09.procura.nl</email>
  </author>
  <url>http://github.com/github/metaconfig/commit/2fcd353c9f553d123d58367aa8c0b396629b2b76</url>
  <id>2fcd353c9f553d123d58367aa8c0b396629b2b76</id>
  <committed-date>2008-09-29T08:48:45-07:00</committed-date>
  <authored-date>2008-09-29T08:48:45-07:00</authored-date>
  <message>metaconfig is now a symlink on my development env</message>
  <tree>3115ed6e4ae411508452fb7cc6f62fd72915736f</tree>
  <committer>
    <name>H.Merijn Brand</name>
    <email>merijn@nb09.procura.nl</email>
  </committer>
</commit>
