File openswan_03_build-groff.dif of Package openswan
--- doc/utils/mkhtmlman
+++ doc/utils/mkhtmlman 2008/09/04 11:39:08
@@ -29,7 +29,7 @@ do
cp $f $dir/$b
$TOPDIR/packaging/utils/manlink $f | while read from to
do
- (cd $dir; ln -s $f $to)
+ (cd $dir; ln -sf $f $to)
done
done
@@ -37,7 +37,8 @@ done
refpat='"http://localhost/cgi-bin/man/man2html?\([1-8]\)+\([^"]*\)"'
for f in $dir/*.[1-8]
do
- man2html <$f | sed 's;'"$refpat"';"\2.\1.html";g' >$f.html
+ #man2html <$f | sed 's;'"$refpat"';"\2.\1.html";g' >$f.html
+ groff -m mandoc -T html <$f | sed -e "s/\(ipsec[^(<]*\)\(<[^>]\+>\)\?(\([0-9]\))/<a href=\"$dir\/\1.\3.html\">\1(\3)<\/a>\2/g" >$f.html
done
# remove the source files (must wait until after all builds, due to symlinks)