<div dir="ltr"># May need to override this (eg. for logging)<br>exec_cmd() {<br>    exec "$@"<br>}<br><br># This is my official name<br>MYNAME=mk<br><br>Mydir=`dirname $0`<br><br># for customization<br>unset mk_cmd_hooks mk_setup_hooks mk_finish_hooks<br>

<br># override this for more complex requirements<br>mk_target_machine() {<br>    MACHINE=$1<br>    export MACHINE<br>}<br><br>. $Mydir/sb-env.sh<br><br># for backwards compatability<br>mk_cmd_hook() { :; }<br>add_hooks mk_cmd_hooks mk_cmd_hook<br>

<br>run_hooks mk_setup_hooks<br>run_hooks mk_cmd_hooks<br>run_hooks mk_cmd_hooks_lifo LIFO<br>run_hooks mk_finish_hooks<br><br># we generally cannot afford to consume the command line<br># since virtually any option might be for $cmd<br>

# but we'll make an exception for these<br>while :<br>do<br>    case "$1" in<br>    --) shift; break;;          # stop trying to interpret anything<br>    --doc) __doc;;              # does not return<br>    --help) __help;;            # does not return<br>

    --machine) mk_target_machine $2; shift 2;;<br>    *) break;;<br>    esac<br>done<br><br>case $Myname in<br>mk|mk-*|*make)<br>        nice=${nice:-nice}<br>        cmd=${cmd:-${REAL_MAKE:-/usr/bin/make}};;<br>*)      cmd=${cmd:-$Myname.real};;<br>

esac<br># at last! do some work<br>exec_cmd $nice $cmd "$@"<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 13, 2014 at 5:31 PM, Vanush <span dir="ltr"><<a href="mailto:misha@cs.nuim.ie" target="_blank">misha@cs.nuim.ie</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Thu, Mar 13, 2014 at 05:23:14PM +0530, yudhistir reddy wrote:<br>
> Sorry for that , that was silly mistake by me .<br>
><br>
> Here is the use case , i did :<br>
><br>
> 1. eval `pump --startup`<br>
> checked pump mode variables , i can see INCLUDE_SERVER_PORT set to<br>
> /tmp/distcc-pump.LIlIcs/socket<br>
><br>
><br>
> 2. started build<br>
> mk kernel -j30 WITH_DISTCC=yes<br>
> Build finished with pump mode  ( But actually it is turing back to Normal<br>
> mode ) .<br>
> I see the warning messages in distcclog as like below<br>
<br>
</div>can you show us your "mk" wrapper?<br>
<br>
Misha<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
--<br>
Vanush "Misha" Paturyan<br>
Senior Technical Officer<br>
Room 1.37<br>
Computer Science Department<br>
NUI Maynooth<br>
</div></div></blockquote></div><br></div>