build: space -> tab formatting change

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
Paul Donald 2024-04-26 01:57:34 +02:00
parent 1ba94f2ed5
commit 443f7d67c6
1 changed files with 12 additions and 12 deletions

View File

@ -29,12 +29,12 @@ esac
# Absent a [folder] parameter, use the current path # Absent a [folder] parameter, use the current path
find "${1:-.}" -name '*.pot' -and -not -name base.pot | sort | \ find "${1:-.}" -name '*.pot' -and -not -name base.pot | sort | \
xargs -P 10 -I{} sh -c ' xargs -P 10 -I{} sh -c '
dir="${1%/po/templates/*}" dir="${1%/po/templates/*}"
echo "Updating ${1#./} ... " echo "Updating ${1#./} ... "
./build/i18n-scan.pl "$dir" > "$1" ./build/i18n-scan.pl "$dir" > "$1"
echo "done" echo "done"
' sh {} ' sh {}
# while read path; do # while read path; do
# dir="${path%/po/templates/*}" # dir="${path%/po/templates/*}"
@ -47,13 +47,13 @@ find "${1:-.}" -name '*.pot' -and -not -name base.pot | sort | \
if [ -n "$1" ]; then if [ -n "$1" ]; then
if [ "$(uname)" = "Darwin" ] || [ "$(uname)" = "FreeBSD" ]; then if [ "$(uname)" = "Darwin" ] || [ "$(uname)" = "FreeBSD" ]; then
# macOS-specific commands # macOS-specific commands
find "$1" -path '*/templates/*.pot' -print0 | xargs -0r stat -f '%N' | \ find "$1" -path '*/templates/*.pot' -print0 | xargs -0r stat -f '%N' | \
xargs -r -n 1 dirname | \ xargs -r -n 1 dirname | \
xargs -r -n 1 dirname | sort | \ xargs -r -n 1 dirname | sort | \
xargs -r -n 1 -P 40 ./build/i18n-update.pl xargs -r -n 1 -P 40 ./build/i18n-update.pl
elif [ "$(uname)" = "Linux" ]; then elif [ "$(uname)" = "Linux" ]; then
# Linux-specific commands # Linux-specific commands
find "$1" -path '*/templates/*.pot' -printf '%h ' | \ find "$1" -path '*/templates/*.pot' -printf '%h ' | \
xargs -r -n 1 dirname | \ xargs -r -n 1 dirname | \
xargs -r -n 1 -P 40 ./build/i18n-update.pl xargs -r -n 1 -P 40 ./build/i18n-update.pl