mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-26 08:41:47 -07:00
Use rmtree instead of unlink: clang creates directories.
Copied from Perforce Change: 182211 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
e5d7987978
commit
f9c1a044ac
1 changed files with 3 additions and 1 deletions
|
|
@ -7,6 +7,8 @@
|
|||
|
||||
1;
|
||||
|
||||
use File::Path qw(rmtree);
|
||||
|
||||
sub clib {
|
||||
my $success = 1;
|
||||
my $tlfile;
|
||||
|
|
@ -50,7 +52,7 @@ sub objpurge {
|
|||
}
|
||||
&logcomment("Cleaning out old object files.");
|
||||
foreach (readdir(DIR)) {
|
||||
unless ($_ eq "." || $_ eq ".." || unlink $obj_dir."/".$_) {
|
||||
unless ($_ eq "." || $_ eq ".." || rmtree $obj_dir."/".$_) {
|
||||
&logcomment(" ... but failed to delete $_.");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue