📄 distcc.sh
字号:
#! /bin/sh# This file, contributed by Dimitri PAPADOPOULOS-ORFANOS <papadopo@shfj.cea.fr># may be installed as "cc" somewhere on your $PATH ahead of the real gcc. That# allows you to just use regular Makefiles without modifying them to change# hardcoded calls to cc. # This script will be a bit slow because of the overhead of running# things through a shell. In a future release, this function should# be supported directly by distcc, which should be a bit faster.DISTCC_HOME=/usr/local/distccname=`basename $0`if [ "$name" = distcc ]; then echo "In normal use distcc is not called by its real name." 1>&2 echo "Instead create links to the actual compiler you wish to run, e.g." 1>&2 echo " ln -s distcc gcc" 1>&2 echo "and make sure the link is before the real compiler in your path." 1>&2 exit 1fiunset foundIFS=:for item in $PATH; do if [ -x "$item/$name" -a ! -d "$item/$name" ]; then if [ `cd $item; /bin/pwd` != `/bin/pwd` ]; then found=true break fi fidoneif [ -n "$found" ]; then exec "distcc $item/$name $@"else echo "$name: not found" 1>&2fiexit 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -