[Module-build-general] [PATCH] Always clean .c and .bs files
Status: Beta
Brought to you by:
kwilliams
|
From: Dave R. <au...@ur...> - 2003-04-26 16:36:03
|
The current code only adds these to the cleanup if they are not up to date, but if for some reason they already exist and are up to date, they should still be removed on cleanup. Patch below sig. I'm not sure exactly how to test this though. /*======================= House Absolute Consulting www.houseabsolute.com =======================*/ --- Base.pm.~1.97.~ 2003-04-24 15:40:47.000000000 -0500 +++ Base.pm 2003-04-26 11:34:36.000000000 -0500 @@ -1355,8 +1355,8 @@ (my $file_base = $file) =~ s/\.[^.]+$//; # .xs -> .c + $self->add_to_cleanup("$file_base.c"); unless ($self->up_to_date($file, "$file_base.c")) { - $self->add_to_cleanup("$file_base.c"); $self->compile_xs($file); } @@ -1372,8 +1372,8 @@ } # .xs -> .bs + $self->add_to_cleanup("$file_base.bs"); unless ($self->up_to_date($file, "$file_base.bs")) { - $self->add_to_cleanup("$file_base.bs"); require ExtUtils::Mkbootstrap; print "ExtUtils::Mkbootstrap::Mkbootstrap('$file_base')\n"; ExtUtils::Mkbootstrap::Mkbootstrap($file_base); # Original had $BSLOADLIBS - what's that? |