NetBSD/gnu/dist/postfix/mantools/var2user
2005-08-18 21:00:20 +00:00

14 lines
222 B
Bash
Executable File

#!/bin/sh
# var2user - create (variable name -> parameter name) mapping
# Usage: var2user mail_params.h
awk '
/^#define[ ]+VAR_/ { name=$3 }
/^extern.*var_/ { print "table[\"" $3 "\"] = " name }
' "$@" | tr -d ';*'