<div dir="ltr"><br><br><div class="gmail_quote">On Wed, Oct 15, 2008 at 1:13 PM, John Stoneham <span dir="ltr"><<a href="mailto:captnjameskirk@gmail.com">captnjameskirk@gmail.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 dir="ltr"><div class="Ih2E3d">On Wed, Oct 15, 2008 at 10:10 AM, Henry Vermaak <span dir="ltr"><<a href="mailto:henry.vermaak@gmail.com" target="_blank">henry.vermaak@gmail.com</a>></span> wrote:<br></div><div class="gmail_quote">
<div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
yes, maybe it's getting confused by the multiple -e. have you tried<br>
sed 's/\(\.pp\|\.pas\)\b//g'? that sed should probably only run once,<br>
too (on the output of the ls).<br>
<font color="#888888"></font></blockquote></div><div><br>Yeah, I figured it was the sed command that was the problem. The thing is, there is no need to use sed there anyway, since bash string processing handles removing those two extensions in a much simpler manner, as my "fix" shows. <br>
</div></div><br clear="all"><br>-- <br>_| ( ) |-| |\|<br>
</div>
</blockquote></div><br>Alright, I don't know what the deal is with sed on OS X, if it's behaving properly or what (sed syntax has always eluded me). Anyway I've attached two patch files that correct build_lcl_html.sh and build_gtkintf_html.sh to work on OS X (and linux, too -- they may have worked on linux before the patch, but they work with the patch too, so I believe this should be the preferred solution on both platforms). Instead of adding two lines, I replaced the line that used sed with the built-in bash string processing to remove the .pp, and added one line to remove any .pas as well. Sed is just overkill here, and besides it doesn't work as written on OS X. And the new version is shorter by 12 bytes, too. :)<br clear="all">
<br>-- <br>_| ( ) |-| |\|<br>
</div>