Commit 2fe59d00 authored by Loïc Minier's avatar Loïc Minier

Check manpages

parent 6a7c4804
......@@ -151,6 +151,12 @@ CHECK_SCRIPTS += \
pbuilder-uml.conf \
$(NULL)
NOINST_MANPAGES += \
debuild-pbuilder.1 \
pbuilder.8 \
pbuilderrc.5 \
pdebuild.1 \
$(NULL)
NOINST_SCRIPTS += \
debuild.sh \
testlib.sh \
......@@ -162,10 +168,9 @@ NOINST_SCRIPTS += \
test_pbuilder-satisfydepends-funcs \
test_testlib.sh \
$(NULL)
CHECK_MANPAGES += $(NOINST_MANPAGES)
CHECK_SCRIPTS += $(NOINST_SCRIPTS)
# TODO: check man pages
# TODO: check subdirs etc.
CHECK_SCRIPTS += $(foreach d,$(ALLDIRS),$($(d)_SCRIPTS))
......@@ -175,6 +180,7 @@ all:
check:
# syntax check
$(foreach script,$(CHECK_SCRIPTS),bash -n $(script)$(newline))
$(foreach mp,$(CHECK_MANPAGES),LANG=C MANWIDTH=80 man --warnings -E UTF-8 -l $(mp) >/dev/null$(newline))
# testsuite
$(foreach test,$(wildcard ./test_*),$(test)$(newline))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment