- for bk in "" "-b"; do
- tmp=$(outfile "loba" $bk "${args[@]}")
- out="$algo_output/$tmp.out"
- cmd=( "$LOBA" "${COMMON_OPTS[@]}" $bk "${args[@]}" )
- log "Run: ${cmd[@]}"$'\n'"... &> $out"
- if [ $overwrite = 0 -a -e "$out" ]; then
+ for bk in "plain" "bookkeeping"; do
+ cmd=( "$LOBA" "${COMMON_OPTS[@]}" )
+ case "$bk" in
+ "plain") : ;;
+ "bookkeeping") cmd+=( "-b" ) ;;
+ *) die "internal error (bk = \"$bk\")" ;;
+ esac
+ out="${algo_output}_${bk}.out"
+ outf="$out$outsuffix"
+ cmd+=( "${args[@]}" )
+ log "Run: ${cmd[@]}"$'\n'"... &> $outf"
+ if [ $overwrite = 0 -a -e "$outf" ]; then