2 # Script to extract dirtectives from lighttpd source
3 # Language: lighttpd config, http://www.lighttpd.net/
4 # Version Info: $Revision$
5 # Maintainer: Elan Ruusamae <glen@pld-linux.org>
6 # Last Change: $Date$ UTC
10 if [ $# = 0 -o ! -d "$d" ]; then
11 echo >&2 "${0#*/}: <lighttpd-src>"
16 for a in $d/configfile.c $d/mod_*.c; do
17 [[ "$a" = */mod_skeleton.c ]] && continue
19 cpp -DHAVE_LSTAT -E $a 2>/dev/null | sed -n '
20 /T_CONFIG_DEPRECATED/d
23 /da_ext->value->used;/,$d
25 /T_CONFIG_SCOPE_CONNECTION\|T_CONFIG_SCOPE_SERVER/{
26 /"\([^"]\+\)"/s/.*"\([^"]\+\)".*/\t\\ \1/p
29 done | sort -u | grep -v not-working