Module::Install::Deprecated - Warnings and help for deprecated commands


Module-Install documentation Contained in the Module-Install distribution.

Index


Code Index:

NAME

Top

Module::Install::Deprecated - Warnings and help for deprecated commands

DESCRIPTION

Top

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.

COMMANDS

Top

c_files

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.

inc_paths

The inc_paths command has been changed to cc_inc_paths due to confusion between Perl and C.

lib_paths

The lib_paths command has been changed to cc_lib_paths due to confusion between Perl and C.

optimize_flags

The optimize_flags command has been changed to cc_optimize_flags for consistency reasons.

AUTHORS

Top

Adam Kennedy <adamk@cpan.org>

SEE ALSO

Top

Module::Install

COPYRIGHT

Top


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__