From: Michael Tremer Date: Sun, 1 Feb 2009 11:14:30 +0000 (+0100) Subject: Start graphical distcc monitor if available. X-Git-Tag: v3.0-alpha1~44^2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce6e602490b223796a44f51bc0ff04def14d5d1e;p=ipfire-3.x.git Start graphical distcc monitor if available. --- diff --git a/tools/make-compilers b/tools/make-compilers index 1a86ccf8a..4400b9da1 100755 --- a/tools/make-compilers +++ b/tools/make-compilers @@ -32,6 +32,15 @@ ccache_stats() { distcc_mon() { + # run gnome thing if we can... + if [ -n "$DISPLAY" ]; then + monitor=$(which distccmon-gnome 2>/dev/null) + if [ -n "$monitor" ]; then + DISTCC_DIR=$BASEDIR/distcc $monitor & + return 0 + fi + fi + INTERVAL=1 # in seconds if [ -e $BASEDIR/distcc ]; then