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/build2
-rwxr-xr-xcommands/helpers/build14
-rwxr-xr-xcommands/pull18
3 files changed, 30 insertions, 4 deletions
diff --git a/commands/build b/commands/build
index 6c06133..71c69be 100755
--- a/commands/build
+++ b/commands/build
@@ -10,6 +10,6 @@ logfile=$logsdir/build-$timestamp.log
mkdir -p $logsdir
-PYTHONPATH=$commandsdir $helpersdir/build | tee -a $logfile
+PYTHONPATH=$commandsdir $helpersdir/build $@ | tee -a $logfile
exit ${PIPESTATUS[0]}
diff --git a/commands/helpers/build b/commands/helpers/build
index 1904955..a8405c8 100755
--- a/commands/helpers/build
+++ b/commands/helpers/build
@@ -1,10 +1,18 @@
#!/usr/bin/python -u
+import argparse
+
import common
from devbot import build
-from devbot import system
+
+parser = argparse.ArgumentParser()
+parser.add_argument("module", nargs="?", help="name of the module to build")
+args = parser.parse_args()
common.setup()
-system.check()
-build.build()
+
+if args.module:
+ build.build_one(args.module)
+else:
+ build.build()
diff --git a/commands/pull b/commands/pull
new file mode 100755
index 0000000..0900295
--- /dev/null
+++ b/commands/pull
@@ -0,0 +1,18 @@
+#!/usr/bin/python -u
+
+import argparse
+
+import common
+
+from devbot import build
+
+parser = argparse.ArgumentParser()
+parser.add_argument("module", nargs="?", help="name of the module to pull")
+args = parser.parse_args()
+
+common.setup()
+
+if args.module:
+ build.pull_one(args.module)
+else:
+ build.pull()