need help with reinplace

Helmut K. C. Tessarek tessarek at evermeet.cx
Sat Nov 3 00:40:55 UTC 2018


Thanks a lot for the explanation. It would be great, if this were
somewhere in the documentation.

Or at least a reference to what `subst -nobackslashes -nocommands` does
and how to use it to build useful regexes. ;-)

On 2018-11-02 20:10, Joshua Root wrote:

> set reinplace_cmd [subst -nobackslashes -nocommands
> {s/AC_INIT\(\[tmux\], (next-[0-9]+\.[0-9]+)\)/AC_INIT([tmux], \1
> (${version}))/g}]
> reinplace -E $reinplace_cmd ${worksrcpath}/configure.ac

I ended up using this one, since it had the entire regex on one line.

Thanks again!

Cheers,
  K. C.

-- 
regards Helmut K. C. Tessarek              KeyID 0x172380A011EF4944
Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20181102/8aa65d8a/attachment-0001.sig>


More information about the macports-dev mailing list