diff options
author | EuAndreh <eu@euandre.org> | 2024-11-17 20:15:02 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-11-17 20:18:21 -0300 |
commit | cfd0246b241cb6e58153e68f7e30ed56b9bf054b (patch) | |
tree | 206deba2cec12187e835c64b8a7172277be1a2cf /scripts/extract-translations.sh | |
parent | rm tests/assert-frontmatter.sh (diff) | |
download | euandre.org-cfd0246b241cb6e58153e68f7e30ed56b9bf054b.tar.gz euandre.org-cfd0246b241cb6e58153e68f7e30ed56b9bf054b.tar.xz |
Remove jekyll infrastructure setup
Diffstat (limited to '')
-rwxr-xr-x | scripts/extract-translations.sh | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/scripts/extract-translations.sh b/scripts/extract-translations.sh deleted file mode 100755 index 61663b8..0000000 --- a/scripts/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="po/$l/LC_MESSAGES/${f%.md}.po" - mkdir -p "$(dirname "$OUT")" - md2po "$f" --include-codeblocks --quiet --save --po-filepath "$OUT" - done - fi -done |