Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands/build
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-16 08:50:36 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-16 08:56:48 (GMT)
commitc7be363ef34d1228ad3d1d1aeba4911fbde1242f (patch)
tree6bd8a513755309152a78390b880a99442306959f /commands/build
parent2f69a407f93d8baff25ea15a500427fdc79e9fdf (diff)
Move logging out of the makefile
So that it's possible to run the same scripts from the shell.
Diffstat (limited to 'commands/build')
-rwxr-xr-xcommands/build14
1 files changed, 9 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]}