Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 32 lines (22 sloc) 0.909 kb
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
@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

%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 ==============================
Something went wrong with that request. Please try again.