<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jul 7, 2014 at 2:30 PM, Mark Brethen <span dir="ltr">&lt;<a href="mailto:mark.brethen@gmail.com" target="_blank">mark.brethen@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I only need to replace the uncommented line. So I tried<br>
<br>
post-configure {<br>
    reinplace {:^#:!s:Inventor/scxml:scxml:g} \<br>
        ${worksrcpath}/src/3rdParty/CMakeLists.txt<br>
}<br>
<br>
But this had no effect, when it should work in sed. Am I missing something?<br></blockquote><div><br></div><div>That looks wrong to me; in sed, to use a pattern delimiter other than / *as an address* you need to start it with a backslash so it knows it&#39;s a pattern delimiter coming up and not a command without an address. That is,</div>
<div><br></div><div>    :foo:p</div><div><br></div><div>is an illegal command, but</div><div><br></div><div>    \:foo:p</div><div><br></div><div>uses : as the delimiter for an address pattern. This does not apply to the &quot;s&quot; command, since it knows after the &quot;s&quot; verb that a pattern follows.</div>
</div><div><br></div><div>(Note that &quot;:&quot; is a valid sed command, although not widely used; it&#39;s a label for a branch instruction. You just gave it a rather odd-looking label, and the reinplace does nothing as a result.)</div>
<div><br></div>-- <br><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>
<div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div>
</div></div>