From 870262a86860705d29ea9a2ce852c987b47add71 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 16 Jul 2021 09:45:39 -0300 Subject: 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 --- aux/workflow/l10n.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'aux/workflow') 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 -- cgit v1.2.3