forked from ebu/ebu-tt-live-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmake.bat
23 lines (18 loc) · 811 Bytes
/
make.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@echo off
set HERE=%cd%
IF NOT EXIST %HERE%\env (
virtualenv env
)
REM Make sure we are in an active virtualenv
IF NOT DEFINED VIRTUAL_ENV (
call env\Scripts\activate
)
call poetry install
poetry run python %HERE%\env\Scripts\pyxbgen --binding-root=ebu_tt_live/bindings -m __init__ -r -u file:///%HERE%/ebu_tt_live/xsd/ebutt_all.xsd
IF EXIST %HERE%\node_modules (
call npm update nunjucks
) ELSE (
call npm install nunjucks
)
call node_modules/nunjucks/bin/precompile ebu_tt_live/ui/user_input_producer/template/user_input_producer_template.xml > ebu_tt_live/ui/user_input_producer/template/user_input_producer_template.js
call node_modules/nunjucks/bin/precompile ebu_tt_live/ui/user_input_producer/template/live_message_template.xml > ebu_tt_live/ui/user_input_producer/template/live_message_template.js