Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rwxr-xr-xcommands/build8
-rwxr-xr-xcommands/clean8
-rw-r--r--commands/common.py5
-rwxr-xr-xcommands/run9
-rwxr-xr-xcommands/shell8
5 files changed, 37 insertions, 1 deletions
diff --git a/commands/build b/commands/build
new file mode 100755
index 0000000..99f3048
--- /dev/null
+++ b/commands/build
@@ -0,0 +1,8 @@
+#!/usr/bin/python -u
+
+import common
+
+from devbot import build
+
+common.setup()
+build.build()
diff --git a/commands/clean b/commands/clean
new file mode 100755
index 0000000..fc29466
--- /dev/null
+++ b/commands/clean
@@ -0,0 +1,8 @@
+#!/usr/bin/python
+
+import common
+
+from devbot import build
+
+common.setup()
+build.clean()
diff --git a/commands/common.py b/commands/common.py
index 2836291..6f676a6 100644
--- a/commands/common.py
+++ b/commands/common.py
@@ -9,4 +9,7 @@ from devbot import system
from devbot import config
def setup():
- config.set_path(os.path.join(base_path, "scripts", "deps"))
+ config.set_config_dir(os.path.join(base_path, "scripts"))
+ config.set_install_dir(os.path.join(base_path, "install"))
+ config.set_source_dir(os.path.join(base_path, "source"))
+ config.set_build_dir(os.path.join(base_path, "build"))
diff --git a/commands/run b/commands/run
new file mode 100755
index 0000000..b1f76aa
--- /dev/null
+++ b/commands/run
@@ -0,0 +1,9 @@
+#!/usr/bin/python
+
+import common
+import sys
+
+from devbot import run
+
+common.setup()
+run.run(sys.argv[1:])
diff --git a/commands/shell b/commands/shell
new file mode 100755
index 0000000..e588e06
--- /dev/null
+++ b/commands/shell
@@ -0,0 +1,8 @@
+#!/usr/bin/python
+
+import common
+
+from devbot import shell
+
+common.setup()
+shell.start()