mirror of
https://github.com/git/git
synced 2024-10-30 03:13:24 +00:00
22 lines
370 B
Bash
22 lines
370 B
Bash
|
#!/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
|