You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
447 B
25 lines
447 B
16 years ago
|
#!/bin/sh
|
||
|
|
||
|
echo "/* Automatically generated by $0 */
|
||
|
struct cmdname_help
|
||
|
{
|
||
|
char name[16];
|
||
|
char help[80];
|
||
|
};
|
||
|
|
||
|
static struct cmdname_help common_cmds[] = {"
|
||
|
|
||
16 years ago
|
sed -n -e 's/^perf-\([^ ]*\)[ ].* common.*/\1/p' command-list.txt |
|
||
16 years ago
|
sort |
|
||
|
while read cmd
|
||
|
do
|
||
|
sed -n '
|
||
16 years ago
|
/^NAME/,/perf-'"$cmd"'/H
|
||
16 years ago
|
${
|
||
|
x
|
||
16 years ago
|
s/.*perf-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/
|
||
16 years ago
|
p
|
||
16 years ago
|
}' "Documentation/perf-$cmd.txt"
|
||
16 years ago
|
done
|
||
|
echo "};"
|