Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move RUN_CLEAN_TARGET_FILES to separate script
And clean up the logic a lot. The way it looked before it was probably broken in multiple ways: - PERL6 and PERL6_DEBUG were never deleted, the line was missing a folder. - The 'verbose' logic didn't work. There is no 'verbose' variable specified anywhere.
- Loading branch information
Showing
3 changed files
with
28 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env raku | ||
|
||
unit sub MAIN(Str $folder, *@files where @files.so, Bool :$v); | ||
|
||
for @files { | ||
given ( $folder.IO.add($_) ) { | ||
say 'rm -f ' ~ .Str if $v; | ||
.unlink if .e; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters