bug-gnulib
[Top][All Lists]
Advanced

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

Re: "git-version-gen" prints "Print a version string." three times


From: Simon Josefsson
Subject: Re: "git-version-gen" prints "Print a version string." three times
Date: Mon, 10 Oct 2022 16:43:50 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Bjarni Ingi Gislason <bjarniig@simnet.is> writes:

> "sh -x build-aux/get-version-gen" outputs:

I don't think that's a bug -- running the script under 'sh -x' is not a
supported by of invoking it, but a way to invoke shell debugging of the
script.  I don't see anything unexpected in the debug output, it doesn't
print the help string three times, it is merely shown in debug output.
Redirect debug output with 2>/dev/null and you will only see what the
script prints.  Running 'build-aux/get-version-gen' works fine as
expected.

/Simon

> + scriptversion=2022-07-09.08
> + me=build-aux/git-version-gen
> + expr 2022-07-09.08 : \([^-]*\)
> + year=2022
> + version=git-version-gen 2022-07-09.08
>
> Copyright (C) 2022 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later 
> <https://gnu.org/licenses/gpl.html>.
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> + usage=Usage: build-aux/git-version-gen [OPTION]... $srcdir/.tarball-version 
> [TAG-NORMALIZATION-SED-SCRIPT]
> Print a version string.
>
> Options:
>
>    --prefix PREFIX    prefix of git tags (default 'v')
>    --fallback VERSION
>                       fallback version to use if "git --version" fails
>
>    --help             display this help and exit
>    --version          output version information and exit
>
> Send patches and bug reports to <bug-gnulib@gnu.org>.
> + prefix=v
> + fallback=
> + test 0 -gt 0
> + test x = x
> + echo Usage: build-aux/git-version-gen [OPTION]... $srcdir/.tarball-version 
> [TAG-NORMALIZATION-SED-SCRIPT]
> Print a version string.
>
> Options:
>
>    --prefix PREFIX    prefix of git tags (default 'v')
>    --fallback VERSION
>                       fallback version to use if "git --version" fails
>
>    --help             display this help and exit
>    --version          output version information and exit
>
> Send patches and bug reports to <bug-gnulib@gnu.org>.
> Usage: build-aux/git-version-gen [OPTION]... $srcdir/.tarball-version 
> [TAG-NORMALIZATION-SED-SCRIPT]
> Print a version string.
>
> Options:
>
>    --prefix PREFIX    prefix of git tags (default 'v')
>    --fallback VERSION
>                       fallback version to use if "git --version" fails
>
>    --help             display this help and exit
>    --version          output version information and exit
>
> Send patches and bug reports to <bug-gnulib@gnu.org>.
> + exit 1
>
>

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]