3 echo "/* Automatically generated by $0 */
10 static struct cmdname_help common_cmds[] = {"
12 sed -n 's/^kvm-\([^ \t]*\).*common/\1/p' command-list.txt |
15 # TODO following sed command should be fixed
16 sed -n '/^NAME/,/^kvm-'"$cmd"'/ {
19 s/.*kvm-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/
21 }' "Documentation/kvm-$cmd.txt"