From 5037d3441d65f1fb6493c3b55137ef1b5eddd6b0 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 2 Oct 2005 22:17:38 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20#1465=20=20=20=20=20=20/etc/init.d/Xprint=20sho?= =?UTF-8?q?uld=20use=20PROJECTROOT=20from=20build=20(Grzegorz=20=20=20=20?= =?UTF-8?q?=20D=C4=3Fbrowski)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Xprint/etc/init.d/xprint.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Xprint/etc/init.d/xprint.cpp b/Xprint/etc/init.d/xprint.cpp index 56fae1d2b..dbfd1e139 100644 --- a/Xprint/etc/init.d/xprint.cpp +++ b/Xprint/etc/init.d/xprint.cpp @@ -176,6 +176,9 @@ export OPENWINHOME=/usr/openwin #elif defined(OS_AIX) XPROJECTROOT=/usr/lpp/X11 #else +#if defined(ProjectRoot) +[ -d ProjectRoot/bin ] && XPROJECTROOT=ProjectRoot +#endif [ -d /usr/X11/bin ] && XPROJECTROOT=/usr/X11 [ -d /usr/X11R6/bin ] && XPROJECTROOT=/usr/X11R6 #endif