blob: 9383cf465be068f08929f74b740e2fac27ce0963 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
#
# Copyright 2001-2002 Double Precision, Inc. See COPYING for
# distribution information.
srcfile="$1"
dstfile="$2"
options="$3"
if test ! -f $srcfile
then
echo "$srcfile: not found" >&2
exit 1
fi
rm -rf $dstfile.tmp
mkdir $dstfile.tmp
xsltproc --nonet -o $dstfile.tmp/ $options `dirname $0`/manpages.xsl $srcfile || exit 1
xsltproc --nonet `dirname $0`/fixhtml.xsl $dstfile.tmp/* >$dstfile.tmp2 || exit 1
rm -rf $dstfile.tmp
mv $dstfile.tmp2 $dstfile || exit 1
|