summaryrefslogtreecommitdiff
path: root/pkg/bubblewrap/caps.awk
blob: 162ba513c825eb3ab1c7f20dd35217367eb61d7e (plain)
1
2
3
4
5
6
7
8
9
BEGIN {
	print "static const char *const cap_names[] = {"
}
/^#define CAP_[^[:space:]]+[[:space:]]+[0-9]+[[:space:]]*$/ {
	printf "\t[%d] = \"%s\",\n", $3, tolower($2)
}
END {
	print "};"
}