This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
make_ext.pl: Use version.pm for version cmp
authorFather Chrysostomos <sprout@cpan.org>
Mon, 30 Oct 2017 20:37:21 +0000 (13:37 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 30 Oct 2017 20:38:03 +0000 (13:38 -0700)
commit301bcfdaa73a979264d6ee1845c40043ddd464eb
tree215a946651f6c69833dcfe948abb6d95c8a3754f
parentd1f1f359ff734b2a99fa0f1933c26ce5fb2bbb8f
make_ext.pl: Use version.pm for version cmp

We do a version comparison to determine whether Makefile.PL needs to
be run (in case a module version changed).  The simple string compar-
ison we have done up till now fails if the two version numbers differ
simply by a trailing zero (as currently happens with DB_File, which
is at version 1.840, with XS_VERSION set to 1.84.  Since version.pm’s
routines are compiled into miniperl, there is no reason not to do this
‘properly’, and it stops multiple ‘make’ invocations from rebuilding
DB_File again, and again....
make_ext.pl