mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 14:31:20 +03:00
952d2a524c
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
20 lines
295 B
Perl
20 lines
295 B
Perl
#!/usr/bin/perl -w
|
|
|
|
use strict;
|
|
use Cwd qw(abs_path);
|
|
|
|
my %deps;
|
|
|
|
while (my $line = <>) {
|
|
chomp $line;
|
|
$line =~ s/[()]/ /g;
|
|
for my $word (split(/\s+/, $line)) {
|
|
$deps{abs_path($word)} = 1 if ($word =~ /\.a$/);
|
|
}
|
|
}
|
|
|
|
my @deps = keys %deps;
|
|
|
|
print join("\t\\\n\t", @deps), "\n";
|
|
|