archive: add write_archive()
[git/git-p4.git] / generate-cmdlist.sh
bloba2913c2a2cd1ec158157ada3e2deb666892b734b
1 #!/bin/sh
3 echo "/* Automatically generated by $0 */
4 struct cmdname_help
6 char name[16];
7 char help[80];
8 };
10 static struct cmdname_help common_cmds[] = {"
12 sed -n -e 's/^git-\([^ ]*\)[ ].* common.*/\1/p' command-list.txt |
13 sort |
14 while read cmd
16 sed -n '
17 /NAME/,/git-'"$cmd"'/H
20 s/.*git-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/
22 }' "Documentation/git-$cmd.txt"
23 done
24 echo "};"