diff options
author | Thiago da Silva <thiago@redhat.com> | 2016-02-25 16:06:56 -0500 |
---|---|---|
committer | Thiago da Silva <thiago@redhat.com> | 2016-02-25 16:07:28 -0500 |
commit | 85b4d65f3b75b96e537ccc89a7ad60e365a4446a (patch) | |
tree | 6e18cb1294977335823935648dbd2ba91c0b5011 /.manpages | |
parent | 0f60cf05f439521dd3098b0c83c6830537a74ba4 (diff) | |
download | python-swiftclient-85b4d65f3b75b96e537ccc89a7ad60e365a4446a.tar.gz |
adding .manpages script to swift client
this is the same script as in swift core
Change-Id: Ib9ea882cf7c1ba1d663254d38c7ac163b55e45da
Diffstat (limited to '.manpages')
-rwxr-xr-x | .manpages | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.manpages b/.manpages new file mode 100755 index 0000000..69fcfc7 --- /dev/null +++ b/.manpages @@ -0,0 +1,18 @@ +#!/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" |