Debian Codegraph @

bin/sitepods

raw
1 #!/usr/bin/env perl
2 # sitepods - 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.1.0';
14
15 open(PROG, "$^X -S $Bin/modpods |") || die "can't fork: $!";
16
17 while (<PROG>) {
18 if ( $^O eq "MSWin32" ) {
19 print if /\/site\//;
20 } else {
21 print if /site_perl/;
22 }
23 }
24
25 __END__
26
27 =head1 NAME
28
29 sitepods - print out the paths to the modules that this site added
30
31 =head1 DESCRIPTION
32
33 This program shows the paths to module pods that are in
34 the I<site_perl> directories.
35
36 =head1 EXAMPLES
37
38 $ sitepods
39 /usr/local/devperl/lib/site_perl/5.00554/i686-linux/XML/Parser/Expat.pm
40 /usr/local/devperl/lib/site_perl/5.00554/i686-linux/XML/Parser.pm
41
42 You can also run this using alternate perl binaries, like so:
43
44 $ oldperl -S sitepods
45 ....
46
47 =head1 SEE ALSO
48
49 faqpods(1), modpods(1), pods(1), podpath(1), and stdpod(1).
50
51 =head1 AUTHORS and COPYRIGHTS
52
53 Copyright (C) 1999 Tom Christiansen.
54
55 Copyright (C) 2006-2018 Mark Leighton Fisher.
56
57 =head1 LICENSE
58
59 This is free software; you can redistribute it and/or modify it
60 under the terms of either:
61 (a) the GNU General Public License as published by the Free
62 Software Foundation; either version 1, or (at your option) any
63 later version, or
64 (b) the Perl "Artistic License".
65 (This is the Perl 5 licensing scheme.)
66
67 Please note this is a change from the
68 original pmtools-1.00 (still available on CPAN),
69 as pmtools-1.00 were licensed only under the
70 Perl "Artistic License".