aboutsummaryrefslogtreecommitdiff
path: root/aux
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-07-16 09:45:39 -0300
committerEuAndreh <eu@euandre.org>2021-07-16 09:51:48 -0300
commit870262a86860705d29ea9a2ce852c987b47add71 (patch)
tree101b652df0560450f356a8d78cb7a72cdceec6cb /aux
parentaux/workflow/l10n.sh: Put positional arguments at the end (diff)
downloadgit-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')
-rwxr-xr-xaux/workflow/l10n.sh4
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