add a manpage
check for argument 'path'
This commit is contained in:
parent
dec89a7984
commit
2ae90f756e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13601
@ -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>
|
||||
|
41
usr.sbin/manctl/manctl.8
Normal file
41
usr.sbin/manctl/manctl.8
Normal file
@ -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 .
|
@ -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 "$@" ;;
|
||||
|
Loading…
Reference in New Issue
Block a user