From c7be363ef34d1228ad3d1d1aeba4911fbde1242f Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Fri, 16 Nov 2012 08:50:36 +0000 Subject: Move logging out of the makefile So that it's possible to run the same scripts from the shell. --- (limited to 'commands/build') 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]} -- cgit v0.9.1