1ExtUtils::Command::MM(3U)ser Contributed Perl DocumentatiEoxntUtils::Command::MM(3)
2
3
4

NAME

6       ExtUtils::Command::MM - Commands for the MM's to use in Makefiles
7

SYNOPSIS

9         perl "-MExtUtils::Command::MM" -e "function" "--" arguments...
10

DESCRIPTION

12       FOR INTERNAL USE ONLY!  The interface is not stable.
13
14       ExtUtils::Command::MM encapsulates code which would otherwise have to
15       be done with large "one" liners.
16
17       Any $(FOO) used in the examples are make variables, not Perl.
18
19       test_harness
20             test_harness($verbose, @test_libs);
21
22           Runs the tests on @ARGV via Test::Harness passing through the
23           $verbose flag.  Any @test_libs will be unshifted onto the test's
24           @INC.
25
26           @test_libs are run in alphabetical order.
27
28       pod2man
29             pod2man( '--option=value',
30                      $podfile1 => $manpage1,
31                      $podfile2 => $manpage2,
32                      ...
33                    );
34
35             # or args on @ARGV
36
37           pod2man() is a function performing most of the duties of the
38           pod2man program.  Its arguments are exactly the same as pod2man as
39           of 5.8.0 with the addition of:
40
41               --perm_rw   octal permission to set the resulting manpage to
42
43           And the removal of:
44
45               --verbose/-v
46               --help/-h
47
48           If no arguments are given to pod2man it will read from @ARGV.
49
50           If Pod::Man is unavailable, this function will warn and return
51           undef.
52
53       warn_if_old_packlist
54             perl "-MExtUtils::Command::MM" -e warn_if_old_packlist <somefile>
55
56           Displays a warning that an old packlist file was found.  Reads the
57           filename from @ARGV.
58
59       perllocal_install
60               perl "-MExtUtils::Command::MM" -e perllocal_install
61                   <type> <module name> <key> <value> ...
62
63               # VMS only, key|value pairs come on STDIN
64               perl "-MExtUtils::Command::MM" -e perllocal_install
65                   <type> <module name> < <key>|<value> ...
66
67           Prints a fragment of POD suitable for appending to perllocal.pod.
68           Arguments are read from @ARGV.
69
70           'type' is the type of what you're installing.  Usually 'Module'.
71
72           'module name' is simply the name of your module.  (Foo::Bar)
73
74           Key/value pairs are extra information about the module.  Fields
75           include:
76
77               installed into      which directory your module was out into
78               LINKTYPE            dynamic or static linking
79               VERSION             module version number
80               EXE_FILES           any executables installed in a space separated
81                                   list
82
83       uninstall
84               perl "-MExtUtils::Command::MM" -e uninstall <packlist>
85
86           A wrapper around ExtUtils::Install::uninstall().  Warns that
87           uninstallation is deprecated and doesn't actually perform the
88           uninstallation.
89
90       test_s
91              perl "-MExtUtils::Command::MM" -e test_s <file>
92
93           Tests if a file exists and is not empty (size > 0).  Exits with 0
94           if it does, 1 if it does not.
95
96       cp_nonempty
97             perl "-MExtUtils::Command::MM" -e cp_nonempty <srcfile> <dstfile> <perm>
98
99           Tests if the source file exists and is not empty (size > 0). If it
100           is not empty it copies it to the given destination with the given
101           permissions.
102
103
104
105perl v5.30.0                      2019-09-11          ExtUtils::Command::MM(3)
Impressum