From: Shawn M Moore Date: Fri, 3 Jul 2009 00:13:36 +0000 (-0400) Subject: Only unlink Mouse::Tiny if it exists, otherwise autodie pitches a fit X-Git-Tag: 0.32~66 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=commitdiff_plain;h=e0541d44a603aa8deea3eeef22c486a9c5a15c34 Only unlink Mouse::Tiny if it exists, otherwise autodie pitches a fit --- diff --git a/Changes b/Changes index 4342132..d9754d8 100644 --- a/Changes +++ b/Changes @@ -4,6 +4,9 @@ Revision history for Mouse * Alter Makefile.PL so in author mode we generate lib/Mouse/Tiny.pm on every run so that 'make dist' actually does what it's meant to (mst) + * Only unlink Mouse::Tiny if it exists, otherwise autodie pitches + a fit (miyagawa) + 0.27 Thu Jul 2 15:17:37 2009 * Doc updates (Sartak) diff --git a/author/generate-mouse-tiny.pl b/author/generate-mouse-tiny.pl index 1cc4237..469032a 100755 --- a/author/generate-mouse-tiny.pl +++ b/author/generate-mouse-tiny.pl @@ -6,7 +6,8 @@ use File::Slurp 'slurp'; use List::MoreUtils 'uniq'; use autodie; -unlink 'lib/Mouse/Tiny.pm'; +unlink 'lib/Mouse/Tiny.pm' + if -e 'lib/Mouse/Tiny.pm'; my @files;