reinplace

Ryan Schmidt ryandesign at macports.org
Thu Nov 22 10:09:27 UTC 2018



On Nov 18, 2018, at 20:52, Mark Brethen wrote:

> I tried to chain reinplace a file? i.e.
> 
> reinplace "s|@@PREFIX@@|${prefix}|g" \
>        "s|@@CFLAGS@@|${configure.cflags} ${PICFLAG}|g" \
>        "s|@@CC@@|${configure.cc}|g” ${worksrcpath}_SHARED/Make.inc
> 
> but this failed. Is there another way besides breaking them up into separate reinplace statements?

Nope, reinplace supports running a single regular expression over multiple files, but not multiple regular expressions.



More information about the macports-dev mailing list