anki/qt/po/scripts/copy-qt-files
evandrocoan 20c9837770 Created the .github/workflows/windows.yml
# Conflicts:
#	.github/scripts/trailing-newlines.sh
#	Makefile
#	qt/tools/typecheck-setup.sh
#	react/Makefile
#	rspy/Makefile
#	svelte/Makefile
#	tslib/Makefile
2020-03-23 19:51:03 -03:00

17 lines
397 B
Bash
Executable File

#!/bin/bash
set -eu -o pipefail ${SHELLFLAGS}
out=../aqt_data/locale/qt
mkdir -p "$out"
qtTranslations="$(python -c "from PyQt5.QtCore import *; import sys; sys.stdout.write(QLibraryInfo.location(QLibraryInfo.TranslationsPath))")"
case "$(uname -s)" in
CYGWIN*|MINGW*|MSYS*)
qtTranslations="$(cygpath -u "${qtTranslations}")"
;;
esac
rsync -a "$qtTranslations"/qt* "$out"