make-j

来自「distcc编译器的源代码.好像是readhat公司开发的.」· 代码 · 共 22 行

TXT
22
字号
#! /bin/sh# make-j script from Alexandre Oliva <aoliva@redhat.com> for use with distcc# Tests which machines are up, and runs Make with concurrency set# appropriately.hostlist=$DISTCC_HOSTSdistcc_port=4200DISTCC_HOSTS=count=0for h in $hostlist; do  echo trying $h... >&2  if test "x$h" = xlocalhost || nc -z $h $distcc_port; then    echo added $h... >&2    DISTCC_HOSTS=`echo $DISTCC_HOSTS $h` # remove leading blank    count=`expr $count + 1`  fidoneexport DISTCC_HOSTSexec make -j $count ${1+"$@"}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?