Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2008-08-04 08:56:14 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2008-08-04 08:56:14 (GMT)
commit84a6268246101e489a4d199478650e34c60eb1d3 (patch)
treec14d1adb15b6295eb085c505e6cc90970c65d137 /scripts
parent44b582a7b5411059efeb291638c45281c742923d (diff)
Add a clear command.
Add icon-theme-utils to the fedora sysdeps.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/clear.py14
-rw-r--r--scripts/main.py1
2 files changed, 15 insertions, 0 deletions
diff --git a/scripts/clear.py b/scripts/clear.py
new file mode 100644
index 0000000..78d0475
--- /dev/null
+++ b/scripts/clear.py
@@ -0,0 +1,14 @@
+import shutil
+
+from jhbuild.commands import Command, register_command
+
+class cmd_clear(Command):
+
+ name = 'clear'
+ usage_args = ''
+
+ def run(self, config, options, args):
+ shutil.rmtree(config.checkoutroot)
+ shutil.rmtree(config.prefix)
+
+register_command(cmd_clear)
diff --git a/scripts/main.py b/scripts/main.py
index e1ff483..48ab3f0 100644
--- a/scripts/main.py
+++ b/scripts/main.py
@@ -26,6 +26,7 @@ import bundlemodule
import depscheck
import check
import report
+import clear
from config import Config