perf_counter tools: add in basic glue from Git
[deliverable/linux.git] / Documentation / perf_counter / generate-cmdlist.sh
CommitLineData
07800601
IM
1#!/bin/sh
2
3echo "/* Automatically generated by $0 */
4struct cmdname_help
5{
6 char name[16];
7 char help[80];
8};
9
10static struct cmdname_help common_cmds[] = {"
11
12sed -n -e 's/^git-\([^ ]*\)[ ].* common.*/\1/p' command-list.txt |
13sort |
14while read cmd
15do
16 sed -n '
17 /^NAME/,/git-'"$cmd"'/H
18 ${
19 x
20 s/.*git-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/
21 p
22 }' "Documentation/git-$cmd.txt"
23done
24echo "};"
This page took 0.023525 seconds and 5 git commands to generate.