qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] configure: add --version flag
@ 2011-04-07  5:12 Mike Frysinger
  2011-04-07  7:31 ` [Qemu-devel] " Paolo Bonzini
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2011-04-07  5:12 UTC (permalink / raw)
  To: qemu-devel

Standard autoconf scripts include a --version flag so people can easily
query things.  Add this to qemu's configure so it too can integrate with
build systems that have standard autotool helpers.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 configure |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 3593dc6..4b7ed5e 100755
--- a/configure
+++ b/configure
@@ -494,6 +494,8 @@ for opt do
   case "$opt" in
   --help|-h) show_help=yes
   ;;
+  --version|-V) exec cat $source_path/VERSION
+  ;;
   --prefix=*) prefix="$optarg"
   ;;
   --interp-prefix=*) interp_prefix="$optarg"
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-04-07  8:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-07  5:12 [Qemu-devel] [PATCH] configure: add --version flag Mike Frysinger
2011-04-07  7:31 ` [Qemu-devel] " Paolo Bonzini
2011-04-07  8:52   ` Edgar E. Iglesias

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).