diff options
Diffstat (limited to '')
-rwxr-xr-x | scripts/apply-translations.sh | 3 | ||||
-rwxr-xr-x | scripts/assert-nixfmt.sh | 3 | ||||
-rwxr-xr-x | scripts/assert-shellcheck.sh | 3 | ||||
-rwxr-xr-x | scripts/assert-spelling.sh | 3 | ||||
-rwxr-xr-x | scripts/assert-todos.sh | 3 | ||||
-rwxr-xr-x | scripts/bundix-gen.sh | 3 | ||||
-rwxr-xr-x | scripts/extract-translations.sh | 3 | ||||
-rwxr-xr-x | scripts/sync-translations.sh | 7 |
8 files changed, 18 insertions, 10 deletions
diff --git a/scripts/apply-translations.sh b/scripts/apply-translations.sh index 1148b60..e1b92db 100755 --- a/scripts/apply-translations.sh +++ b/scripts/apply-translations.sh @@ -1,4 +1,5 @@ -#!/bin/sh -eu +#!/bin/sh +set -eu for f in $(git ls-files | grep -E '.(md|slides)$' | grep -v '^vendor/reveal.js$'); do l="$(grep '^lang: ..$' "$f" | awk '{print $2}')" diff --git a/scripts/assert-nixfmt.sh b/scripts/assert-nixfmt.sh index 761c1e2..9bdd3bf 100755 --- a/scripts/assert-nixfmt.sh +++ b/scripts/assert-nixfmt.sh @@ -1,4 +1,5 @@ -#!/bin/sh -eux +#!/bin/sh +set -eux # shellcheck disable=2094 nixfmt < default.nix | diff - default.nix || { diff --git a/scripts/assert-shellcheck.sh b/scripts/assert-shellcheck.sh index 70ea65a..76fb2d0 100755 --- a/scripts/assert-shellcheck.sh +++ b/scripts/assert-shellcheck.sh @@ -1,4 +1,5 @@ -#!/bin/sh -eux +#!/bin/sh +set -eux git ls-files -z | \ grep -zv vendor | \ diff --git a/scripts/assert-spelling.sh b/scripts/assert-spelling.sh index f4ab58e..37cec6e 100755 --- a/scripts/assert-spelling.sh +++ b/scripts/assert-spelling.sh @@ -1,4 +1,5 @@ -#!/bin/sh -eu +#!/bin/sh +set -eu export LANG=C.UTF-8 diff --git a/scripts/assert-todos.sh b/scripts/assert-todos.sh index dabe680..ac72057 100755 --- a/scripts/assert-todos.sh +++ b/scripts/assert-todos.sh @@ -1,4 +1,5 @@ -#!/bin/sh -eu +#!/bin/sh +set -eu if git grep FIXME | grep -Ev '^(vendor/|scripts/assert-todos.sh|locale/)'; then echo "Found dangling FIXME markers on the project." diff --git a/scripts/bundix-gen.sh b/scripts/bundix-gen.sh index 6d5032f..7b4650d 100755 --- a/scripts/bundix-gen.sh +++ b/scripts/bundix-gen.sh @@ -1,4 +1,5 @@ -#!/bin/sh -eux +#!/bin/sh +set -eux bundler package --no-install --path vendor bundix diff --git a/scripts/extract-translations.sh b/scripts/extract-translations.sh index ea4b0f5..2333865 100755 --- a/scripts/extract-translations.sh +++ b/scripts/extract-translations.sh @@ -1,4 +1,5 @@ -#!/bin/sh -eu +#!/bin/sh +set -eu TRANSLATIONS='pt fr eo' diff --git a/scripts/sync-translations.sh b/scripts/sync-translations.sh index 1e86340..20e2a78 100755 --- a/scripts/sync-translations.sh +++ b/scripts/sync-translations.sh @@ -1,4 +1,5 @@ -#!/bin/sh -eux +#!/bin/sh +set -eux -./scripts/extract-translations.sh -./scripts/apply-translations.sh +sh scripts/extract-translations.sh +sh scripts/apply-translations.sh |