Re: [Module-build-general] PATCH: make purge/remove Makefile
Status: Beta
Brought to you by:
kwilliams
From: Brian I. <in...@tt...> - 2003-02-20 06:06:22
|
On 19/02/03 21:27 -0800, Brian Ingerson wrote: > Here's another patch. I *always* use 'make purge' and I miss it in M::B > so I'm suggesting adding it. Very small change. > > I also noticed you weren't deleting the Makefile; a task that any > self-respecting realclean is expected to do :) > > Cheers, Brian And here it is! :\ Only in Module-Build-0.15: .Makefile.PL.swp diff -ru Module-Build-0.15-orig/lib/Module/Build/Base.pm Module-Build-0.15/lib/Module/Build/Base.pm --- Module-Build-0.15-orig/lib/Module/Build/Base.pm Fri Jan 17 12:53:11 2003 +++ Module-Build-0.15/lib/Module/Build/Base.pm Wed Feb 19 21:21:15 2003 @@ -771,8 +771,13 @@ sub ACTION_realclean { my ($self) = @_; $self->depends_on('clean'); - $self->delete_filetree($self->{properties}{config_dir}, $self->{properties}{build_script}); + $self->delete_filetree($self->{properties}{config_dir}, + $self->{properties}{build_script}, + 'Makefile', + ); } + +*ACTION_purge = \&ACTION_realclean; sub ACTION_dist { my ($self) = @_; diff -ru Module-Build-0.15-orig/lib/Module/Build.pm Module-Build-0.15/lib/Module/Build.pm --- Module-Build-0.15-orig/lib/Module/Build.pm Fri Jan 17 13:11:05 2003 +++ Module-Build-0.15/lib/Module/Build.pm Wed Feb 19 20:47:18 2003 @@ -115,14 +115,15 @@ 'actions'. In this case the actions run are 'build' (the default action), 'test', and 'install'. Actions defined so far include: - build fakeinstall - clean help - diff install - dist manifest - distcheck realclean - distclean skipcheck - distdir test - disttest testdb + build help + clean install + diff manifest + dist manifypods + distcheck purge + distclean realclean + distdir skipcheck + disttest test + fakeinstall testdb You can run the 'help' action for a complete list of actions. @@ -694,6 +695,10 @@ C<_build> directory and the C<Build> script. If you run the C<realclean> action, you are essentially starting over, so you will have to re-create the C<Build> script again. + +=item purge + +An alias for realclean. =item diff |