Coda File System

Re: cvs coda build buglets, basically works very well

From: Jan Harkes <>
Date: Tue, 7 Dec 2004 23:35:42 -0500
On Mon, Dec 06, 2004 at 11:37:26AM -0500, Greg Troxel wrote:
> I just updated and tried to build, and a minor issue with docbook2man.
> The tools script uses 'which', but fails when which outputs:
> no db2man in /usr/amanda/bin /usr/amanda/sbin /home/gdt/bin [etc.]

I guess that would be either 'no docbook2man', or 'no docbook-to-man',
db2man is the wrapper script in coda/tools/.

Is the which failure output to stdout or stderr? Maybe I can redirect it
to /dev/null. I don't really know of other ways to discover whether a
program is installed or not, perhaps the following works?

  sh_which () {
    ( IFS=: ; for p in $PATH ; do [ -x "$p/$1" ] && echo "$p/$1" ; done )

> The requirement for db2man should be described in coda/README.

I wanted to add the pre-formatted nroff manpages too, for people who
don't have docbook. However that didn't work well in my setup with
separate source and build directories. If anyone has a solution for
that, I'm open for suggestions.

Received on 2004-12-07 23:37:01