Revision 26c4f98ffda512bc0731c4bd13e22338137e9a7c authored by Junio C Hamano on 26 March 2021, 21:58:49 UTC, committed by Junio C Hamano on 26 March 2021, 21:59:03 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 89519f6
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