Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make clean and realclean look and act similarly
  • Loading branch information
Geoffrey Broadwell committed Oct 20, 2012
1 parent 1911a88 commit b1d60f5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bench
Expand Up @@ -54,7 +54,14 @@ multi MAIN ('setup') {

#= Clean up generated files and directories
multi MAIN ('clean') {
run < rm -rf components results >;
rmtree $_ for < components results >;
}

#= Simulate the behavior of `git clean -dxf`
sub rmtree ($dir, :$noisy = True) {
return unless $dir.IO.d;
say "Removing $dir" if $noisy;
run < rm -rf >, $dir;
}

#= Remove *everything* not part of the core benchmark tree
Expand Down

0 comments on commit b1d60f5

Please sign in to comment.