Revision 1c52ecf4ba0f4f7af72775695fee653f50737c71 authored by Junio C Hamano on 14 December 2020, 18:30:05 UTC, committed by Junio C Hamano on 14 December 2020, 18:30:05 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 3fc7fc1
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
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...