anki/scripts.inc

26 lines
522 B
PHP
Raw Normal View History

#!/bin/bash
set -e
CHECKABLE="lib-rust lib-python anki-qt"
2020-01-02 11:20:23 +01:00
DEVEL="lib-rspy lib-python anki-qt i18n"
if [ "$UNOPT" = "" ]; then
BUILDFLAGS="--release --strip"
else
BUILDFLAGS=""
fi
# activate venv
if [ ! -d pyenv ]; then
python -m venv pyenv
pip install --upgrade pip setuptools
fi
. pyenv/bin/activate
# add qt if missing
python -c 'import PyQt5' 2>/dev/null || pip install -r anki-qt/requirements.qt
2020-01-02 11:20:23 +01:00
# fetch i18n files
2020-01-02 11:39:19 +01:00
test -d i18n || git clone --depth 1 https://github.com/ankitects/anki-i18n i18n