gitlab-ci: Add a manpage substitutions regression test

This catches the broken manpages in the autoconf build which appeared
after commit 2e497bf887 ("man: s/__/@/g") and were only partly
rectified by commit 0445705a8b ("man: Fix automake seddery").

Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
This commit is contained in:
Sven Joachim 2019-10-04 10:29:31 +02:00 committed by Michel Dänzer
parent de0d39f825
commit a505ecba10
2 changed files with 36 additions and 0 deletions

View File

@ -73,6 +73,8 @@ autotools-build-and-test:
- ../autogen.sh --prefix=/usr
- make -j$(nproc) distcheck
- PIGLIT_DIR=/root/piglit XTEST_DIR=/root/xts make -j$(nproc) check
- cd ..
- .gitlab-ci/manpages-check
meson-build-and-test:
extends: .common-build-and-test
@ -83,3 +85,4 @@ meson-build-and-test:
- meson -Dprefix=/usr -Dxephyr=true build/
- ninja -C build/ install
- ninja -C build/ test
- .gitlab-ci/manpages-check

33
.gitlab-ci/manpages-check Executable file
View File

@ -0,0 +1,33 @@
#!/bin/sh
find build/ -regex ".*\.[1-9]$" -exec grep -E \
@vendorversion@\|\
@xorgversion@\|\
@xservername@\|\
@xconfigfile@\|\
@projectroot@\|\
@apploaddir@\|\
@appmansuffix@\|\
@drivermansuffix@\|\
@adminmansuffix@\|\
@libmansuffix@\|\
@miscmansuffix@\|\
@filemansuffix@\|\
@logdir@\|\
@datadir@\|\
@mandir@\|\
@sysconfdir@\|\
@xconfigdir@\|\
@xkbdir@\|\
@XKB_DFLT_RULES@\|\
@XKB_DFLT_MODEL@\|\
@XKB_DFLT_LAYOUT@\|\
@XKB_DFLT_VARIANT@\|\
@XKB_DFLT_OPTIONS@\|\
@bundle_id_prefix@\|\
@modulepath@\|\
@suid_wrapper_dir@\|\
@default_font_path@\
'{}' + && { echo "Missing manpage substitutions detected!" >&2 ; exit 1; }
exit 0