Debian Codegraph @

bin/stdpods

raw
1 #!/usr/bin/env perl
2 # stdpods - print out the paths to the modules
3 # that this site added
4 #
5 # this is a perl program not a shell script
6 # so that we can use the correct perl
7
8 # ------ pragmas
9 use strict;
10 use warnings;
11 use FindBin qw($Bin);
12
13 our $VERSION = '2.0.0';
14
15 system("$^X -S $Bin/basepods");
16 open(PROG, "$^X -S $Bin/modpods |") || die "can't fork: $!";
17 while (<PROG>) {
18 if ( $^O eq "MSWin32" ) {
19 print unless /\/site\//;
20 } else {
21 print unless /site_perl/;
22 }
23 }
24 close PROG;
25
26
27 __END__
28
29 =head1 NAME
30
31 stdpods - print out the paths to the modules that came with Perl
32
33 =head1 DESCRIPTION
34
35 This program shows the paths to module pods that are I<not> in
36 the I<site_perl> directories. This is the documentation that
37 came with the standard system.
38
39 =head1 EXAMPLES
40
41 $ podgrep closure `stdpods`
42
43 =head1 SEE ALSO
44
45 podgrep(1), faqpods(1), modpods(1), pods(1), podpath(1), and sitepod(1).
46
47 =head1 AUTHORS and COPYRIGHTS
48
49 Copyright (C) 1999 Tom Christiansen.
50
51 Copyright (C) 2006-2014 Mark Leighton Fisher.
52
53 =head1 LICENSE
54
55 This is free software; you can redistribute it and/or modify it
56 under the terms of either:
57 (a) the GNU General Public License as published by the Free
58 Software Foundation; either version 1, or (at your option) any
59 later version, or
60 (b) the Perl "Artistic License".
61 (This is the Perl 5 licensing scheme.)
62
63 Please note this is a change from the
64 original pmtools-1.00 (still available on CPAN),
65 as pmtools-1.00 were licensed only under the
66 Perl "Artistic License".