Skip to content

Commit 4fe0f60

Browse files
committedSep 26, 2015
Revert "Use shutil rather then rm -rf command."
This reverts commit d8fd4fe.
1 parent 0309986 commit 4fe0f60

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

Diff for: ‎make.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import argparse
66
import subprocess
77
import struct
8-
import shutil
98

109
from mibuild.tools import write_to_file
1110
from migen.util.misc import autotype
@@ -137,8 +136,7 @@ def _get_args():
137136
actions["build-headers"] = True
138137

139138
if actions["clean"]:
140-
shutil.rmtree("build") # Need shell for the build/* globbing
141-
os.mkdir("build")
139+
subprocess.check_call("rm -rvf build/*", shell=True) # Need shell for the build/* globbing
142140
subprocess.check_call(["make", "-C", os.path.join("software", "libcompiler-rt"), "clean"])
143141
subprocess.check_call(["make", "-C", os.path.join("software", "libbase"), "clean"])
144142
subprocess.check_call(["make", "-C", os.path.join("software", "libnet"), "clean"])

0 commit comments

Comments
 (0)
Please sign in to comment.