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-25 23:09:53 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-25 23:09:53 (GMT)
commit15980e294fcb70ce8e04efb198b26f66c4241ecb (patch)
treeec4ad0e7313e4f80bf3d3ecdd1569899ce357a02 /commands
parent91ea798d316865135643a569799f96f98de68ef8 (diff)
Create the logs dir rather than keeping it in git
Diffstat (limited to 'commands')
-rwxr-xr-xcommands/build5
-rwxr-xr-xcommands/clean9
2 files changed, 9 insertions, 5 deletions
diff --git a/commands/build b/commands/build
index b90f0fa..6c06133 100755
--- a/commands/build
+++ b/commands/build
@@ -2,10 +2,13 @@
commandsdir=`dirname "$0"`
rootdir=`dirname "$commandsdir"`
+logsdir=$rootdir/logs
helpersdir=$commandsdir/helpers
timestamp=`date +%Y%m%d-%H%M%S`
-logfile=$rootdir/logs/build-$timestamp.log
+logfile=$logsdir/build-$timestamp.log
+
+mkdir -p $logsdir
PYTHONPATH=$commandsdir $helpersdir/build | tee -a $logfile
diff --git a/commands/clean b/commands/clean
index fcfe193..2fa1d61 100755
--- a/commands/clean
+++ b/commands/clean
@@ -12,10 +12,6 @@ from devbot import state
from devbot import config
common.setup()
-build.clean()
-environ.clean()
-state.clean()
-config.clean()
os.chdir(config.logs_dir)
@@ -33,3 +29,8 @@ for filename in glob.glob("*.log"):
except OSError:
# Files migth not exist
pass
+
+build.clean()
+environ.clean()
+state.clean()
+config.clean()