<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1607" name=GENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><FONT face=Verdana color=#0000ff size=2>
<DIV><SPAN class=046410209-01042008><FONT face=Verdana color=#0000ff size=2>Hi 
Martin,</FONT></SPAN></DIV>
<DIV><SPAN class=046410209-01042008><FONT face=Verdana color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=046410209-01042008><FONT face=Verdana color=#0000ff size=2>I 
would do the following to use the erl_compile in a script</FONT></SPAN></DIV>
<DIV><SPAN class=046410209-01042008><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=046410209-01042008><FONT face="Courier New" color=#000000 
size=2>#! /bin/sh</FONT></SPAN></DIV>
<DIV><SPAN class=046410209-01042008><FONT size=2><FONT face="Courier New"><FONT 
color=#000000>erl -s erl_compile compile_cmdline @cwd . @files</FONT> <FONT 
color=#ff0000><SPAN 
class=046410209-01042008>martin</SPAN>.erl</FONT></FONT></FONT></SPAN></DIV></FONT></DIV>
<DIV><FONT face=Verdana color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=078113907-02042008><FONT face=Verdana color=#0000ff 
size=2>Thanks</FONT></SPAN></DIV>
<DIV><SPAN class=078113907-02042008><FONT face=Verdana color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN lang=en-us><FONT face=Arial color=#0000ff 
size=2>Regards,</FONT><B><I></I></B><B><I></I></B></SPAN> <BR><SPAN 
lang=en-us><B><I><FONT face=Verdana color=#000080 size=2>Ali 
Yakout</FONT></I></B></SPAN> <BR></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> erlang-questions-bounces@erlang.org 
[mailto:erlang-questions-bounces@erlang.org] <B>On Behalf Of </B>Logan, 
Martin<BR><B>Sent:</B> Monday, March 31, 2008 5:17 AM<BR><B>To:</B> 
Erlang<BR><B>Subject:</B> [erlang-questions] erlc shell 
script<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Has anyone on the list written an 
erlc shell script that calls stdlib erl_compile from the commandline via 
–s?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Cheers,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Martin<o:p></o:p></SPAN></FONT></P></DIV></BODY></HTML>