Browse files

Added Windows build and start scripts. Thanks Pierrick <pgourlain@gma…

…il.com>
  • Loading branch information...
1 parent 83c866c commit 225dd2dc5ff6dd5464305b1edf20e1c083e6736c @arjan arjan committed Apr 18, 2010
Showing with 63 additions and 6 deletions.
  1. +58 −0 build.cmd
  2. +0 −6 start.bat
  3. +5 −0 start.cmd
View
58 build.cmd
@@ -0,0 +1,58 @@
+@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
+
+@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
+
View
6 start.bat
@@ -1,6 +0,0 @@
-@echo off
-set erl="C:\Program Files\erl5.7.4\bin\erl.exe"
-set erlc="C:\Program Files\erl5.7.4\bin\erlc.exe"
-set ebin=ebin deps\mochiweb\ebin deps\erlang-oauth\ebin deps\webmachine\ebin
-
-%erl% +P 10000000 -pa %ebin% -boot start_sasl -s zotonic
View
5 start.cmd
@@ -0,0 +1,5 @@
+set erl=erl
+rem set erl="C:\Program Files\erl5.7.4\bin\erl.exe"
+
+set ebin=./ebin ./deps/erlang-oauth/ebin ./deps/mochiweb/ebin ./deps/webmachine/ebin
+%erl% +P 10000000 -pa %ebin% -boot start_sasl -sasl errlog_type error -s zotonic

0 comments on commit 225dd2d

Please sign in to comment.