]> git.ipfire.org Git - thirdparty/git.git/blame - generate-cmdlist.sh
Fix installation of templates on ancient systems.
[thirdparty/git.git] / generate-cmdlist.sh
CommitLineData
a87cd02c
FK
1#!/bin/sh
2
3echo "/* Automatically generated by $0 */
4struct cmdname_help
5{
6 char name[16];
7 char help[64];
8};
9
10struct cmdname_help common_cmds[] = {"
11
12sort <<\EOF |
13add
14apply
15bisect
16branch
17checkout
18cherry-pick
19clone
20commit
21diff
22fetch
23grep
24init-db
25log
26merge
27mv
28prune
29pull
30push
31rebase
32reset
33revert
34rm
35show
36show-branch
37status
38tag
39verify-tag
a87cd02c
FK
40EOF
41while read cmd
42do
fd662dd5
JH
43 sed -n '
44 /NAME/,/git-'"$cmd"'/H
45 ${
46 x
47 s/.*git-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/
48 p
49 }' "Documentation/git-$cmd.txt"
a87cd02c
FK
50done
51echo "};"