File: comment_move_decl.sed

package info (click to toggle)
refpolicy 2%3A2.20210203-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 16,044 kB
  • sloc: python: 2,171; makefile: 626; sh: 174; sed: 21; xml: 13; awk: 7
file content (16 lines) | stat: -rw-r--r-- 890 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# comment out lines that are moved by the build
# process, so line numbers provided by m4 are preserved.

# lines in require and optional blocks are not moved
/require \{/,/} # end require/b nextline
/optional \{/,/} # end optional/b nextline

/^[[:blank:]]*(attribute(_role)?|type(alias)?) /s/^/# this line was moved by the build process: &/
/^[[:blank:]]*(port|node|netif|genfs|ibpkey|ibendport)con /s/^/# this line was moved by the build process: &/
/^[[:blank:]]*fs_use_(xattr|task|trans) /s/^/# this line was moved by the build process: &/
/^[[:blank:]]*sid /s/^/# this line was moved by the build process: &/
/^[[:blank:]]*bool /s/^/# this line was moved by the build process: &/
/^[[:blank:]]*role[[:blank:]]+[a-zA-Z_]+[[:blank:]]*;/s/^/# this line was moved by the build process: &/
/^[[:blank:]]*user [a-zA-Z_]+ roles /s/^/# this line was moved by the build process: &/

:nextline