Skip to content

Commit ea48943

Browse files
committed
Fix rsync --from-file usage
1 parent 0339d77 commit ea48943

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

installer/packages/qreal-base/ru.qreal.root.languages/meta/prebuild-common.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ set -o errexit
55
cd "$(dirname "$0")"
66

77
mkdir -p "$PWD"/../data/translations
8-
ls "$QT_TRANSLATIONS"
9-
108
rsync -avR "$BIN_DIR"/translations/./* "$PWD"/../data/translations/
119

1210
#Cannot handle complex paths, to be ported to NULL-terminated strings later
13-
for code in $(find "$PWD"/../data/translations -maxdepth 1 -type d -name '??' -exec basename -a {} + ) ; do
14-
ls -1d "$QT_TRANSLATIONS"/*${code}.qm
15-
done | rsync -v --files-from=- "$PWD"/../data/translations/
11+
TS_LANGUAGES=$(find "$PWD"/../data/translations -maxdepth 1 -type d -name '??' -exec basename -a {} +)
12+
echo --- Transfer Qt translations for '(' $TS_LANGUAGES ')' from "$QT_TRANSLATIONS" --
13+
for code in $TS_LANGUAGES ; do
14+
ls -1d "$QT_TRANSLATIONS"/*_${code}.qm
15+
done | xargs basename -a | LANG=C.UTF-8 sort | tee /dev/stderr | rsync -q --files-from=- "$QT_TRANSLATIONS"/ "$PWD"/../data/translations/

0 commit comments

Comments
 (0)