#
# read_rules
# Reads the specified rules file for the specified block.
#
# Parameters:    $1      The block name to search for.
#

read_rules() {
   sed -e '/^#/d' -e '/^$/d' | sed -n "/^${1}:/,/^:${1}$/p" | 
   grep -Fv "${1}:" | grep -Fv ":${1}" | sed -e "s/^[ \t]*//"
}
