[tip:tools/kvm] kvm tools: Don't sort command-list.txt for help text

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit-ID:  b31480dcbc24b08977315888825f4aa256cd7e5e
Gitweb:     http://git.kernel.org/tip/b31480dcbc24b08977315888825f4aa256cd7e5e
Author:     Pekka Enberg <penberg@xxxxxxxxxx>
AuthorDate: Sat, 9 Jul 2011 01:25:28 +0300
Committer:  Pekka Enberg <penberg@xxxxxxxxxx>
CommitDate: Sat, 9 Jul 2011 01:25:28 +0300

kvm tools: Don't sort command-list.txt for help text

This patch removes the alphabetical sorting from util/generate-cmdlist.h so
that 'kvm run' command, for example, is displayed first:

  $ ./kvm

   usage: kvm [--version] [--help] COMMAND [ARGS]

   The most commonly used kvm commands are:
     run       Start the virtual machine
     pause     Pause/resume the virtual machine
     version   Print the version of the kernel tree kvm tools
     list      Print a list of running instances on the host.
     debug     Print debug information from a running instance
     balloon   Inflate or deflate the virtio balloon

   See 'kvm help COMMAND' for more information on a specific command.

Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx>
---
 tools/kvm/util/generate-cmdlist.sh |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/tools/kvm/util/generate-cmdlist.sh b/tools/kvm/util/generate-cmdlist.sh
index c3fd172..fe0178e 100755
--- a/tools/kvm/util/generate-cmdlist.sh
+++ b/tools/kvm/util/generate-cmdlist.sh
@@ -10,7 +10,6 @@ struct cmdname_help
 static struct cmdname_help common_cmds[] = {"
 
 sed -n 's/^kvm-\([^ \t]*\).*common/\1/p' command-list.txt |
-sort |
 while read cmd
 do
 	 # TODO following sed command should be fixed
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Stable Commits]     [Linux Stable Kernel]     [Linux Kernel]     [Linux USB Devel]     [Linux Video &Media]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux