texlive[41565] Build/source/texk/kpathsea: kpsewhich.c: Remove

commits+kakuto at tug.org commits+kakuto at tug.org
Wed Jun 29 09:47:44 CEST 2016


Revision: 41565
          http://tug.org/svn/texlive?view=revision&revision=41565
Author:   kakuto
Date:     2016-06-29 09:47:44 +0200 (Wed, 29 Jun 2016)
Log Message:
-----------
kpsewhich.c: Remove unnecessary w32 changes

Modified Paths:
--------------
    trunk/Build/source/texk/kpathsea/ChangeLog
    trunk/Build/source/texk/kpathsea/kpsewhich.c

Modified: trunk/Build/source/texk/kpathsea/ChangeLog
===================================================================
--- trunk/Build/source/texk/kpathsea/ChangeLog	2016-06-29 01:15:37 UTC (rev 41564)
+++ trunk/Build/source/texk/kpathsea/ChangeLog	2016-06-29 07:47:44 UTC (rev 41565)
@@ -1,3 +1,7 @@
+2016-06-29  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
+
+	* kpsewhich.c: Remove unnecessary w32 changes,
+
 2016-06-28  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
 
 	* config.h, db.c, elt-dirs.c, expand.c, find-suffix.c, hash.c, knj.c,

Modified: trunk/Build/source/texk/kpathsea/kpsewhich.c
===================================================================
--- trunk/Build/source/texk/kpathsea/kpsewhich.c	2016-06-29 01:15:37 UTC (rev 41564)
+++ trunk/Build/source/texk/kpathsea/kpsewhich.c	2016-06-29 07:47:44 UTC (rev 41565)
@@ -491,19 +491,10 @@
 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 @@
   /* 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 @@
             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 @@
       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 @@
   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 @@
       && !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);
   }
 }



More information about the tex-live-commits mailing list