[Spice-devel] [PATCH 2/3] generator, fix binary name

Christophe Fergeau cfergeau at redhat.com
Tue Jul 10 02:02:53 PDT 2012


On Tue, Jul 10, 2012 at 09:55:03AM +0200, Peter Hatina wrote:
> Changed binary name.
> 
> Peter Hatina
> EMEA ENG-Desktop Development
> Red Hat Czech, Brno
> 
> ---
>  generator/Makefile.am |    2 +-
>  generator/options.cpp |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/generator/Makefile.am b/generator/Makefile.am
> index b6a01f2..ce7f42c 100644
> --- a/generator/Makefile.am
> +++ b/generator/Makefile.am
> @@ -1,4 +1,4 @@
> -bin_PROGRAMS                = spice_xpi_generator
> +bin_PROGRAMS                = spice-xpi-generator
>  spice_xpi_generator_SOURCES =      \
>  		generator.cpp      \
>  		main.cpp           \
> diff --git a/generator/options.cpp b/generator/options.cpp
> index 723ca7e..4a9ec7a 100644
> --- a/generator/options.cpp
> +++ b/generator/options.cpp
> @@ -60,7 +60,7 @@ Options::~Options()
>  void Options::printHelp() const
>  {
>      std::cout << "Spice-xpi test page generator\n\n"
> -              << "Usage: ./generator [-h] [-i input] [-o output]\n\n"
> +              << "Usage: ./spice-xpi-generator [-h] [-i input] [-o output]\n\n"

Isn't it possible to use basename(argv[0]) or something similar?

ACK with or without this change.

Christophe

>                << "Application options:\n"
>                << "  -i, --input     input filename (stdin used, if not specified)\n"
>                << "  -o, --output    output filename (stdout used, if not specified)\n"
> -- 
> 1.7.10.4
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20120710/21bf8ee4/attachment.pgp>


More information about the Spice-devel mailing list