PageRenderTime 28ms CodeModel.GetById 16ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/build.cmd

http://github.com/zotonic/zotonic
Batch | 31 lines | 22 code | 9 blank | 0 comment | 3 complexity | aec347e9f0bcf8162291dd8ab4d80d25 MD5 | raw file
 1rem @echo off
 2set erl=erl
 3set erlc=erlc
 4rem set erl="C:\Program Files\erl5.7.4\bin\erl.exe"
 5rem set erlc="C:\Program Files\erl5.7.4\bin\erlc.exe"
 6
 7@echo ==============================
 8@echo  make deps
 9@echo ==============================
10
11for /D %%i in (.\deps\*) do cmd /c .\deps\build-dep.cmd %%~ni %%i
12
13cmd /c .\deps\build-dep.cmd erlang-oauth .\modules\mod_oauth\deps\erlang-oauth
14
15
16@echo ==============================
17@echo  make zotonic
18@echo ------------------------------
19
20setlocal enabledelayedexpansion
21set DEPS=.\ebin .\modules\mod_oauth\deps\erlang-oauth\ebin
22for /D %%i in (.\deps\*) do if exist %%i\ebin set DEPS=!DEPS! %%i\ebin
23
24%erlc% -o src/erlydtl src/erlydtl/erlydtl_parser.yrl
25%erl% -pa %DEPS% -noinput +B -eval "case make:all() of up_to_date -> halt(0);error -> halt(1) end."
26
27copy src\zotonic.app ebin
28
29@echo ------------------------------
30@echo  build done
31@echo ==============================