check.docs

来自「Pango is a library for layout and render」· DOCS 代码 · 共 44 行

DOCS
44
字号
#!/bin/shLANG=Cif test -z "$DOC_MODULE"; then	# extract from Makefile	eval `grep '^DOC_MODULE' Makefile | sed 's/ //g'`	if test -z "$DOC_MODULE"; then		echo Failed extracting DOC_MODULE from Makefile 1>&2		echo Try setting DOC_MODULE env var manually 1>&2		exit 1	fifitest -z "$srcdir" && srcdir=.status=0if ! test -f "$DOC_MODULE-undocumented.txt" -a -f "$DOC_MODULE-unused.txt"; then	echo At least one of "$DOC_MODULE-undocumented.txt" and "$DOC_MODULE-unused.txt" not found.	echo Skipping test.	exit 0fistatus=0if test -f "$DOC_MODULE-unused.txt"; then	unused=`cat "$DOC_MODULE-unused.txt"`	if test -n "$unused"; then		echo Unused documentated symbols: 1>&2		cat "$DOC_MODULE-unused.txt" 1>&2		status=1	fifiif test -f "$DOC_MODULE-undocumented.txt"; then	if ! grep '^0 symbols incomplete' "$DOC_MODULE-undocumented.txt" >/dev/null ||	   ! grep '^0 not documented'     "$DOC_MODULE-undocumented.txt" >/dev/null; then		echo Incomplete or undocumented symbols: 1>&2		cat "$DOC_MODULE-undocumented.txt" 1>&2		status=1	fifiexit $status

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?