Skip to content

Commit

Permalink
Revert "Use shutil rather then rm -rf command."
Browse files Browse the repository at this point in the history
This reverts commit d8fd4fe.
  • Loading branch information
sbourdeauducq committed Sep 26, 2015
1 parent 0309986 commit 4fe0f60
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions make.py
Expand Up @@ -5,7 +5,6 @@
import argparse
import subprocess
import struct
import shutil

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

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

0 comments on commit 4fe0f60

Please sign in to comment.