summaryrefslogtreecommitdiffstats
path: root/usr.sbin/manctl
diff options
context:
space:
mode:
authorwosch <wosch@FreeBSD.org>1996-01-23 23:59:36 +0000
committerwosch <wosch@FreeBSD.org>1996-01-23 23:59:36 +0000
commit625f6e5911104defff5ea81fc38d8af45a58e891 (patch)
treef974609dad1c89cab43baf8c7a59022580a865bb /usr.sbin/manctl
parente7f0ee99408bb327cddc950af2ab5e231de52382 (diff)
downloadFreeBSD-src-625f6e5911104defff5ea81fc38d8af45a58e891.zip
FreeBSD-src-625f6e5911104defff5ea81fc38d8af45a58e891.tar.gz
add a manpage
check for argument 'path'
Diffstat (limited to 'usr.sbin/manctl')
-rw-r--r--usr.sbin/manctl/Makefile11
-rw-r--r--usr.sbin/manctl/manctl.841
-rw-r--r--usr.sbin/manctl/manctl.sh4
3 files changed, 48 insertions, 8 deletions
diff --git a/usr.sbin/manctl/Makefile b/usr.sbin/manctl/Makefile
index 19b8baf..1ba12ac 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 0000000..81ad47d
--- /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 83ee619..c43f5e8 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 "$@" ;;
OpenPOWER on IntegriCloud