summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorAndreas Scherer <andreas_tex@freenet.de>2021-04-04 10:05:18 +0000
committerAndreas Scherer <andreas_tex@freenet.de>2021-04-04 10:05:18 +0000
commit926e904e8408ff94b3d75da0772f8fe09df4dfa8 (patch)
tree8ecb4fe8cecfe667a563d130ab54b383cdde655d /Build
parent4e9d6bf65f4ac50303987285996ff0f456f1a89b (diff)
[CTIE] Include TeX Live versionstring in banner line.
git-svn-id: svn://tug.org/texlive/trunk@58740 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/web2c/ctiedir/ChangeLog4
-rw-r--r--Build/source/texk/web2c/ctiedir/ctie-k.ch6
2 files changed, 8 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/ctiedir/ChangeLog b/Build/source/texk/web2c/ctiedir/ChangeLog
index 732e882ea3b..27ac7dc6c98 100644
--- a/Build/source/texk/web2c/ctiedir/ChangeLog
+++ b/Build/source/texk/web2c/ctiedir/ChangeLog
@@ -1,3 +1,7 @@
+2021-04-04 Andreas Scherer <https://ascherer.github.io>
+
+ * ctie-k.ch: Include TeX Live versionstring in banner line.
+
2021-03-10 Andreas Scherer <https://ascherer.github.io>
* ctie-k.ch: More concise 'find/fopen' logic.
diff --git a/Build/source/texk/web2c/ctiedir/ctie-k.ch b/Build/source/texk/web2c/ctiedir/ctie-k.ch
index e9ac5959b6e..33e69c02dc5 100644
--- a/Build/source/texk/web2c/ctiedir/ctie-k.ch
+++ b/Build/source/texk/web2c/ctiedir/ctie-k.ch
@@ -181,6 +181,8 @@ through the \.{kpathsea} interface.
@<Global \&{\#include}s@>=
#include <kpathsea/kpathsea.h>
+#include <w2c/config.h>
+#include <lib/lib.h>
@z
@x l.176 And this.
@@ -581,7 +583,7 @@ usage_error (void)
@x l.1119 Add Web2C version to banner string
printf("%s\n", banner); /* print a ``banner line'' */
@y
-printf("%s (%s)\n", banner, kpathsea_version_string); /* print a ``banner line'' */
+printf("%s%s\n", banner, versionstring); /* print a ``banner line'' */
@z
Section 63: use 'none' more than once.
@@ -648,7 +650,7 @@ void print_version_and_exit(name, version)
static void
print_version_and_exit (const_string name, const_string version)
{
- printf ("%s %s\n", name, version);
+ printf ("%s %s%s\n", name, version, versionstring);
puts (kpathsea_version_string);
puts ("Copyright (C) 2002,2003 Julian Gilbey.");