usage() {
cat >&2 <<EOF
-Usage: $0 [-c] <parameters file>
+Usage: $0 [OPTION] <parameters file>
Options:
-h print this help
-n dry-run mode (for debugging)
log "Running: $0 $@"
log "Hostname: $(hostname -f)"
-declare -a TOPOLOGIES ALGORITHMS PLATFORMS COMMON_OPTS
+declare -a TOPOLOGIES ALGORITHMS PLATFORMS COMMON_OPTS MORE_ARGS
# read parameters
log "Reading parameters from \"$1\"."
COMMON_OPTS=(
--cfg=contexts/factory:raw
+ "${MORE_ARGS[@]}"
)
log "Results put in: \"$RESULTS\"."
log "skipped (dry-run)"
else
echo "# ${cmd[@]}" > "$out"
- out2="/tmp/tmp_loba.o"
- "${cmd[@]}" > "$out2" 2>&1
- tail -17 "$out2" >> "$out"
+ "${cmd[@]}" >> "$out" 2>&1
tail -n4 "$out"
fi
done