This is becoming a fairly complex script. The problem with long shell scripts is that it becomes quite hard to use just parts of it and testing it thoroughly. That's why I tend to use Makefiles, because it allows defining targets and dependencies, has builtin support for variable overrides. However, this can be optimized later.
I would strongly recommend set -eu -o pipefail to detect errors, undefined variables etc.
This is becoming a fairly complex script. The problem with long shell scripts is that it becomes quite hard to use just parts of it and testing it thoroughly. That's why I tend to use
Makefiles
, because it allows defining targets and dependencies, has builtin support for variable overrides. However, this can be optimized later.I would strongly recommend
set -eu -o pipefail
to detect errors, undefined variables etc._Originally posted by @kba in https://github.com/OCR-D/quiver-back-end/pull/42#discussion_r1039597016_