Reworked CleanGenerated, more verbose now

This commit is contained in:
Davide Andreoli 2015-01-04 13:45:42 +01:00
parent 0873394260
commit 6d2e2e9d8e
1 changed files with 8 additions and 8 deletions

View File

@ -115,17 +115,17 @@ class CleanGenerated(Command):
def run(self):
for lib in ("eo", "evas", "ecore", "ecore_x", "edje", "edje/edit",
"emotion", "elementary", "ethumb", "utils"):
for lib in ("eo", "evas", "ecore", "ecore_x", "edje", "emotion",
"elementary", "ethumb", "dbus_mainloop", "utils"):
lib_path = os.path.join(script_path, "efl", lib)
for root, dirs, files in os.walk(lib_path):
for f in files:
if f.endswith(".c") or f.endswith(".html"):
os.remove(os.path.join(root, f))
dbus_ml_path = os.path.join(script_path, "efl", "dbus_mainloop",
if os.path.exists(dbus_ml_path):
if f.endswith((".c", ".html")) and f != "e_dbus.c":
self.remove(os.path.join(root, f))
def remove(self, fullpath):
print("removing %s" % fullpath.replace(script_path, "").lstrip('/'))
# === use cython or pre-generated C files ===