diff options
Diffstat (limited to '')
-rw-r--r-- | _config.yml | 1 | ||||
-rwxr-xr-x | scripts/apply-translations.sh | 2 | ||||
-rwxr-xr-x | scripts/assert-todos.sh | 2 | ||||
-rwxr-xr-x | scripts/extract-translations.sh | 2 |
4 files changed, 3 insertions, 4 deletions
diff --git a/_config.yml b/_config.yml index a05d4a3..93eb586 100644 --- a/_config.yml +++ b/_config.yml @@ -29,7 +29,6 @@ exclude: - nix/ - scripts/ - result* - - templates/ - metadata.json - tests.sh - images/graphviz/ diff --git a/scripts/apply-translations.sh b/scripts/apply-translations.sh index 8c9a6f5..291de76 100755 --- a/scripts/apply-translations.sh +++ b/scripts/apply-translations.sh @@ -3,7 +3,7 @@ set -Eeuo pipefail cd "$(dirname "${BASH_SOURCE[0]}")" cd ../ -for f in $(git ls-files | grep -E '.(md|slides)$' | grep -v '^vendor/reveal.js$' | grep -v '^templates/'); do +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}')" diff --git a/scripts/assert-todos.sh b/scripts/assert-todos.sh index d33b263..14a1b71 100755 --- a/scripts/assert-todos.sh +++ b/scripts/assert-todos.sh @@ -5,7 +5,7 @@ cd ../ # shellcheck disable=2046 if grep -R FIXME $(git ls-files) | \ - grep -Ev '^(vendor/|.git/|scripts/assert-todos.sh|templates|locale/)'; then + grep -Ev '^(vendor/|.git/|scripts/assert-todos.sh|locale/)'; then echo "Found dangling FIXME markers on the project." echo "You should write them down properly on TODOs.org." exit 1 diff --git a/scripts/extract-translations.sh b/scripts/extract-translations.sh index 79ace6b..13fc160 100755 --- a/scripts/extract-translations.sh +++ b/scripts/extract-translations.sh @@ -5,7 +5,7 @@ cd ../ TRANSLATIONS=(pt fr eo) -for f in $(git ls-files | grep -E '.(md|slides)$' | grep -v '^vendor/reveal.js$' | grep -v '^templates/'); do +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 |