Merge branch 'master' of github.com:Softcatala/git-po
[git/raj.git] / generate-configlist.sh
blob8692fe5cf4d5e4025265e6110254b05640615fea
1 #!/bin/sh
3 echo "/* Automatically generated by generate-configlist.sh */"
4 echo
6 print_config_list () {
7 cat <<EOF
8 static const char *config_name_list[] = {
9 EOF
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,
17 EOF
20 echo
21 print_config_list