]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Start graphical distcc monitor if available.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 1 Feb 2009 11:14:30 +0000 (12:14 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 1 Feb 2009 11:14:30 +0000 (12:14 +0100)
tools/make-compilers

index 1a86ccf8aae9be7ff167bd65aed4080b7754b5f4..4400b9da1839acee57c8c44ef7f27042e1a4dc90 100755 (executable)
@@ -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