Revision be85cfc4dbef9ffa177770f8607fd4a85445565e authored by Taylor Blau on 30 September 2022, 21:22:02 UTC, committed by Taylor Blau on 06 October 2022, 21:43:08 UTC
Signed-off-by: Taylor Blau <me@ttaylorr.com>
1 parent 478a426
Raw File
generate-configlist.sh
#!/bin/sh

echo "/* Automatically generated by generate-configlist.sh */"
echo

print_config_list () {
	cat <<EOF
static const char *config_name_list[] = {
EOF
	grep -h '^[a-zA-Z].*\..*::$' Documentation/*config.txt Documentation/config/*.txt |
	sed '/deprecated/d; s/::$//; s/,  */\n/g' |
	sort |
	sed 's/^.*$/	"&",/'
	cat <<EOF
	NULL,
};
EOF
}

echo
print_config_list
back to top