File tree 2 files changed +26
-0
lines changed
2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ RET=0
4
+ for MAN in doc/manpages/* ; do
5
+ OUTPUT=$( LC_ALL=en_US.UTF-8 MANROFFSEQ=' ' MANWIDTH=80 man --warnings -E UTF-8 -l \
6
+ -Tutf8 -Z " $MAN " 2>&1 > /dev/null)
7
+ if [ -n " $OUTPUT " ] ; then
8
+ RET=1
9
+ echo " $MAN :"
10
+ echo " $OUTPUT "
11
+ fi
12
+ done
13
+
14
+ if [ " $RET " -eq " 0" ] ; then
15
+ echo " All manpages are fine"
16
+ fi
17
+
18
+ exit " $RET "
Original file line number Diff line number Diff line change @@ -164,6 +164,14 @@ Installing Sphinx:
164
164
#. Install sphinx (On Ubuntu: `sudo apt-get install python-sphinx `)
165
165
#. `python setup.py build_sphinx `
166
166
167
+ --------
168
+ Manpages
169
+ --------
170
+
171
+ For sanity check of your change in manpage, use this command in the root
172
+ of your Swift repo::
173
+
174
+ ./.manpages
167
175
168
176
---------------------
169
177
License and Copyright
You can’t perform that action at this time.
0 commit comments