Statistics
| Branch: | Tag: | Revision:

root / autotools / check-man-warnings @ e37f47d3

History | View | Annotate | Download (945 Bytes)

1 a4f12da4 Michael Hanselmann
#!/bin/bash
2 a4f12da4 Michael Hanselmann
#
3 a4f12da4 Michael Hanselmann
4 4f511a13 Iustin Pop
# Copyright (C) 2010, 2012 Google Inc.
5 a4f12da4 Michael Hanselmann
#
6 a4f12da4 Michael Hanselmann
# This program is free software; you can redistribute it and/or modify
7 a4f12da4 Michael Hanselmann
# it under the terms of the GNU General Public License as published by
8 a4f12da4 Michael Hanselmann
# the Free Software Foundation; either version 2 of the License, or
9 a4f12da4 Michael Hanselmann
# (at your option) any later version.
10 a4f12da4 Michael Hanselmann
#
11 a4f12da4 Michael Hanselmann
# This program is distributed in the hope that it will be useful, but
12 a4f12da4 Michael Hanselmann
# WITHOUT ANY WARRANTY; without even the implied warranty of
13 a4f12da4 Michael Hanselmann
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 a4f12da4 Michael Hanselmann
# General Public License for more details.
15 a4f12da4 Michael Hanselmann
#
16 a4f12da4 Michael Hanselmann
# You should have received a copy of the GNU General Public License
17 a4f12da4 Michael Hanselmann
# along with this program; if not, write to the Free Software
18 a4f12da4 Michael Hanselmann
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 a4f12da4 Michael Hanselmann
# 02110-1301, USA.
20 a4f12da4 Michael Hanselmann
21 a4f12da4 Michael Hanselmann
set -e
22 a4f12da4 Michael Hanselmann
23 546d7c4f Iustin Pop
! LANG=en_US.UTF-8 MANWIDTH=80 \
24 650fd0c8 Iustin Pop
  man --warnings --encoding=utf8 --local-file "$1" 2>&1 >/dev/null | \
25 650fd0c8 Iustin Pop
  grep -v -e "cannot adjust line" -e "can't break line" | \
26 650fd0c8 Iustin Pop
  grep .