#!/bin/bash4 -efuC
set -o pipefail

# How we have been called.
PROG="$(basename "$0")"
PROG="${PROG%-parallel}"
readonly PROG

# For this to work, the program should be installed into PATH
# with a symlink to the place where all my scripts are.
MY="$(realpath "$0")"
MY="${MY%/*}"
readonly MY

# Print the command so that the user knows it; among other things:
# * whether parallel is used;
# * what arguments are read;
# * where (and whether) the general log is saved:
set -x

time \
    xargs -I'{}' \
    -- \
    "$MY"/"$PROG"1 '{}'
