diff options
author | nixpkgs-review <nixpkgs-review@example.com> | 2020-11-04 18:44:14 -0300 |
---|---|---|
committer | nixpkgs-review <nixpkgs-review@example.com> | 2020-11-04 18:44:14 -0300 |
commit | 4cfdf2eab4af52b096756b205119f3fdea96047e (patch) | |
tree | 193242161da3a090da5881d78553efd788874119 /scripts/extract-translations.sh | |
parent | Add scripts/sync-translations.sh (diff) | |
download | euandre.org-4cfdf2eab4af52b096756b205119f3fdea96047e.tar.gz euandre.org-4cfdf2eab4af52b096756b205119f3fdea96047e.tar.xz |
Extract translations from slides, too
Diffstat (limited to '')
-rwxr-xr-x | scripts/extract-translations.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/extract-translations.sh b/scripts/extract-translations.sh index b0f70ed..a1527ca 100755 --- a/scripts/extract-translations.sh +++ b/scripts/extract-translations.sh @@ -5,7 +5,7 @@ cd ../ TRANSLATIONS=(pt fr eo) -for f in $(find . -type f -name '*.md' | grep -v '^./vendor' | grep -v '^./_site' | grep -v '^./drafts/' | grep -v './templates/'); do +for f in $(git ls-files | egrep '.(md|slides)$' | grep -v '^vendor/reveal.js$' | grep -v '^templates/'); do file_lang="$(grep '^lang: ..$' "$f" | awk '{print $2}')" if [[ "$file_lang" = 'en' ]]; then for l in "${TRANSLATIONS[@]}"; do |