Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / mantools / user2var
blobe0107045314d59f906ad1077306287676e5614c0
1 #!/bin/sh
3 # user2var - create (parameter name -> variable name) mapping
5 # Usage: user2var mail_params.h
7 awk '
9 /^#define[ ]+VAR_/ { name=$3 }
11 /^extern.*var_/ { print "table[" name "] = \"" $3 "\"" }
13 ' "$@" | tr -d ';*'