[Slackbuilds-users] Using SBo with distcc
larryhaja at gmail.com
Sun Apr 14 04:00:42 UTC 2013
The following may not work for 100% of use cases but does work in simple
tests with "make" only on the line taking certain whitespace into account.
There are probably other regex's I'm missing but it probably accounts for
sed -i 's|^[ \t]*make[ \t\r\n]*$|& CC=distcc \$NUMJOBS|'
On Sat, Apr 13, 2013 at 3:50 PM, <openpandora at free.fr> wrote:
> Hi !
> I plan to use distcc to compile a lot of SBo packages.
> As i know no other method (maybe there's an easier one ?), i use sed to
> alter the *.SlackBuild.sbopkg :
> This sed job will replace the "make $NUMJOBS" with "make CC=distcc
> sed '/NUMJOBS/s/make/make CC=distcc/g'
> But i don't know how to replace the lines with "make" only.
> Any tips ?
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - http://slackbuilds.org/faq/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SlackBuilds-users