Staging
v0.5.1
v0.5.1
Revision 48bf2fa8bad054d66bd79c6ba903c89c704201f7 authored by Junio C Hamano on 19 March 2021, 22:07:58 UTC, committed by Junio C Hamano on 26 March 2021, 21:49:41 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent ef486a9
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 ...