-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.cmd
31 lines (22 loc) · 918 Bytes
/
build.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
rem @echo off
set erl=erl
set erlc=erlc
rem set erl="C:\Program Files\erl5.7.4\bin\erl.exe"
rem set erlc="C:\Program Files\erl5.7.4\bin\erlc.exe"
@echo ==============================
@echo make deps
@echo ==============================
for /D %%i in (.\deps\*) do cmd /c .\deps\build-dep.cmd %%~ni %%i
cmd /c .\deps\build-dep.cmd erlang-oauth .\modules\mod_oauth\deps\erlang-oauth
@echo ==============================
@echo make zotonic
@echo ------------------------------
setlocal enabledelayedexpansion
set DEPS=.\ebin .\modules\mod_oauth\deps\erlang-oauth\ebin
for /D %%i in (.\deps\*) do if exist %%i\ebin set DEPS=!DEPS! %%i\ebin
%erlc% -o src/erlydtl src/erlydtl/erlydtl_parser.yrl
%erl% -pa %DEPS% -noinput +B -eval "case make:all() of up_to_date -> halt(0);error -> halt(1) end."
copy src\zotonic.app ebin
@echo ------------------------------
@echo build done
@echo ==============================