mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-21 04:30:34 +00:00
This is intended for use with pkg/embeddedyamls/yamls.go from the operator. Signed-off-by: Stephen Kitt <skitt@redhat.com>
19 lines
268 B
Awk
Executable File
19 lines
268 B
Awk
Executable File
#!/usr/bin/awk -f
|
|
|
|
# Start of a file entry
|
|
/= `/ {
|
|
outfile = gensub("_yaml$", ".yaml", "1", $1)
|
|
print "Writing " outfile
|
|
print substr($0, index($0, "`") + 1) > outfile
|
|
next
|
|
}
|
|
|
|
/^`$/ {
|
|
outfile = ""
|
|
next
|
|
}
|
|
|
|
outfile != "" {
|
|
print >> outfile
|
|
}
|