From owner-svn-doc-head@freebsd.org Thu May 25 15:54:05 2017 Return-Path: Delivered-To: svn-doc-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 10BFFD82DA7; Thu, 25 May 2017 15:54:05 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::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 D55161DFD; Thu, 25 May 2017 15:54:04 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v4PFs38q090190; Thu, 25 May 2017 15:54:03 GMT (envelope-from gjb@FreeBSD.org) Received: (from gjb@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v4PFs3x9090189; Thu, 25 May 2017 15:54:03 GMT (envelope-from gjb@FreeBSD.org) Message-Id: <201705251554.v4PFs3x9090189@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: gjb set sender to gjb@FreeBSD.org using -f From: Glen Barber Date: Thu, 25 May 2017 15:54:03 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r50283 - head/share/examples X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 May 2017 15:54:05 -0000 Author: gjb Date: Thu May 25 15:54:03 2017 New Revision: 50283 URL: https://svnweb.freebsd.org/changeset/doc/50283 Log: Skip lines starting with a comment or whitespace. Sponsored by: The FreeBSD Foundation Modified: head/share/examples/check-manref.sh Modified: head/share/examples/check-manref.sh ============================================================================== --- head/share/examples/check-manref.sh Thu May 25 15:50:52 2017 (r50282) +++ head/share/examples/check-manref.sh Thu May 25 15:54:03 2017 (r50283) @@ -56,6 +56,12 @@ while [ "$x" != "$lastline" ]; do wol_l=$x; word_on_line; if [ "$last" ]; then + echo "${wol_w}" | grep -Eq "^[0-9]+:(<\!--| )" + skip=$? + if [ ${skip} -eq 0 ]; then + last= + continue + fi if [ "$last" = "$wol_w" ]; then echo "Duplicate \"$last\" (l. $x)."; exit 1;