blob: f9cb52e969bb97e36e6bba975c72d8f1171590ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#! /bin/sh
#
# Script to format manpages to dvi.
# Copyright (c) 1997 Tobias Begalke (tb@lst.de)
#
# Part of release 1.6g of the man suite.
#
groff="groff -Tdvi -mandoc"
if [ ! $# = 1 ]; then
echo "$0: usage:"
echo " $0 [topic] > topic.dvi"
exit 1
fi
location=`man -c -w $1`
if [ "$location" = "" ]; then
exit 1
fi
case `file $location` in
*gzip* )
zcat $location | $groff
;;
*bzip2* )
bzcat $location | $groff
;;
*troff* )
$groff $location
;;
esac
|