[pve-devel] r6446 - qemu-server/pve2

svn-commits at proxmox.com svn-commits at proxmox.com
Wed Aug 10 12:27:45 CEST 2011


Author: dietmar
Date: 2011-08-10 12:27:44 +0200 (Wed, 10 Aug 2011)
New Revision: 6446

Modified:
   qemu-server/pve2/Makefile
   qemu-server/pve2/qm
Log:
generate qm.1 manpage


Modified: qemu-server/pve2/Makefile
===================================================================
--- qemu-server/pve2/Makefile	2011-08-10 10:12:35 UTC (rev 6445)
+++ qemu-server/pve2/Makefile	2011-08-10 10:27:44 UTC (rev 6446)
@@ -46,6 +46,9 @@
 	rm -f $*.1.gz
 	pod2man -n $* -s 1 -r ${VERSION} -c "Proxmox Documentation"  <$* |gzip -c9 >$*.1.gz
 
+qm.1.gz: qm
+	perl -I. ./qm printmanpod|pod2man -n qm -s 1 -r ${VERSION} -c "Proxmox Documentation"|gzip -c9 >$@
+
 PKGSOURCES=qm qm.1.gz qmigrate qmigrate.1.gz qmrestore qmrestore.1.gz sparsecp vmtar qemu.init.d qmupdate control
 
 .PHONY: install
@@ -102,7 +105,7 @@
 
 .PHONY: clean
 clean: 	
-	rm -rf debian *.deb control vzsyscalls.ph _h2ph_pre.ph ${PACKAGE}-*.tar.gz dist
+	rm -rf debian *.deb qm.1.gz control vzsyscalls.ph _h2ph_pre.ph ${PACKAGE}-*.tar.gz dist
 	find . -name '*~' -exec rm {} ';'
 
 

Modified: qemu-server/pve2/qm
===================================================================
--- qemu-server/pve2/qm	2011-08-10 10:12:35 UTC (rev 6445)
+++ qemu-server/pve2/qm	2011-08-10 10:27:44 UTC (rev 6446)
@@ -426,11 +426,23 @@
 
 my $cmd = shift;
 
-if ($cmd && $cmd eq 'verifyapi') {
-    PVE::RESTHandler::validate_method_schemas();
-    exit 0;
-}
+PVE::CLIHandler::handle_cmd($cmddef, "qm", $cmd, \@ARGV, undef, $0);
 
-PVE::CLIHandler::handle_cmd($cmddef, "qm", $cmd, \@ARGV);
+exit 0;
 
-exit 0;
+__END__
+
+=head1 NAME
+
+qm - qemu/kvm virtual machine manager
+
+=head1 SYNOPSIS
+
+=head1 DESCRIPTION
+
+qm is a script to manage virtual machines with qemu/kvm. You can
+create and destroy virtual machines, and control execution
+(start/stop/suspend/resume). Besides that, you can use qm to set
+parameters in the associated config file. It is also possible to
+create and delete virtual disks.
+



More information about the pve-devel mailing list