use common section in the heading of the log file, versioning etc

This commit is contained in:
George Danchev
2011-07-09 09:49:10 +00:00
parent a526041df6
commit 2e89329587
2 changed files with 14 additions and 8 deletions

View File

@ -10,12 +10,16 @@ SELF=$(basename "$0")
GEN_DATA_DIR=releng_generated_data
CLOG=${GEN_DATA_DIR}/log.${SELF}
PASSED_OPTIONS="$@"
RELENG_XORRISO=
CLEANUP_LOG=0
#############################################
while getopts “x:k:c:f:h” OPT
do
case $OPT in
x)
RELENG_XORRISO=$OPTARG
;;
c)
CLEANUP_LOG=1
;;
@ -51,6 +55,11 @@ fi
mv "${CLOG}" "${CLOG}".prev
fi
> ${CLOG}
if [ -x "${RELENG_XORRISO}" ]; then
echo -e "_OVERVIEW_______________________________________________________________" >> ${CLOG}
${RELENG_XORRISO} --version >> ${CLOG}
echo -e "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> ${CLOG}
fi
DSTART=`date --utc`
printf "\n${SELF}: Started at ${DSTART}"
E1=`date '+%s'`