diff options
author | EuAndreh <eu@euandre.org> | 2021-07-16 09:45:39 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-07-16 09:51:48 -0300 |
commit | 870262a86860705d29ea9a2ce852c987b47add71 (patch) | |
tree | 101b652df0560450f356a8d78cb7a72cdceec6cb /aux/workflow | |
parent | aux/workflow/l10n.sh: Put positional arguments at the end (diff) | |
download | git-permalink-870262a86860705d29ea9a2ce852c987b47add71.tar.gz git-permalink-870262a86860705d29ea9a2ce852c987b47add71.tar.xz |
aux/workflow/l10n.sh: Feed files to mdpo via STDIN instead of the positional argument
After a lot (a lot) of debugging, I've discovered the issue to be with mdpo,
and how it behaved differently in an unexpected way when in a pipe instead of
being invoked directly.
An issue was filled [0] upstream to report problem, but the workaround was
enough to address #task-f957647c-df05-c0c1-a38b-2e6faea99b8f.
[0]: https://github.com/mondeja/mdpo/issues/159
Diffstat (limited to 'aux/workflow')
-rwxr-xr-x | aux/workflow/l10n.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/aux/workflow/l10n.sh b/aux/workflow/l10n.sh index 6574e0f..cbdae7f 100755 --- a/aux/workflow/l10n.sh +++ b/aux/workflow/l10n.sh @@ -40,8 +40,8 @@ for from_f in "$@"; do ;; *.en.md) touch "$pofile" - md2po --include-codeblocks --quiet --save --po-filepath "$pofile" "$from_f" - po2md --pofiles "$pofile" --quiet --save "$to_f" "$from_f" + md2po --include-codeblocks --quiet --save --po-filepath "$pofile" < "$from_f" + po2md --pofiles "$pofile" --quiet --save "$to_f" < "$from_f" ;; *) echo "Unsupported file format: $from_f" >&2 |