diff options
| author | Wolfram Schneider <wosch@FreeBSD.org> | 1996-01-23 23:59:36 +0000 |
|---|---|---|
| committer | Wolfram Schneider <wosch@FreeBSD.org> | 1996-01-23 23:59:36 +0000 |
| commit | 2ae90f756e0b75053ce1238556c0dce8b5ce648c (patch) | |
| tree | f974609dad1c89cab43baf8c7a59022580a865bb | |
| parent | dec89a7984631d9c89f4a0b76b5421e3585423c7 (diff) | |
Notes
| -rw-r--r-- | usr.sbin/manctl/Makefile | 11 | ||||
| -rw-r--r-- | usr.sbin/manctl/manctl.8 | 41 | ||||
| -rw-r--r-- | usr.sbin/manctl/manctl.sh | 4 |
3 files changed, 48 insertions, 8 deletions
diff --git a/usr.sbin/manctl/Makefile b/usr.sbin/manctl/Makefile index 19b8baf6d5d8..1ba12acf36c0 100644 --- a/usr.sbin/manctl/Makefile +++ b/usr.sbin/manctl/Makefile @@ -1,11 +1,10 @@ # Makefile -# $Id: Makefile,v 1.5 1995/07/17 14:39:09 jkh Exp $ +# $Id: Makefile,v 1.6 1995/07/25 00:37:23 bde Exp $ -all: - @echo -n +MAN8= manctl.8 -install: all - ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 ${.CURDIR}/manctl.sh \ - ${DESTDIR}${BINDIR}/manctl +beforeinstall: + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + ${.CURDIR}/manctl.sh ${DESTDIR}${BINDIR}/manctl .include <bsd.prog.mk> diff --git a/usr.sbin/manctl/manctl.8 b/usr.sbin/manctl/manctl.8 new file mode 100644 index 000000000000..81ad47d0b2d7 --- /dev/null +++ b/usr.sbin/manctl/manctl.8 @@ -0,0 +1,41 @@ +.\" +.\" (c) Wolfram Schneider, Berlin, Germany. Public domain. +.\" +.\" $Id: manctl.8,v 1.1 1996/01/23 20:51:29 wosch Exp $ + +.Dd Jan 1996 +.Dt manctl 8 +.Os FreeBSD + +.Sh NAME +.Nm manctl +.Nd manipulating manual pages + +.Sh SYNOPSIS +.Nm manctl +.Op Fl compress +.Op Fl uncompress +.Op Fl purge +.Op Fl help +path ... + +.Sh DESCRIPTION +.Nm manctl +compress or uncompress manual pages in directory path. +If possible, .so's are replaced with hard links. + + +.Sh OPTIONS +.Bl -tag -width Ds +.It Fl help +Print options and exit. +.It Fl compress +Compress uncompressed man pages (elliminating .so's) +.It Fl uncompress +Uncompress compressed man pages. +.It Fl purge +Purge old formatted man pages (not implemented yet). + +.Sh SEE ALSO +.Xr man 1 , +.Xr catman 1 . diff --git a/usr.sbin/manctl/manctl.sh b/usr.sbin/manctl/manctl.sh index 83ee61995c60..c43f5e8aa6e6 100644 --- a/usr.sbin/manctl/manctl.sh +++ b/usr.sbin/manctl/manctl.sh @@ -30,7 +30,7 @@ # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $Id: manctl.sh,v 1.4 1994/04/18 18:46:50 csgr Exp $ +# $Id: manctl.sh,v 1.5 1995/02/15 00:07:59 jkh Exp $ # # manctl: # a utility for manipulating manual pages @@ -366,7 +366,7 @@ do_compress() # # dispatch options # -if [ $# = 0 ] ; then ctl_usage $0 ; fi ; +if [ $# -lt 2 ] ; then ctl_usage $0 ; fi ; case "$1" in -compress) shift ; do_compress "$@" ;; |
