aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
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`