aboutsummaryrefslogtreecommitdiff
path: root/build-aux/extract-translations.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/extract-translations.sh')
-rwxr-xr-xbuild-aux/extract-translations.sh15
1 files changed, 0 insertions, 15 deletions
diff --git a/build-aux/extract-translations.sh b/build-aux/extract-translations.sh
deleted file mode 100755
index 2333865..0000000
--- a/build-aux/extract-translations.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-set -eu
-
-TRANSLATIONS='pt fr eo'
-
-for f in $(git ls-files | grep -E '.(md|slides)$' | grep -v '^vendor/reveal.js$'); do
- file_lang="$(grep '^lang: ..$' "$f" | awk '{print $2}')"
- if [ "$file_lang" = 'en' ]; then
- for l in $TRANSLATIONS; do
- OUT="locale/$l/LC_MESSAGES/${f%.md}.po"
- mkdir -p "$(dirname "$OUT")"
- md2po "$f" --include-codeblocks --quiet --save --po-filepath "$OUT"
- done
- fi
-done