/usr/share/perl5/Module/Install/Deprecated.pm is in libmodule-install-perl 1.19-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | package Module::Install::Deprecated;
use strict;
use Module::Install::Base ();
use vars qw{$VERSION @ISA $ISCORE};
BEGIN {
$VERSION = '1.19';
@ISA = 'Module::Install::Base';
$ISCORE = 1;
}
#####################################################################
# Previous API for Module::Install::Compoler
sub c_files {
warn "c_files has been changed to cc_files to reduce confusion and keep all compiler commands as cc_";
shift()->cc_files(@_);
}
sub inc_paths {
warn "inc_paths has been changed to cc_inc_paths due to confusion between Perl and C";
shift()->cc_inc_paths(@_);
}
sub lib_paths {
warn "lib_paths has been changed to cc_lib_paths due to confusion between Perl and C";
shift()->cc_lib_paths(@_);
}
sub lib_links {
warn "lib_links has been changed to cc_lib_links due to confusion between Perl and C";
shift()->cc_lib_links(@_);
}
sub optimize_flags {
warn "optimize_flags has been changed to cc_optimize_flags for consistency reasons";
shift()->cc_optimize_flags(@_);
}
1;
__END__
=pod
=head1 NAME
Module::Install::Deprecated - Warnings and help for deprecated commands
=head1 DESCRIPTION
One of the nicest features of L<Module::Install> is that as it improves,
there is no need to take into account user compatibility, because users do
not need to install L<Module::Install> itself.
As a result, the L<Module::Install> API changes at a faster rate than usual,
and this results in deprecated commands.
C<Module::Install::Deprecated> provides implementations of the deprecated
commands, so that when an author is upgrading their L<Module::Install> and
they are using a deprecated command they will be told that the command has
been deprecated, and what the author should use instead.
This extension should NEVER end up bundled into the distribution tarball.
=head1 COMMANDS
=head2 c_files
The C<c_files> command has been changed to C<cc_files> to reduce confusion
and keep all compiler commands within a consistent C<ff_foo> naming scheme.
=head2 inc_paths
The C<inc_paths> command has been changed to C<cc_inc_paths> due to
confusion between Perl and C.
=head2 lib_paths
The C<lib_paths> command has been changed to C<cc_lib_paths> due to confusion
between Perl and C.
=head2 lib_links
The C<lib_links> command has been changed to C<cc_lib_links> due to confusion
between Perl and C.
=head2 optimize_flags
The C<optimize_flags> command has been changed to C<cc_optimize_flags> for
consistency reasons.
=head1 AUTHORS
Adam Kennedy E<lt>adamk@cpan.orgE<gt>
=head1 SEE ALSO
L<Module::Install>
=head1 COPYRIGHT
Copyright 2006 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
See L<http://www.perl.com/perl/misc/Artistic.html>
=cut
|