Bjarni Ingi Gislason <[email protected]> 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 <[email protected]>.
> + 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 <[email protected]>.
> 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 <[email protected]>.
> + exit 1
>
>

Attachment: signature.asc
Description: PGP signature

Reply via email to