Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-14 16:50:21 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-14 16:50:21 (GMT)
commit9d88d6a8c38e1a35f5749d06214f92513414ed67 (patch)
tree32a7aeb593bb30fb2d9cd7df03438118576448ad /commands
parent66dc2e7ea7011ae63e1d404ebffeaa7782a7f2f5 (diff)
Refactor dnbuild into devbot
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()