anki/qt/po/scripts/copy-qt-files

18 lines
390 B
Plaintext
Raw Normal View History

2020-01-02 22:59:00 +01:00
#!/bin/bash
set -eo pipefail
2020-01-02 22:59:00 +01:00
out=../aqt_data/locale/qt
mkdir -p "$out"
2020-01-02 22:59:00 +01:00
qtTranslations="$(python -c "from PyQt5.QtCore import *; import sys; sys.stdout.write(QLibraryInfo.location(QLibraryInfo.TranslationsPath))")"
unameOut="$(uname -s)"
case "${unameOut}" in
CYGWIN*)
qtTranslations="$(cygpath -u "${qtTranslations}")"
;;
esac
rsync -a "$qtTranslations"/qt* "$out"