| echo "/* Automatically generated by $0 */ |
| static struct cmdname_help common_cmds[] = {" |
| sed -n -e 's/^perf-\([^ ]*\)[ ].* common.*/\1/p' command-list.txt | |
| s/.*perf-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/ |
| }' "Documentation/perf-$cmd.txt" |
| echo "#ifdef HAVE_LIBELF_SUPPORT" |
| sed -n -e 's/^perf-\([^ ]*\)[ ].* full.*/\1/p' command-list.txt | |
| s/.*perf-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/ |
| }' "Documentation/perf-$cmd.txt" |
| echo "#endif /* HAVE_LIBELF_SUPPORT */" |
| echo "#ifdef HAVE_LIBAUDIT_SUPPORT" |
| sed -n -e 's/^perf-\([^ ]*\)[ ].* audit*/\1/p' command-list.txt | |
| s/.*perf-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/ |
| }' "Documentation/perf-$cmd.txt" |
| echo "#endif /* HAVE_LIBELF_SUPPORT */" |