diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-07-19 15:19:04 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-07-19 15:19:04 +0000 |
commit | 8ddc3e08e3abbb9dc70d0d01532c5d4ac9f11587 (patch) | |
tree | b72c5734507ed422261d9e9a668928a083e28ea4 /scripts | |
parent | 313d70e6c20dd923e395640334766ae3c5ec5b6a (diff) |
added standardized logging
svn path=/trunk/; revision=5381
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/automated-builder.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/automated-builder.sh b/scripts/automated-builder.sh index 98165e08..6847c719 100755 --- a/scripts/automated-builder.sh +++ b/scripts/automated-builder.sh @@ -2,12 +2,13 @@ # this script is the first attempt to have an automated updater and builder -auto_build_root_dir=`echo $0 | sed 's|\(.*\)/.*$|\1|'`/.. SYSTEM=`uname -s` DATE=`date +%Y-%m-%d` TIME=`date +%H.%M.%S` -LOGFILE=/tmp/build-log_${SYSTEM}_${DATE}_${TIME}.txt +SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'` +LOGFILE=/home/pd/logs/${DATE}_-_${TIME}_-_${SCRIPT}_-_${SYSTEM}.txt +auto_build_root_dir=`echo $0 | sed 's|\(.*\)/.*$|\1|'`/.. # convert into absolute path cd ${auto_build_root_dir} auto_build_root_dir=`pwd` |