summaryrefslogtreecommitdiff
path: root/test/script/check-tag-alignment
blob: d41db1604009dc22263de4ec26d815ba4434526c (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash

exit_code=0

# Documentation tags need to be aligned to the right margin, so look for
# tags which aren't at the right margin.
grep ' \*[^*]\+\*$' doc/ -r \
    | awk '{ sep = index($0, ":"); if (length(substr($0, sep + 1 )) < 79) { print } }' \
    | grep . && exit_code=1

exit $exit_code