aboutsummaryrefslogtreecommitdiff
path: root/scripts/apply-translations.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-11-17 20:15:02 -0300
committerEuAndreh <eu@euandre.org>2024-11-17 20:18:21 -0300
commitcfd0246b241cb6e58153e68f7e30ed56b9bf054b (patch)
tree206deba2cec12187e835c64b8a7172277be1a2cf /scripts/apply-translations.sh
parentrm tests/assert-frontmatter.sh (diff)
downloadeuandre.org-cfd0246b241cb6e58153e68f7e30ed56b9bf054b.tar.gz
euandre.org-cfd0246b241cb6e58153e68f7e30ed56b9bf054b.tar.xz
Remove jekyll infrastructure setup
Diffstat (limited to '')
-rwxr-xr-xscripts/apply-translations.sh12
1 files changed, 0 insertions, 12 deletions
diff --git a/scripts/apply-translations.sh b/scripts/apply-translations.sh
deleted file mode 100755
index 5f87e0e..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 -Ev '^(vendor/reveal.js|TODOs.md|aux/)'); 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 . -type f -name '*.md' -exec grep -l "^ref: $ref$" {} \;) -type f -exec grep -l '^lang: en$' {} \;)
- po2md "$FROM" --pofiles "po/$l/LC_MESSAGES/${FROM%.md}.po" --quiet --save "$f"
- fi
-done