openbsd-ports/x11/tk/8.5/patches/patch-unix_installManPage
stu 33cb9fa5a3 Update to 8.5.10, remove patches for changes that have gone upstream,
move man dir to Tk's lib dir, properly preprocess man pages.

ok sebastiap@, sthen@
2011-10-17 15:19:22 +00:00

23 lines
713 B
Plaintext

$OpenBSD: patch-unix_installManPage,v 1.1 2011/10/17 15:19:22 stu Exp $
--- unix/installManPage.orig Thu Jun 23 09:18:36 2011
+++ unix/installManPage Mon Oct 10 07:58:17 2011
@@ -93,6 +93,9 @@ esac
SrcDir=`dirname $ManPage`
+Section=0
+Cat='/usr/local/bin/groff -Tascii -mandoc -Wall -mtty-char -P -c -- -'
+
########################################################################
### Process Page to Create Target Pages
###
@@ -104,7 +107,7 @@ for Target in $Names; do
if test -z "$First" ; then
First=$Target
sed -e "/man\.macros/r $SrcDir/man.macros" -e "/man\.macros/d" \
- $ManPage > $Dir/$First
+ $ManPage | $Cat > $Dir/$First
chmod 444 $Dir/$First
$Gzip $Dir/$First
else