Mercurial > masqmail
view misc/are-options-documented @ 187:bd7c52a36b0c
improved mservdetect in various ways
errors are handled better (no segfaults anymore)
copied the relevant part of interface.c into mservdetect.c
described how I think the mserver protocol works
author | meillo@marmaro.de |
---|---|
date | Thu, 15 Jul 2010 00:14:26 +0200 |
parents | 867bb186a829 |
children |
line wrap: on
line source
#!/bin/sh # # checks if all recognized options are documented # run from masqmail's repository root dir # # Note: this script is far from perfect, but its development time to # usage value ratio is quite good :-) docs="/tmp/masqmail-opts-docs.$$" code="/tmp/masqmail-opts-code.$$" cat man/masqmail.*.5 | grep -o '^\\fB[^(\\]*\\f.' | egrep -v 'OBSOLETE|http://' | sed 's,^\\fB,,; s,[\\ =].*,,' | sort -u | grep -v '^val$' >"$docs" cat src/conf.c | grep 'lval,.*"' | sed 's,[^"]*",,; s,"\, [0-9]*,",; s,".*,,' | sort -u >"$code" diff -U 0 "$code" "$docs" | grep -v '^@@' rm -f "$docs" "$code"