Przeglądaj źródła

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
Ton Voon 22 lat temu
rodzic
commit
3bcd17e390
1 zmienionych plików z 15 dodań i 1 usunięć
  1. 15 1
      tools/setup

+ 15 - 1
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