| Module-Install documentation | Contained in the Module-Install distribution. |
Module::Install::Deprecated - Warnings and help for deprecated commands
One of the nicest features of Module::Install is that as it improves, there is no need to take into account user compatibility, because users do not need to install Module::Install itself.
As a result, the Module::Install API changes at a faster rate than usual, and this results in deprecated commands.
Module::Install::Deprecated provides implementations of the deprecated
commands, so that when an author is upgrading their 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.
The c_files command has been changed to cc_files to reduce confusion
and keep all compiler commands within a consistent ff_foo naming scheme.
The inc_paths command has been changed to cc_inc_paths due to
confusion between Perl and C.
The lib_paths command has been changed to cc_lib_paths due to confusion
between Perl and C.
The lib_links command has been changed to cc_lib_links due to confusion
between Perl and C.
The optimize_flags command has been changed to cc_optimize_flags for
consistency reasons.
Adam Kennedy <adamk@cpan.org>
Copyright 2006 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Module-Install documentation | Contained in the Module-Install distribution. |
package Module::Install::Deprecated; use strict; use Module::Install::Base (); use vars qw{$VERSION @ISA $ISCORE}; BEGIN { $VERSION = '1.01'; @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__