From owner-svn-ports-head@FreeBSD.ORG Fri Nov 21 14:54:12 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6BECB24F; Fri, 21 Nov 2014 14:54:12 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 58E43B1C; Fri, 21 Nov 2014 14:54:12 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id sALEsC1k018562; Fri, 21 Nov 2014 14:54:12 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id sALEsCVn018561; Fri, 21 Nov 2014 14:54:12 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201411211454.sALEsCVn018561@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Fri, 21 Nov 2014 14:54:12 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r372997 - head/Mk X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2014 14:54:12 -0000 Author: bapt Date: Fri Nov 21 14:54:11 2014 New Revision: 372997 URL: https://svnweb.freebsd.org/changeset/ports/372997 QAT: https://qat.redports.org/buildarchive/r372997/ Log: Add a new check-man target that will check the manpages inside the port for correctness against mandoc lint checker Modified: head/Mk/bsd.port.mk Modified: head/Mk/bsd.port.mk ============================================================================== --- head/Mk/bsd.port.mk Fri Nov 21 14:40:40 2014 (r372996) +++ head/Mk/bsd.port.mk Fri Nov 21 14:54:11 2014 (r372997) @@ -5221,6 +5221,24 @@ install-rc-script: .endif .endif +.if !target(check-man) +check-man: stage + @${ECHO_MSG} "====> Checking man pages (check-man)" + @mdirs= ; \ + for dir in ${MANDIRS:S/^/${STAGEDIR}/} ; do \ + [ -d $$dir ] && mdirs="$$mdirs $$dir" ;\ + done ; \ + err=0 ; \ + for dir in $$mdirs; do \ + for f in $$(find $$dir -name "*.gz"); do \ + ${ECHO_CMD} "===> Checking $${f##*/}" ; \ + gunzip -c $$f | mandoc -Tlint -Werror || zgrep -q "^.so" $$f && continue ; \ + err=1 ; \ + done ; \ + done ; \ + exit $$err +.endif + # Compress all manpage not already compressed which are not hardlinks # Find all manpages which are not compressed and are hadlinks, and only get the list of inodes concerned, for each of them compress the first one found and recreate the hardlinks for the others # Fixes all dead symlinks left by the previous round