0823624e1c
This package contains a tool to verify that the functions in the SYNOPSIS of a man page match the actual implementation.
4 lines
180 B
Bash
Executable file
4 lines
180 B
Bash
Executable file
#!/bin/sh
|
|
TMPFILE=/tmp/verify-synopsis.$$.c
|
|
mandoc -Ttree "$@" | awk -f @PREFIX@/libexec/dmpsynopsis.awk > "$TMPFILE" && gcc -c -o /dev/null -Wall "$TMPFILE" 2>&1
|
|
rm -f "$TMPFILE"
|