From c820fab6e67fc3ccef53ce5ee0571dc5a28d5d49 Mon Sep 17 00:00:00 2001 From: Christian Schenk Date: Sun, 13 Mar 2022 21:15:59 +0100 Subject: [PATCH] fix hitex auto-install --- Programs/TeXAndFriends/hitex/miktex-hitex-version.h | 2 +- Programs/TeXAndFriends/hitex/source/hitex.w | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Programs/TeXAndFriends/hitex/miktex-hitex-version.h b/Programs/TeXAndFriends/hitex/miktex-hitex-version.h index fbef73168..38f7e6053 100644 --- a/Programs/TeXAndFriends/hitex/miktex-hitex-version.h +++ b/Programs/TeXAndFriends/hitex/miktex-hitex-version.h @@ -11,7 +11,7 @@ */ #define MIKTEX_COMP_MAJOR_VERSION 1 -#define MIKTEX_COMP_MINOR_VERSION 0 +#define MIKTEX_COMP_MINOR_VERSION 1 #define MIKTEX_COMP_PATCH_VERSION 0 #define MIKTEX_COMP_ORIG_VERSION_STR "1.4" diff --git a/Programs/TeXAndFriends/hitex/source/hitex.w b/Programs/TeXAndFriends/hitex/source/hitex.w index 1c99b844d..ab94c6cd0 100644 --- a/Programs/TeXAndFriends/hitex/source/hitex.w +++ b/Programs/TeXAndFriends/hitex/source/hitex.w @@ -34496,7 +34496,11 @@ static char *get_input_file_name (void) clean_windows_filename(argv[optind]); #endif argv[optind] = normalize_quotes(argv[optind], "input file"); +#if defined(MIKTEX) + input_file_name=find_file(argv[optind],kpse_tex_format, true); +#else input_file_name=find_file(argv[optind],kpse_tex_format, false); +#endif } return input_file_name; } @@ -34515,7 +34519,11 @@ in case we run under Windows. if (file_name && file_name[0] != '-' && file_name[0] != '&' && file_name[0] != '\\') { clean_windows_filename(file_name); file_name = normalize_quotes(file_name, "argument"); +#if defined(MIKTEX) + main_input_file=find_file(file_name,kpse_tex_format, true); +#else main_input_file=find_file(file_name,kpse_tex_format, false); +#endif argv[argc-1] = file_name; } } @@ -34621,7 +34629,11 @@ static void parse_first_line (char*filename) *s=0; if (dump_name==NULL) { char *f_name = concat (r, ".fmt"); +#if defined(MIKTEX) + char *d_name = kpse_find_file (f_name,kpse_fmt_format, true); +#else char *d_name = kpse_find_file (f_name,kpse_fmt_format, false); +#endif if (d_name && kpse_readable_file (d_name)) { dump_name = xstrdup (r); kpse_reset_program_name (dump_name);