Staging
v0.5.1
Revision 0628636d0c21324ae0f11be591611c6b1e55705f authored by Johannes Schindelin on 12 February 2021, 14:50:15 UTC, committed by Johannes Schindelin on 12 February 2021, 14:50:15 UTC
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent d7bdabe
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