On Sun, Nov 02, 2003 at 10:12:55PM +0000, Tim Bunce wrote:
> Sounds good. But doesn't MakeMaker have some pre-canned "compare and
> move only if different" logic that might be useful here?
Good idea. manicopy() uses cp_if_diff(). I can use File::Compare. I've
made sure its untouched if there's no change.
-$(NOECHO) $(PERLRUN) -MExtUtils::Command -MFile::Compare -e 'compare(@A
RGV) != 0 ? (mv or warn "Cannot move META_new.yml to META.yml\n") : unlink(shift
);' META_new.yml META.yml
Hopefully this doesn't blow over the exec length limit on VMS.
--
Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/
I've just gone through a lung-crushing breakup with my blender and I don't
think I should screw my forehead alone tonight.