summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/proginit.c
diff options
context:
space:
mode:
authorDenis Bitouzé <dbitouze@wanadoo.fr>2021-02-25 18:23:07 +0000
committerDenis Bitouzé <dbitouze@wanadoo.fr>2021-02-25 18:23:07 +0000
commitc6101f91d071883b48b1b4b51e5eba0f36d9a78d (patch)
tree1bf7f5a881d7a4f5c5bf59d0b2821943dd822372 /Build/source/texk/kpathsea/proginit.c
parent07ee7222e389b0777456b427a55c22d0e6ffd267 (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/kpathsea/proginit.c')
-rw-r--r--Build/source/texk/kpathsea/proginit.c85
1 files changed, 0 insertions, 85 deletions
diff --git a/Build/source/texk/kpathsea/proginit.c b/Build/source/texk/kpathsea/proginit.c
deleted file mode 100644
index 265b5ebb052..00000000000
--- a/Build/source/texk/kpathsea/proginit.c
+++ /dev/null
@@ -1,85 +0,0 @@
-/* proginit.c: useful initializations for DVI drivers.
-
- Copyright 1994, 1995, 1996, 2008 Karl Berry.
- Copyright 1997, 2005 Olaf Weber.
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with this library; if not, see <http://www.gnu.org/licenses/>. */
-
-#include <kpathsea/config.h>
-#include <kpathsea/c-pathch.h>
-#include <kpathsea/proginit.h>
-#include <kpathsea/tex-file.h>
-
-
-/* These initializations were common to all the drivers modified for
- kpathsea, so a single routine seemed in order. Kind of a bollixed-up
- mess, but still better than repeating the code. */
-
-void
-kpathsea_init_prog (kpathsea kpse, const_string prefix, unsigned dpi,
- const_string mode, const_string fallback)
-{
- string font_var = concat (prefix, "FONTS");
- string header_var = concat (prefix, "HEADERS");
- string makepk_var = concat (prefix, "MAKEPK");
- string size_var = concat (prefix, "SIZES");
-
- /* Do both `pk_format' and `any_glyph_format' for the sake of xdvi; in
- general, mktexpk might apply to either, and the program will ask
- for the one it wants. */
-
- /* Might have a program-specific name for mktexpk itself. */
- if (getenv (makepk_var)) {
- /* If we did, we want to enable the program, I think. */
- kpathsea_set_program_enabled (kpse, kpse_pk_format, 1, kpse_src_env);
- kpathsea_set_program_enabled (kpse, kpse_any_glyph_format, 1,kpse_src_env);
-
- kpse->format_info[kpse_pk_format].program
- = kpse->format_info[kpse_any_glyph_format].program
- = getenv (makepk_var);
- }
-
- /* A couple font paths have traditionally had application-specific
- environment variables to override all else; namely, XDVIFONTS and
- DVIPSHEADERS. So set those if we have them. */
- kpse->format_info[kpse_pk_format].override_path
- = kpse->format_info[kpse_gf_format].override_path
- = kpse->format_info[kpse_any_glyph_format].override_path
- = kpse->format_info[kpse_tfm_format].override_path
- = getenv (font_var);
-
- kpse->format_info[kpse_tex_ps_header_format].override_path
- = getenv (header_var);
-
- kpathsea_init_fallback_resolutions (kpse, size_var);
- kpathsea_xputenv_int (kpse, "MAKETEX_BASE_DPI", dpi);
- kpse->fallback_font = fallback;
-
- /* Ugliness. See comments in kpse_make_tex in kpathsea/tex-make.c. */
- kpathsea_xputenv (kpse, "MAKETEX_MODE", mode ? mode : DIR_SEP_STRING);
-
- free (font_var);
- free (header_var);
- free (makepk_var);
- free (size_var);
-}
-
-#if defined (KPSE_COMPAT_API)
-void
-kpse_init_prog (const_string prefix, unsigned dpi,
- const_string mode, const_string fallback)
-{
- kpathsea_init_prog(kpse_def,prefix,dpi,mode,fallback);
-}
-#endif