selinux-policy/support/get_type_attr_decl.sed

14 lines
261 B
Sed
Raw Normal View History

#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
2006-03-21 16:06:19 +00:00
/^[[:blank:]]*(attribute|type(alias)?) /{
s/^[[:blank:]]+//
p
}
:nextline