diff options
Diffstat (limited to 'scripts/apply-translations.sh')
-rwxr-xr-x | scripts/apply-translations.sh | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/scripts/apply-translations.sh b/scripts/apply-translations.sh deleted file mode 100755 index e1b92db..0000000 --- a/scripts/apply-translations.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -set -eu - -for f in $(git ls-files | grep -E '.(md|slides)$' | grep -v '^vendor/reveal.js$'); do - l="$(grep '^lang: ..$' "$f" | awk '{print $2}')" - if [ "$l" != 'en' ]; then - ref="$(grep '^ref: ' "$f" | awk '{print $2}')" - # shellcheck disable=2046 - FROM=$(find $(find . -name '*.md' -exec grep -l "^ref: $ref$" {} \;) -exec grep -l '^lang: en$' {} \;) - po2md "$FROM" --pofiles "locale/$l/LC_MESSAGES/${FROM%.md}.po" --quiet --save "$f" - fi -done |