Re: [PATCH 2/3] generator, fix binary name

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

 



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@xxxxxxxxxxxxxxxxxxxxx
> http://lists.freedesktop.org/mailman/listinfo/spice-devel

Attachment: pgp_5H24fCu7I.pgp
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]