85b4d65f3b
this is the same script as in swift core Change-Id: Ib9ea882cf7c1ba1d663254d38c7ac163b55e45da
19 lines
357 B
Bash
Executable File
19 lines
357 B
Bash
Executable File
#!/bin/sh
|
|
|
|
RET=0
|
|
for MAN in doc/manpages/* ; do
|
|
OUTPUT=$(LC_ALL=en_US.UTF-8 MANROFFSEQ='' MANWIDTH=80 man --warnings -E UTF-8 -l \
|
|
-Tutf8 -Z "$MAN" 2>&1 >/dev/null)
|
|
if [ -n "$OUTPUT" ] ; then
|
|
RET=1
|
|
echo "$MAN:"
|
|
echo "$OUTPUT"
|
|
fi
|
|
done
|
|
|
|
if [ "$RET" -eq "0" ] ; then
|
|
echo "All manpages are fine"
|
|
fi
|
|
|
|
exit "$RET"
|