find-requires
raw| 1 | #!/usr/bin/perl -w |
| 2 | use strict; |
| 3 | use IPC::Open2; |
| 4 | |
| 5 | # This quick script will run the native find-requires (first parameter) |
| 6 | # and then strip out packages we don't want listed. |
| 7 | |
| 8 | open2(\*IN, \*OUT, @ARGV); |
| 9 | print OUT while (<STDIN>); |
| 10 | close(OUT); |
| 11 | my $list = join('', <IN>); |
| 12 | |
| 13 | # Apply my filter(s): |
| 14 | $list =~ s/^.*JSONC.*//mg; |
| 15 | |
| 16 | print $list; |