From 3bcd17e3906c072a258e6ad7cc835071de10d3e7 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Fri, 27 Jun 2003 10:30:47 +0000 Subject: 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 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 -- cgit v0.10-9-g596f