diff options
author | Denis Bitouzé <dbitouze@wanadoo.fr> | 2021-02-25 18:23:07 +0000 |
---|---|---|
committer | Denis Bitouzé <dbitouze@wanadoo.fr> | 2021-02-25 18:23:07 +0000 |
commit | c6101f91d071883b48b1b4b51e5eba0f36d9a78d (patch) | |
tree | 1bf7f5a881d7a4f5c5bf59d0b2821943dd822372 /Build/source/texk/web2c/lib/printversion.c | |
parent | 07ee7222e389b0777456b427a55c22d0e6ffd267 (diff) |
French translation for tlmgr updated
git-svn-id: svn://tug.org/texlive/trunk@57912 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/lib/printversion.c')
-rw-r--r-- | Build/source/texk/web2c/lib/printversion.c | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/Build/source/texk/web2c/lib/printversion.c b/Build/source/texk/web2c/lib/printversion.c deleted file mode 100644 index 8716e6db994..00000000000 --- a/Build/source/texk/web2c/lib/printversion.c +++ /dev/null @@ -1,78 +0,0 @@ -/* printversion.c: Output for the standard GNU option --version. - - Written in 1996 by Karl Berry. Public domain. */ - -#include <w2c/config.h> -#include "lib.h" -#include <kpathsea/version.h> -#ifdef PTEX -#include <ptexenc/ptexenc.h> -#endif - -/* We're passed in the original WEB banner string, which has the form -This is PROGRAM, Version VERSION-NUMBER - We parse the PROGRAM and VERSION-NUMBER out of this. - - If COPYRIGHT_HOLDER is specified and AUTHOR isn't, then use the - former for the latter. If AUTHOR is specified and COPYRIGHT_HOLDER - isn't, it means the original program is public domain. - - Maybe I should have just done it all inline in each individual - program, but tangle doesn't allow multiline string constants ... */ - -void -printversionandexit (const_string banner, - const_string copyright_holder, - const_string author, - const_string extra_info) -{ - string prog_name; - unsigned len; - const_string prog_name_start; - const_string prog_name_end = strchr (banner, ','); - const_string prog_version = strrchr (banner, ' '); - assert (prog_name_end && prog_version); - prog_version++; - - len = prog_name_end - banner; - prog_name = xmalloc (len + 1); - strncpy (prog_name, banner, len); - prog_name[len] = 0; - - prog_name_start = strrchr (prog_name, ' '); - assert (prog_name_start); - prog_name_start++; - - /* The Web2c version string starts with a space. */ -#ifdef PTEX - printf ("%s %s (%s)%s\n", prog_name_start, prog_version, get_enc_string(), - versionstring); -#else - printf ("%s %s%s\n", prog_name_start, prog_version, versionstring); -#endif - puts (kpathsea_version_string); -#ifdef PTEX - puts (ptexenc_version_string); -#endif - - if (copyright_holder) { - printf ("Copyright 2021 %s.\n", copyright_holder); - if (!author) - author = copyright_holder; - } - - puts ("There is NO warranty. Redistribution of this software is"); - fputs ("covered by the terms of ", stdout); - printf ("both the %s copyright and\n", prog_name_start); - puts ("the Lesser GNU General Public License."); - puts ("For more information about these matters, see the file"); - printf ("named COPYING and the %s source.\n", prog_name_start); - printf ("Primary author of %s: %s.\n", prog_name_start, author); - - if (extra_info) - fputs (extra_info, stdout); - - free (prog_name); - - uexit (0); -} |