Re: [Slackbuilds-users] Using SBo with distcc

2013-04-14 Thread openpandora
slackbuilds-users@slackbuilds.org Envoyé: Dimanche 14 Avril 2013 06:00:42 Objet: Re: [Slackbuilds-users] Using SBo with distcc 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

[Slackbuilds-users] Using SBo with distcc

2013-04-13 Thread openpandora
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 $NUMJOBS sed '/NUMJOBS/s/make/make CC=distcc/g'

Re: [Slackbuilds-users] Using SBo with distcc

2013-04-13 Thread Larry Hajali
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 most occurrences. sed -i 's|^[ \t]*make[ \t\r\n]*$| CC=distcc \$NUMJOBS|'