Everything seems to be fine on the path front. I have tried both werl and erl<br><br>7> pwd().<br>c:/erlang_stuff/mochi_test<br>ok<br>8> for %i in (src/*.erl) do erlc -o ebin src/%i;.<br>8> for %i in (src/*.erl) do erlc -o ebin src/%i; <br>
8> for %i in (src/*.erl) do erlc -o ebin src/%i.<br>8> pwd().<br>* 2: syntax error before: for<br>8> for %i in (src/*.erl) -> do erlc -o ebin src/%i.<br>8> pwd().<br>* 2: syntax error before: pwd<br>8> for %i in (src/*.erl) -> do erlc -o ebin src/%i;.<br>
8> pwd().<br>* 2: syntax error before: pwd<br>8> for %i in (src/*.erl) do erlc -o ebin src/%i <br>8> pwd().<br>* 2: syntax error before: pwd<br>8> pwd().<br>c:/erlang_stuff/mochi_test<br>ok<br>9> for %i in (src/*.erl) do erlc -o ebin src/%i.erl.<br>
9> erlc -o ebin src/mochiweb_app.erl. <br>* 2: syntax error before: erlc<br>9> erlc -o ebin src/mochiweb_app.erl.<br>* 1: syntax error before: ebin<br>9> erlc -o ebin src/mochiweb_app.erl.<br>* 1: syntax error before: ebin<br>
9> <br><br>My path looks like this. <br><br>C:\yaws\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;E:\Program Files\jEdit;E:\PROGRA~1\DISKEE~1\DISKEE~1\;C:\erlang\bin;E:\Program Files\doxygen\bin<br>
<br><br><br><div class="gmail_quote">On Fri, May 1, 2009 at 5:53 PM, Robert Raschke <span dir="ltr"><<a href="mailto:rtrlists@googlemail.com">rtrlists@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Fri, May 1, 2009 at 3:28 PM, Carl McDade <span dir="ltr"><<a href="mailto:carlmcdade@gmail.com" target="_blank">carlmcdade@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Well the command prompt in both werl and erl just hang on this:<br><br><span style="font-family: courier new,monospace;">for %i in (src/*.erl) do erlc -o ebin src/%i</span>.<br><br>No error no response. Ideas on where to problem lies?</blockquote>
<div><br> </div></div></div>It's a regular windows shell command. Is the erl bin directory on your path?<br><br>You could make yourself a wee batch file build.bat in the mochiweb root folder with these contents:<br><br>
<span style="font-family: courier new,monospace;">setlocal<br>
set PATH=%PATH%;"C:\Program Files\erl6.5.6\bin"<div class="im"><br>for %%i in (src/*.erl) do erlc -o ebin src/%%i<br></div></span><div class="im"><span style="font-family: courier new,monospace;">copy src\mochiweb.app ebin<br>
</span></div><span style="font-family: courier new,monospace;">endlocal<br>
<br></span>The '%i's need to be written '%%i' inside a batch script. Also, you may need to set the PATH to your erl correctly.<br><br>Robby<br><br>
</blockquote></div><br><br clear="all"><br>-- <br>Carl McDade<br>Content Management Systems Consultant<br><a href="http://www.hiveminds.co.uk">www.hiveminds.co.uk</a><br>________________________<br>