Files
kvmtool/util/generate-cmdlist.sh
Wanlong Gao 26a3a071bb kvm tools: change the binary name kvm to lkvm in Documentation
Documentation: Change the binary name from *kvm* to *lkvm*,
since commit ad3efb18 already called the binary *lkvm* and
with a alias name *vm*.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
2015-06-01 16:39:50 +01:00

24 lines
459 B
Bash
Executable File

#!/bin/sh
echo "/* Automatically generated by $0 */
struct cmdname_help
{
char name[16];
char help[80];
};
static struct cmdname_help common_cmds[] = {"
sed -n 's/^lkvm-\([^ \t]*\).*common/\1/p' command-list.txt |
while read cmd
do
# TODO following sed command should be fixed
sed -n '/^NAME/,/^lkvm-'"$cmd"'/ {
/NAME/d
/--/d
s/.*kvm-'"$cmd"' - \(.*\)/ {"'"$cmd"'", "\1"},/
p
}' "Documentation/kvm-$cmd.txt"
done
echo "};"