Revision 0dc9f2f9 ide/QtCreator/QtCreatorSetup.sh

View differences:

ide/QtCreator/QtCreatorSetup.sh
169 169
# usage:      setLogFile [--option=<option>] [--quiet] <infile> <outvar>
170 170
# arguments:  --option=<option>
171 171
#                 Select what to do if <file> already exists.
172
#                 Possible values are 'a', 'r' and 'n'.
173
#                 - a: append
172
#                 Possible values are 'a', 'c', 'r' and 'n'.
173
#                 - a: append (starts with a separator)
174
#                 - c: continue (does not insert a seperator)
174 175
#                 - r: delete and restart
175 176
#                 - n: no log
176 177
#                 If no option is secified but <file> exists, an interactive selection is provided.
......
226 227
    fi
227 228
    # evaluate option
228 229
    case "$option" in
229
      a)
230
      a|c)
230 231
        if [ $quiet = false ]; then
231 232
          printInfo "appending log to $filepath\n"
232 233
        fi
233
        printf "\n" >> $filepath
234
        printf "######################################################################\n" >> $filepath
235
        printf "\n" >> $filepath
234
        if [ $option != c ]; then
235
          printf "\n" >> $filepath
236
          printf "######################################################################\n" >> $filepath
237
          printf "\n" >> $filepath
238
        fi
236 239
        ;;
237 240
      r)
238 241
        echo -n "" > $filepath
......
817 820
    fi
818 821
    # optionally force silent appending
819 822
    if [[ "$cmd" = "--LOG"* ]]; then
820
      setLogFile --option=a --quiet "$logfile" LOG_FILE
823
      setLogFile --option=c --quiet "$logfile" LOG_FILE
821 824
    else
822 825
      setLogFile "$logfile" LOG_FILE
823 826
      printf "\n"

Also available in: Unified diff