Revision 4f511a13

b/autotools/check-man
1 1
#!/bin/bash
2 2
#
3 3

  
4
# Copyright (C) 2010 Google Inc.
4
# Copyright (C) 2010, 2012 Google Inc.
5 5
#
6 6
# This program is free software; you can redistribute it and/or modify
7 7
# it under the terms of the GNU General Public License as published by
......
24 24
  man --warnings --encoding=utf8 --local-file "$1" 2>&1 >/dev/null | \
25 25
  grep -v -e "cannot adjust line" -e "can't break line" | \
26 26
  grep .
27

  
28
! grep -F -q '\[em]' "$1" || \
29
  { echo "Unescaped dashes found in $1, use \\-- instead of --" 1>&2; exit 1; }

Also available in: Unified diff