1#!/bin/sh23echo "/* Automatically generated by $0 */4struct cmdname_help5{6char name[16];7char help[80];8};910static struct cmdname_help common_cmds[] = {"1112sed -n -e 's/^git-\([^ ]*\)[ ].* common.*/\1/p' command-list.txt |13sort |14while read cmd15do16sed -n '17/^NAME/,/git-'"$cmd"'/H18${19x20s/.*git-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/21p22}' "Documentation/git-$cmd.txt"23done24echo "};"