From 3bcd17e3906c072a258e6ad7cc835071de10d3e7 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Fri, 27 Jun 2003 10:30:47 +0000 Subject: [PATCH] Fiddling as Solaris' which command is broken git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@559 f882894a-f735-0410-b71e-b25c423dba1c --- tools/setup | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/tools/setup b/tools/setup index bbc8266..af5d1aa 100755 --- a/tools/setup +++ b/tools/setup @@ -9,4 +9,18 @@ if [ -f debian/rules ] ; then chmod +x debian/rules fi -cd doc && make +# Lots of fiddling as Solaris' which command does give error if which fails +docbook=0 +if [ `uname -s` = "SunOS" ] ; then + if [ "`which docbook2html`" = "/"* ] ; then + docbook=1 + fi +else + if which docbook2html ; then + docbook=1 + fi +fi + +if [ $docbook = 1 ] ; then + cd doc && make +fi -- 2.30.2