summaryrefslogtreecommitdiffhomepage
path: root/build/i18n-sync.sh
diff options
context:
space:
mode:
authorPaul Donald <newtwen+github@gmail.com>2024-04-26 01:57:34 +0200
committerPaul Donald <newtwen+github@gmail.com>2024-04-26 01:57:34 +0200
commit443f7d67c6908f9e8ead5f72c8de9f1c41b2ad60 (patch)
tree016ab1a30ae89adef4f8557797e834f220db4363 /build/i18n-sync.sh
parent1ba94f2ed544951df711ebe9ad5ab1e1674ceb57 (diff)
build: space -> tab formatting change
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Diffstat (limited to 'build/i18n-sync.sh')
-rwxr-xr-xbuild/i18n-sync.sh24
1 files changed, 12 insertions, 12 deletions
diff --git a/build/i18n-sync.sh b/build/i18n-sync.sh
index 7d57f1b1b5..1d7fb13b87 100755
--- a/build/i18n-sync.sh
+++ b/build/i18n-sync.sh
@@ -29,12 +29,12 @@ esac
# Absent a [folder] parameter, use the current path
find "${1:-.}" -name '*.pot' -and -not -name base.pot | sort | \
- xargs -P 10 -I{} sh -c '
- dir="${1%/po/templates/*}"
- echo "Updating ${1#./} ... "
- ./build/i18n-scan.pl "$dir" > "$1"
- echo "done"
- ' sh {}
+ xargs -P 10 -I{} sh -c '
+ dir="${1%/po/templates/*}"
+ echo "Updating ${1#./} ... "
+ ./build/i18n-scan.pl "$dir" > "$1"
+ echo "done"
+ ' sh {}
# while read path; do
# dir="${path%/po/templates/*}"
@@ -47,13 +47,13 @@ find "${1:-.}" -name '*.pot' -and -not -name base.pot | sort | \
if [ -n "$1" ]; then
if [ "$(uname)" = "Darwin" ] || [ "$(uname)" = "FreeBSD" ]; then
- # macOS-specific commands
- find "$1" -path '*/templates/*.pot' -print0 | xargs -0r stat -f '%N' | \
- xargs -r -n 1 dirname | \
- xargs -r -n 1 dirname | sort | \
- xargs -r -n 1 -P 40 ./build/i18n-update.pl
+ # macOS-specific commands
+ find "$1" -path '*/templates/*.pot' -print0 | xargs -0r stat -f '%N' | \
+ xargs -r -n 1 dirname | \
+ xargs -r -n 1 dirname | sort | \
+ xargs -r -n 1 -P 40 ./build/i18n-update.pl
elif [ "$(uname)" = "Linux" ]; then
- # Linux-specific commands
+ # Linux-specific commands
find "$1" -path '*/templates/*.pot' -printf '%h ' | \
xargs -r -n 1 dirname | \
xargs -r -n 1 -P 40 ./build/i18n-update.pl