packaging: remove old options to find hidden files
[platform/upstream/findutils.git] / build-aux / man-lint.sh
1 #! /bin/sh
2
3 rv=0
4 srcdir="$1" ; shift
5
6 for manpage
7 do
8   what="lint check on manpage $manpage"
9   echo -n "$what: "
10   messages="$( troff -t -man ${srcdir}/${manpage} 2>&1 >/dev/null )"
11   if test -z "$messages" ; then
12       echo "passed"
13   else
14       echo "FAILED:" >&2
15       echo "$messages"     >&2
16       rv=1
17   fi
18 done
19 exit $rv