2020-01-02 22:59:00 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-03-22 19:52:56 +01:00
|
|
|
set -eu -o pipefail ${SHELLFLAGS}
|
2020-01-02 22:59:00 +01:00
|
|
|
|
2020-02-16 06:14:08 +01:00
|
|
|
out=../aqt_data/locale/qt
|
2020-02-24 18:58:07 +01:00
|
|
|
mkdir -p "$out"
|
2020-01-02 22:59:00 +01:00
|
|
|
|
2020-02-24 18:58:07 +01:00
|
|
|
qtTranslations="$(python -c "from PyQt5.QtCore import *; import sys; sys.stdout.write(QLibraryInfo.location(QLibraryInfo.TranslationsPath))")"
|
|
|
|
|
2020-03-22 19:52:56 +01:00
|
|
|
case "$(uname -s)" in
|
|
|
|
CYGWIN*|MINGW*|MSYS*)
|
2020-02-24 18:58:07 +01:00
|
|
|
qtTranslations="$(cygpath -u "${qtTranslations}")"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2020-03-16 19:54:59 +01:00
|
|
|
rsync -a "$qtTranslations/" "$out/"
|