Debian Codegraph @

man/CHECK_ERRWARN_MANPAGES.sh

raw
1 #! /bin/sh
2
3 # Run this in source tree, to check whether all error/warning man pages mentioned
4 # in the systemtap sources actually exist.
5 set -e
6
7 # NB: we don't want this regexp to match itself
8 (cd ..; git grep -E '\[man (error|warning)::.*\]' | cut -f2 -d[ | cut -f1 -d] | cut -f2 -d' ') | while read manpage
9 do
10 file="$manpage".7stap
11 if [ -f $file ]; then
12 echo "ok $file"
13 else
14 echo "KO $file"
15 fi
16 done