about summary refs log tree commit diff
path: root/third_party/git/generate-cmdlist.sh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/generate-cmdlist.sh')
-rwxr-xr-xthird_party/git/generate-cmdlist.sh21
1 files changed, 1 insertions, 20 deletions
diff --git a/third_party/git/generate-cmdlist.sh b/third_party/git/generate-cmdlist.sh
index 71158f7d8ba9..9dbbb08e70a1 100755
--- a/third_party/git/generate-cmdlist.sh
+++ b/third_party/git/generate-cmdlist.sh
@@ -10,7 +10,7 @@ command_list () {
 }
 
 get_categories () {
-	tr ' ' '\n'|
+	tr ' ' '\012'|
 	grep -v '^$' |
 	sort |
 	uniq
@@ -76,23 +76,6 @@ print_command_list () {
 	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 |
-	while read line
-	do
-		echo "	\"$line\","
-	done
-	cat <<EOF
-	NULL,
-};
-EOF
-}
-
 exclude_programs=
 while test "--exclude-program" = "$1"
 do
@@ -113,5 +96,3 @@ echo
 define_category_names "$1"
 echo
 print_command_list "$1"
-echo
-print_config_list