selinux-policy/support/get_type_attr_decl.sed
2006-07-12 20:32:27 +00:00

14 lines
261 B
Sed

#n
# print out type and attribute declarations that
# are not inside require and optional blocks.
/require \{/,/} # end require/b nextline
/optional \{/,/} # end optional/b nextline
/^[[:blank:]]*(attribute|type(alias)?) /{
s/^[[:blank:]]+//
p
}
:nextline