diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-25 23:09:53 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-25 23:09:53 (GMT) |
commit | 15980e294fcb70ce8e04efb198b26f66c4241ecb (patch) | |
tree | ec4ad0e7313e4f80bf3d3ecdd1569899ce357a02 /commands | |
parent | 91ea798d316865135643a569799f96f98de68ef8 (diff) |
Create the logs dir rather than keeping it in git
Diffstat (limited to 'commands')
-rwxr-xr-x | commands/build | 5 | ||||
-rwxr-xr-x | commands/clean | 9 |
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() |