NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Option -p in apropos(1)



On Tue, 17 May 2022, Rocky Hotas wrote:

I added the line in my repository sourcecode. Building a kernel is
straightforward, but what about this case? How to build and use apropos
from the sourcecode?


Building parts of userland is pretty straight-forward too. Assuming the
standard /usr/tools and /usr/obj dirs. exist, I use this script to
compile stuff:

---
#!/bin/sh

set -eu
V="TOOLDIR=/usr/tools MAKEOBJDIRPREFIX=/usr/obj MAKEVERBOSE=1"
make $V obj		# create build dirs.
exec make -j6 $V "$@"
---

To compile apropos:

$ cd /usr/src/usr.sbin/makemandb && compile apropos
# compile install PROGS=apropos		# as root
$ compile distclean

-RVP


Home | Main Index | Thread Index | Old Index