Catch compressed manual pages.

This commit is contained in:
zhuk 2016-03-23 16:30:38 +00:00
parent ba206ee728
commit 8fc9961ca6
3 changed files with 9 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/ksh
#
# $OpenBSD: portcheck,v 1.104 2016/03/22 21:25:53 naddy Exp $
# $OpenBSD: portcheck,v 1.105 2016/03/23 16:30:38 zhuk Exp $
# Copyright (c) 2013 Vadim Zhukov
#
# Permission to use, copy, modify, and distribute this software for any
@ -929,6 +929,8 @@ sub_checks() {
#
# * Manual (man and info) pages should go under ${PREFIX}/{man,info},
# not under ${PREFIx}/share/{man,info}.
#
# * Manual pages shouldn't be compressed.
check_plist() {
$debugging && echo "CALLED: check_plist($*)" >&2
@ -1177,6 +1179,9 @@ check_plist() {
share/info/*)
wrong_info=true
;;
"@man "*.gz)
err "${portref}compressed $l"
;;
esac
done

View File

@ -1,2 +1,3 @@
compressed @man man/man1/bar.1.gz
info pages should go under ${PREFIX}/info/ rather than under ${PREFIX}/share/info/
manual pages should go under ${PREFIX}/man/ rather than under ${PREFIX}/share/man/

View File

@ -1,4 +1,5 @@
@comment $OpenBSD: PLIST,v 1.1 2014/05/06 11:02:04 zhuk Exp $
@comment $OpenBSD: PLIST,v 1.2 2016/03/23 16:30:38 zhuk Exp $
@man man/man1/bar.1.gz
share/man/
share/man/man1/
share/man/man1/foo.1