]> git.ipfire.org Git - thirdparty/git.git/blame - generate-configlist.sh
Documentation/RelNotes/2.45.0.txt: fix typo
[thirdparty/git.git] / generate-configlist.sh
CommitLineData
709df95b
ES
1#!/bin/sh
2
3echo "/* Automatically generated by generate-configlist.sh */"
4echo
5
6print_config_list () {
7 cat <<EOF
8static const char *config_name_list[] = {
9EOF
10 grep -h '^[a-zA-Z].*\..*::$' Documentation/*config.txt Documentation/config/*.txt |
11 sed '/deprecated/d; s/::$//; s/, */\n/g' |
12 sort |
13 sed 's/^.*$/ "&",/'
14 cat <<EOF
15 NULL,
16};
17EOF
18}
19
20echo
21print_config_list