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/build14
-rwxr-xr-xcommands/helpers/build8
2 files changed, 17 insertions, 5 deletions
diff --git a/commands/build b/commands/build
index 99f3048..b90f0fa 100755
--- a/commands/build
+++ b/commands/build
@@ -1,8 +1,12 @@
-#!/usr/bin/python -u
+#!/bin/bash
-import common
+commandsdir=`dirname "$0"`
+rootdir=`dirname "$commandsdir"`
+helpersdir=$commandsdir/helpers
-from devbot import build
+timestamp=`date +%Y%m%d-%H%M%S`
+logfile=$rootdir/logs/build-$timestamp.log
-common.setup()
-build.build()
+PYTHONPATH=$commandsdir $helpersdir/build | tee -a $logfile
+
+exit ${PIPESTATUS[0]}
diff --git a/commands/helpers/build b/commands/helpers/build
new file mode 100755
index 0000000..99f3048
--- /dev/null
+++ b/commands/helpers/build
@@ -0,0 +1,8 @@
+#!/usr/bin/python -u
+
+import common
+
+from devbot import build
+
+common.setup()
+build.build()