diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-06-29 07:47:44 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-06-29 07:47:44 +0000 |
commit | 4cba201476cfd2785bcb999d7dd7eed0abcbdeff (patch) | |
tree | 56b487381a4a1bc53868491b68fece25e2fe1248 /Build/source/texk/kpathsea/kpsewhich.c | |
parent | 8cc06fdd2fd778cfcb6497107d1ba1f7412d292e (diff) |
kpsewhich.c: Remove unnecessary w32 changes
git-svn-id: svn://tug.org/texlive/trunk@41565 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/kpsewhich.c')
-rw-r--r-- | Build/source/texk/kpathsea/kpsewhich.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/Build/source/texk/kpathsea/kpsewhich.c b/Build/source/texk/kpathsea/kpsewhich.c index f733f0f5e42..81db2b50845 100644 --- a/Build/source/texk/kpathsea/kpsewhich.c +++ b/Build/source/texk/kpathsea/kpsewhich.c @@ -491,19 +491,10 @@ static void help_message (kpathsea kpse, string *argv) { printf ("Usage: %s [OPTION]... [FILENAME]...\n", argv[0]); -#ifdef WIN32 - kpathsea_win32_fputs (kpse, USAGE, stdout); -#else fputs (USAGE, stdout); -#endif putchar ('\n'); -#ifdef WIN32 - kpathsea_win32_fputs (kpse, kpathsea_bug_address, stdout); - kpathsea_win32_fputs (kpse, "Kpathsea home page: http://tug.org/kpathsea/\n", stdout); -#else fputs (kpathsea_bug_address, stdout); fputs ("Kpathsea home page: http://tug.org/kpathsea/\n", stdout); -#endif exit (0); } @@ -515,13 +506,8 @@ help_formats (kpathsea kpse, string *argv) /* Have to set this for init_format to work. */ kpathsea_set_program_name (kpse, argv[0], progname); -#ifdef WIN32 - kpathsea_win32_puts (kpse, kpathsea_version_string); - kpathsea_win32_puts (kpse, "\nRecognized Kpathsea format names and their (abbreviations) and suffixes:"); -#else puts (kpathsea_version_string); puts ("\nRecognized Kpathsea format names and their (abbreviations) and suffixes:"); -#endif for (f = 0; f < kpse_last_format; f++) { const_string *ext; @@ -572,13 +558,8 @@ help_formats (kpathsea kpse, string *argv) kpse->format_info[f].path_source, kpse->format_info[f].raw_path); } -#ifdef WIN32 - kpathsea_win32_fputs (kpse, "\nTo see paths after expansion, use --show-path=FMT.\n\n", stdout); - kpathsea_win32_fputs (kpse, kpathsea_bug_address, stdout); -#else fputs ("\nTo see paths after expansion, use --show-path=FMT.\n\n", stdout); fputs (kpathsea_bug_address, stdout); -#endif exit (0); } @@ -696,19 +677,11 @@ read_command_line (kpathsea kpse, int argc, string *argv) var_to_value = optarg; } else if (ARGUMENT_IS ("version")) { -#ifdef WIN32 - kpathsea_win32_puts (kpse, kpathsea_version_string); - kpathsea_win32_puts (kpse, "Copyright 2016 Karl Berry & Olaf Weber.\n\ -License LGPLv2.1+: GNU Lesser GPL version 2.1 or later <http://gnu.org/licenses/lgpl.html>\n\ -This is free software: you are free to change and redistribute it.\n\ -There is NO WARRANTY, to the extent permitted by law.\n"); -#else puts (kpathsea_version_string); puts ("Copyright 2016 Karl Berry & Olaf Weber.\n\ License LGPLv2.1+: GNU Lesser GPL version 2.1 or later <http://gnu.org/licenses/lgpl.html>\n\ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n"); -#endif exit (0); } @@ -718,11 +691,7 @@ There is NO WARRANTY, to the extent permitted by law.\n"); if (user_path && user_format_string) { fprintf (stderr, "-path (%s) and -format (%s) are mutually exclusive.\n", user_path, user_format_string); -#ifdef WIN32 - kpathsea_win32_fputs (kpse, "Try `kpsewhich --help' for more information.\n", stderr); -#else fputs ("Try `kpsewhich --help' for more information.\n", stderr); -#endif exit (1); } @@ -730,13 +699,8 @@ There is NO WARRANTY, to the extent permitted by law.\n"); && !var_to_expand && !braces_to_expand && !path_to_expand && !path_to_show && !var_to_value && !safe_in_name && !safe_out_name) { -#ifdef WIN32 - kpathsea_win32_fputs (kpse, "Missing argument. Try `kpsewhich --help' for more information.\n", - stderr); -#else fputs ("Missing argument. Try `kpsewhich --help' for more information.\n", stderr); -#endif exit (1); } } |