Staging
v0.5.1
v0.5.1
Revision 7e27bd589d328b9daf154c2444d1a86ec3afedb0 authored by Junio C Hamano on 29 October 2021, 22:43:50 UTC, committed by Junio C Hamano on 29 October 2021, 22:43:50 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 9a95a9f
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
Computing file changes ...