From 63bbba4973d4a37fe7b9e0665e11456802d80aaf Mon Sep 17 00:00:00 2001 From: Takuji Tanaka Date: Sun, 22 May 2022 02:29:44 +0000 Subject: bibtex-x: Show "Release version" at the first line of banner git-svn-id: svn://tug.org/texlive/trunk@63360 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/bibtex-x/ChangeLog | 8 ++++++++ Build/source/texk/bibtex-x/bibtex.c | 5 ++++- Build/source/texk/bibtex-x/utils.c | 4 ++-- Build/source/texk/bibtex-x/version.h | 3 ++- 4 files changed, 16 insertions(+), 4 deletions(-) (limited to 'Build') diff --git a/Build/source/texk/bibtex-x/ChangeLog b/Build/source/texk/bibtex-x/ChangeLog index 03d93d838a7..5dae3b0b78e 100644 --- a/Build/source/texk/bibtex-x/ChangeLog +++ b/Build/source/texk/bibtex-x/ChangeLog @@ -1,3 +1,11 @@ +2022-05-22 TANAKA Takuji + + * version.h: + Bump version to 4.00 (22 may 2022). + * bibtex.c, utils.c, version.h: + Show "Release version" and TeX Live version at the first line + of a banner. + 2022-05-17 TANAKA Takuji * version.h: diff --git a/Build/source/texk/bibtex-x/bibtex.c b/Build/source/texk/bibtex-x/bibtex.c index eec2cda29aa..0c0735671aa 100644 --- a/Build/source/texk/bibtex-x/bibtex.c +++ b/Build/source/texk/bibtex-x/bibtex.c @@ -268,7 +268,10 @@ BEGIN kpse_set_program_name(argv[0], PROGNAME); mpl = kpse_var_value("max_print_line"); if (mpl) + BEGIN max_print_line = atoi(mpl); + free(mpl); + END else max_print_line = 79; /* default */ #endif @@ -282,7 +285,7 @@ BEGIN initialize (); if (log_file != NULL) { - FPRINTF (log_file, "%s\n", BANNER); + FPRINTF (log_file, "%s-x%s (%s)\n", BANNER, EXT_VERSION, TL_VERSION); FPRINTF (log_file, "Implementation: %s\n", IMPLEMENTATION); FPRINTF (log_file, "Release version: %s\n", VERSION); #ifdef UTF_8 diff --git a/Build/source/texk/bibtex-x/utils.c b/Build/source/texk/bibtex-x/utils.c index 5a7b973dffa..0dd077d8b81 100644 --- a/Build/source/texk/bibtex-x/utils.c +++ b/Build/source/texk/bibtex-x/utils.c @@ -1079,9 +1079,9 @@ void parse_cmd_line (int argc, char **argv) break; case 'v': /**************** -v, --version ************/ - FPRINTF (TERM_OUT, "%s\n", BANNER); + FPRINTF (TERM_OUT, "%s-x%s (%s)\n", BANNER, EXT_VERSION, TL_VERSION); FPRINTF (TERM_OUT, "Implementation: %s\n", IMPLEMENTATION); - FPRINTF (TERM_OUT, "Release version: %s (%s)\n", VERSION, TL_VERSION); + FPRINTF (TERM_OUT, "Release version: %s\n", VERSION); #ifdef UTF_8 { UVersionInfo icuVersion; diff --git a/Build/source/texk/bibtex-x/version.h b/Build/source/texk/bibtex-x/version.h index 83f8cde3791..f5ea5fc7a4d 100644 --- a/Build/source/texk/bibtex-x/version.h +++ b/Build/source/texk/bibtex-x/version.h @@ -89,7 +89,8 @@ */ #ifndef __VERSION_H__ # define __VERSION_H__ 1 -# define PACKAGE_DATE "(17 may 2022)" +# define PACKAGE_DATE "(22 may 2022)" +# define EXT_VERSION PACKAGE_VERSION # define VERSION PACKAGE_VERSION " " PACKAGE_DATE #endif /* __VERSION_H__ */ -- cgit v1.2.3