3 ###########################################################
4 # Maemo-efl building script
5 # Logging functions definitions
7 # Note: var-definitions.sh and helper-functions.sh needed.
8 ###########################################################
11 if [ ! -r $__output_file ]; then
12 msg_begin "Creating log file"
16 msg "Using existing log file: $__output_file"
25 if [ ! -r $__output_file ]; then
26 error "log_to_file(): Log file does not exist"
29 now=`$__date +%H:%M:%S`
30 echo "$now: $msg" >> $__output_file
37 echo "" >> $__output_file
40 error "start_log(): Could not create $__output_file file"
43 cat << EOF >> $__output_file
44 *********************************************************
45 * Started $__this_script: $now *
46 *********************************************************
55 if [ ! -r $__output_file ]; then
56 error "finish_log(): Log file does not exist"
59 cat << EOF >> $__output_file
61 * Finished $__this_script: $now