Skip to content

Commit

Permalink
Fix error check for manpages
Browse files Browse the repository at this point in the history
It seems that the warning message of the man command has been changed
from "can't break line" to "cannot break line" in the recent version.
  • Loading branch information
k-takata committed Dec 19, 2023
1 parent f83deed commit 1a3c7b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ nsis/lang |Windows用インストーラーの翻訳フ

ファイル単体をチェックする場合は以下のコマンドを使う。

$ LC_ALL=en_US.UTF-8 MANROFFSEQ='' MANWIDTH=80 man --warnings -E UTF-8 -l -Tutf8 -Z vim-ja.UTF-8.1 2>&1 > /dev/null | grep -v "cannot adjust line\|can't break line"
$ LC_ALL=en_US.UTF-8 MANROFFSEQ='' MANWIDTH=80 man --warnings -E UTF-8 -l -Tutf8 -Z vim-ja.UTF-8.1 2>&1 > /dev/null | grep -v "cannot adjust line\|\(cannot\|can't\) break line"

(末尾の `grep -v` は、日本語の場合に大量に表示される `cannot adjust line`
`can't break line` を除外するためのもの。)
`cannot break line` (あるいは `can't break line`) を除外するためのもの。)

参照: <https://lintian.debian.org/tags/manpage-has-errors-from-man.html>

Expand Down
2 changes: 1 addition & 1 deletion runtime/doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test:
for i in $(JA_FILES); do \
echo Checking $$i; \
LC_ALL=en_US.UTF-8 MANROFFSEQ='' MANWIDTH=80 man --warnings -E UTF-8 -l -Tutf8 -Z $$i > $$i.log 2>&1 > /dev/null; \
grep -v "cannot adjust line\|can't break line" $$i.log && exit 1 || :; \
grep -v "cannot adjust line\|\(cannot\|can't\) break line" $$i.log && exit 1 || :; \
done

clean:
Expand Down

0 comments on commit 1a3c7b9

Please sign in to comment.