3 echo "/* Automatically generated by $0 */
10 static struct cmdname_help common_cmds[] = {"
12 sed -n -e 's/^perf-\([^ ]*\)[ ].* common.*/\1/p' command-list.txt |
17 /^NAME/,/perf-'"$cmd"'/H
20 s/.*perf-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/
22 }' "Documentation/perf-$cmd.txt"
25 echo "#ifdef LIBELF_SUPPORT"
26 sed -n -e 's/^perf-\([^ ]*\)[ ].* full.*/\1/p' command-list.txt |
31 /^NAME/,/perf-'"$cmd"'/H
34 s/.*perf-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/
36 }' "Documentation/perf-$cmd.txt"
38 echo "#endif /* LIBELF_SUPPORT */"