aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-07-19 15:19:04 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-07-19 15:19:04 +0000
commit8ddc3e08e3abbb9dc70d0d01532c5d4ac9f11587 (patch)
treeb72c5734507ed422261d9e9a668928a083e28ea4 /scripts
parent313d70e6c20dd923e395640334766ae3c5ec5b6a (diff)
added standardized logging
svn path=/trunk/; revision=5381
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/automated-builder.sh5
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`