Sync usage with man page.
[netbsd-mini2440.git] / usr.sbin / cron / putman.sh
blob3f2d1d1add49e4e6b45395b0ced0bd8956946c19
1 #!/bin/sh
3 # putman.sh - install a man page according to local custom
4 # vixie 27dec93 [original]
6 # $Id: putman.sh,v 1.1 1994/01/05 20:40:15 jtc Exp $
8 PAGE=$1
9 DIR=$2
11 SECT=`expr $PAGE : '[a-z]*.\([0-9]\)'`
13 [ -d $DIR/man$SECT ] && {
14 set -x
15 cp $PAGE $DIR/man$SECT/$PAGE
16 set +x
17 } || {
18 set -x
19 nroff -man $PAGE >$DIR/cat$SECT/`basename $PAGE .$SECT`.0
20 set +x
23 exit 0