Date: Thu, 25 May 2017 15:54:03 +0000 (UTC) From: Glen Barber <gjb@FreeBSD.org> To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r50283 - head/share/examples Message-ID: <201705251554.v4PFs3x9090189@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705251554.v4PFs3x9090189>