Revision 0dc9f2f9

View differences:

compiler/GCC/gccsetup.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
......
657 660
    fi
658 661
    # optionally force silent appending
659 662
    if [[ "$cmd" = "--LOG"* ]]; then
660
      setLogFile --option=a --quiet "$logfile" LOG_FILE
663
      setLogFile --option=c --quiet "$logfile" LOG_FILE
661 664
    else
662 665
      setLogFile "$logfile" LOG_FILE
663 666
      printf "\n"
compiler/compilersetup.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
......
370 373
    fi
371 374
    # optionally force silent appending
372 375
    if [[ "$cmd" = "--LOG"* ]]; then
373
      setLogFile --option=a --quiet "$logfile" LOG_FILE
376
      setLogFile --option=c --quiet "$logfile" LOG_FILE
374 377
    else
375 378
      setLogFile "$logfile" LOG_FILE
376 379
      printf "\n"
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"
ide/idesetup.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
......
370 373
    fi
371 374
    # optionally force silent appending
372 375
    if [[ "$cmd" = "--LOG"* ]]; then
373
      setLogFile --option=a --quiet "$logfile" LOG_FILE
376
      setLogFile --option=c --quiet "$logfile" LOG_FILE
374 377
    else
375 378
      setLogFile "$logfile" LOG_FILE
376 379
      printf "\n"
setup.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
......
528 531
    fi
529 532
    # optionally force silent appending
530 533
    if [[ "$cmd" = "--LOG"* ]]; then
531
      setLogFile --option=a --quiet "$logfile" LOG_FILE
534
      setLogFile --option=c --quiet "$logfile" LOG_FILE
532 535
    else
533 536
      setLogFile "$logfile" LOG_FILE
534 537
      printf "\n"

Also available in: Unified diff