TITLE
convert-to-almanac - Convert Date::Manip tests to Date::ManipX::Almanac
SYNOPSIS
convert-to-almanac
convert-to-almanac ../Date-Manip-6.85/t
convert-to-almanac --help
convert-to-almanac --version
OPTIONS
--help
This option displays the documentation for this script. The script then exits.
--verbose
If this Boolean option is true, the name of any file actually modified is written to standard output.
The default is --no-verbose
.
--version
This option displays the version of this script. The script then exits.
DETAILS
This Perl script is designed to read all the files in a Date-Manip
test directory and modify them for use with Date-ManipX-Almanac
.
The path to the Date-Manip
test directory is specified on the command line. If not specified, the path defaults to ref/Date-Manip/t.
This modification consists of:
Replacing 'Date::Manip' with 'Date::ManipX::Almanac';
Replacing 'Date::Manip::Date' with 'Date::ManipX::Almanac::Date';
Patching tests.pl to turn language load failure into skip_all;
Patching obj.t to pass $date->dmd() to Date::Manip::TZ->new() where appropriate.
This script is (or at least should be) idempotent. That is, if run twice the second run should do nothing.
AUTHOR
Thomas R. Wyant, III wyant at cpan dot org
COPYRIGHT AND LICENSE
Copyright (C) 2021-2022 by Thomas R. Wyant, III
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the Artistic License 1.0 at https://www.perlfoundation.org/artistic-license-10.html, and/or the Gnu GPL at http://www.gnu.org/licenses/old-licenses/gpl-1.0.txt.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.