diff options
author | EuAndreh <eu@euandre.org> | 2021-06-19 09:06:23 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-06-19 09:06:23 -0300 |
commit | b81c6437937fb594629d627334cc7e1fc2135507 (patch) | |
tree | f35bf3461a2a9da766067ff8affda06827b0a08e /aux/workflow/update-translations.sh | |
parent | aux/workflow/assert-manpages.sh: Mark as executable (diff) | |
download | git-permalink-b81c6437937fb594629d627334cc7e1fc2135507.tar.gz git-permalink-b81c6437937fb594629d627334cc7e1fc2135507.tar.xz |
Add aux/workflow/manpages.sh to install, uninstall and generate HTML from translated manpages
Diffstat (limited to 'aux/workflow/update-translations.sh')
-rwxr-xr-x | aux/workflow/update-translations.sh | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/aux/workflow/update-translations.sh b/aux/workflow/update-translations.sh deleted file mode 100755 index 1974580..0000000 --- a/aux/workflow/update-translations.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -set -eu - -for f in doc/*.en.[1-9]; do - # shellcheck disable=2068 - for lang in $@; do - to="$(echo "$f" | sed "s|\.en\.|.$lang.|")" - po4a-updatepo -f man -m "$f" -p "doc/$lang.po" - printf 'Translating %s...\n' "$to" >&2 - OUT="$(po4a-translate -f man -m "$f" -p "doc/$lang.po" -l "$to" -k 0 -v 2>&1)" - echo "$OUT" >&2 - if ! echo "$OUT" | grep -qF ' is 100% translated ('; then - printf "\n WARNING!\n Missing translations for %s\n\n" "$to" >&2 - fi - done -done |