Mercurial > masqmail
view devel/are-options-documented @ 434:f2a7271746d1 default tip
Removes Freshmeat.net from the docs
The site, which was later renamed to freecode.com, is no longer
maintained (contains only a static copy).
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Sat, 07 Feb 2015 11:45:07 +0100 (2015-02-07) |
parents | 4905a1d9e6a7 |
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 '^@@' | sed 's/^---.*/--- code/;s/^+++.*/+++ docs/' rm -f "$docs" "$code"