forked from zotonic/zotonic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.cmd
73 lines (63 loc) · 1.61 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
@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"
pushd .
cd .\deps\mochiweb\src
@echo on
@echo '------------------------------'
@echo 'make mochiweb'
@echo '------------------------------'
@echo off
set EBIN_DIR = "..\ebin"
if not exist "..\ebin" (
mkdir ..\ebin
)
for %%g in (*.erl) do cmd /c "%erlc%" -o ../ebin/ %%g
copy *.app ..\ebin
popd
pushd .
cd .\deps\webmachine
@echo on
@echo '------------------------------'
@echo 'make webmachine'
@echo '------------------------------'
@echo off
%erl% -noinput +B -eval "case make:all() of up_to_date -> halt(0); error -> halt(1) end."
copy src\*.app ebin
popd
pushd .
cd .\deps\erlang-oauth
@echo on
@echo '------------------------------'
@echo 'make erlang-oauth'
@echo '------------------------------'
@echo off
IF NOT EXIST ebin (
mkdir ebin
)
copy src\oauth.app ebin
%erl% -make
popd
pushd .
cd .\deps\gen_smtp\src
@echo on
@echo '------------------------------'
@echo 'make gen_smtp'
@echo '------------------------------'
@echo off
set EBIN_DIR = "..\ebin"
if not exist "..\ebin" (
mkdir ..\ebin
)
for %%g in (*.erl) do cmd /c "%erlc%" -o ../ebin/ %%g
copy *.app ..\ebin
popd
@echo on
@echo '------------------------------'
@echo 'make zotonic'
@echo '------------------------------'
%erlc% -o src/erlydtl src/erlydtl/erlydtl_parser.yrl
%erl% -pa ebin ./erlang-oauth/ebin ./mochiweb/ebin ./webmachine/ebin -noinput +B -eval "case make:all() of up_to_date -> halt(0);error -> halt(1) end."
copy src\zotonic.app ebin