aboutsummaryrefslogtreecommitdiffstats
path: root/mime
Commit message (Expand)AuthorAgeFilesLines
* Use field code %f for Exec field of gurpmi.addmedia as only local files are a...Anssi Hannula2007-09-211-1/+1
* further fix buildThierry Vignaud2007-09-201-1/+1
* add patterns since it was documented in old twikiThierry Vignaud2007-09-182-0/+2
* remove duplicate NoDisplay=trueAnssi Hannula2007-09-181-1/+0
* register application/x-urpmi-media MIME type again (#33436)Thierry Vignaud2007-09-184-0/+42
id='n1' href='#n1'>1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#!/usr/bin/perl

use MDK::Common;

my ($rel, $dest, $script) = @ARGV;

$rel =~ s!/?$!!;

foreach (`strace -efile perl -cw -I $rel $script 2>&1`) {
    my ($f) = /^open\("(.*?)",.*\)\s*=\s*\d+$/ or next;
    $f !~ m!/usr/lib/perl5/[^/]*/warnings.pm! or next;
    if (begins_with($f, $rel)) {
	print $f, "\t", $dest . substr($f, length($rel)), "\n";
    } elsif (begins_with($f, '/dev/')) {
	# skip
    } elsif (begins_with($f, '/')) {
	print "$f\n";
    }
}