[BACK]Return to patch-texmf-dist_web2c_mktexnam CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / print / tex-kpathsea / patches

File: [cvs.NetBSD.org] / pkgsrc / print / tex-kpathsea / patches / patch-texmf-dist_web2c_mktexnam (download)

Revision 1.1, Sun May 10 03:56:41 2020 UTC (2 years, 8 months ago) by markd
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, HEAD

texlive: update to 2020

* The \input primitive in all TeX engines, including tex, now also accepts a
  group-delimited ■«í═ename argument, as a system-dependent extension. The usage
  with a standard space/token-delimited ■«í═ename is completely unchanged. The
  group-delimited argument was previously implemented in LuaTeX; now it is available
  in all engines. ASCII double quote characters (") are removed from the filename,
  but it is otherwise left unchanged after tokenization. This does not currently
  affect LaTeXŃÓĐď \input command, as that is a macro redefinition of the standard
  \input primitive.
* New option ŃÓ┼─nf-line for kpsewhich, tex, mf, and all other engines, to support
  arbitrary con■«í╚uration settings on the command line.
* The addition of various primitives to various engines in this and previous years
  is intended to result in a common set of functionality available across
  all engines.

epTeX, eupTeX: New primitives \Uchar, \Ucharcat, \current(x)spacingmode, \ifincsname;
 revise \fontchar?? and \iffontchar. For eupTeX only: \currentcjktoken.

LuaTeX: Integration with HarfBuzz library, available as new engines luahbtex
 (used for lualatex) and luajithbtex. New primitives: \eTeXgluestretchorder,

pdfTeX: New primitive \pdfmajorversion; this merely changes the version number
 in the PDF output; it has no effect on any PDF content. \pdfximage and similar
 now search for image files in the same way as \openin.

pTeX: New primitives \ifjfont, \iftfont. Also in epTeX, upTeX, eupTeX.

XeTeX: Fixes for \Umathchardef, \XeTeXinterchartoks, \pdfsavepos.

Dvips: Output encodings for bitmap fonts, for better copy/paste capabilities.

$NetBSD: patch-texmf-dist_web2c_mktexnam,v 1.1 2020/05/10 03:56:41 markd Exp $

use full path for commands

--- texmf-dist/web2c/mktexnam.orig	2009-06-03 06:07:23.000000000 -0700
+++ texmf-dist/web2c/mktexnam
@@ -9,8 +9,8 @@ usage="Usage: $0 NAME [DPI MODE] [DESTDI
 # Common code for all scripts.
-: ${MT_TEXMFMAIN=`kpsewhich --expand-path='$TEXMFMAIN'`}
-: ${MT_MKTEX_OPT=`kpsewhich --format='web2c files' mktex.opt`}
+: ${MT_TEXMFMAIN=`@KPSEWHICH@ --expand-path='$TEXMFMAIN'`}
+: ${MT_MKTEX_OPT=`@KPSEWHICH@ --format='web2c files' mktex.opt`}
 test -n "$MT_MKTEX_OPT" || MT_MKTEX_OPT="$MT_TEXMFMAIN/web2c/mktex.opt"
 if test ! -f "$MT_MKTEX_OPT"; then
   echo "$0: Cannot find mktex.opt; check your installation." >&2
@@ -41,23 +41,23 @@ esac
 # Find the font: test tfm first, then mf, then possible sauterized mf.
-fullname=`kpsewhich "$NAME.tfm" 2>/dev/null`
-test -z "$fullname" && fullname=`kpsewhich "$NAME.mf" 2>/dev/null`
+fullname=`@KPSEWHICH@ "$NAME.tfm" 2>/dev/null`
+test -z "$fullname" && fullname=`@KPSEWHICH@ "$NAME.mf" 2>/dev/null`
 if test -z "$fullname"; then
   rootname=`echo $NAME | sed 's/[0-9]*$//'`
-  fullname=`kpsewhich "b-$rootname.mf" 2>/dev/null`
+  fullname=`@KPSEWHICH@ "b-$rootname.mf" 2>/dev/null`
   # LH fonts get special treatment:
   if test -z "$fullname"; then
     case $rootname in
       # Czech/Slovak fonts get special treatment:
-           fullname=`kpsewhich cscode.mf`
+           fullname=`@KPSEWHICH@ cscode.mf`
       # LH fonts get special treatment:
            lhprefix=`echo $NAME | sed 's/^\(..\).*/\1/'`
-           fullname=`kpsewhich "${lhprefix}codes.mf" 2>/dev/null`;;
-      *)   fullname=`kpsewhich "$rootname.mf" 2>/dev/null`
+           fullname=`@KPSEWHICH@ "${lhprefix}codes.mf" 2>/dev/null`;;
+      *)   fullname=`@KPSEWHICH@ "$rootname.mf" 2>/dev/null`
@@ -71,7 +71,7 @@ else
   fullname=`echo "$fullname" | sed 's%//*%/%g'`
   # See if $fullname comes from a standard location.
-  set x `kpsewhich --expand-path='$TEXMF/fonts'"$SEP$MT_VARTEXFONTS"`
+  set x `@KPSEWHICH@ --expand-path='$TEXMF/fonts'"$SEP$MT_VARTEXFONTS"`
   shift; IFS=$OIFS
   for i
@@ -138,14 +138,14 @@ test -n "$MT_MKTEXNAM_OPT" && . "$MT_MKT
 # Adjust MT_DESTROOT, if necessary.
 if test -n "${MT_DESTROOT}"; then
   # We distinguish system trees from the rest.
-  systexmf="`kpsewhich --expand-path='{$SYSTEXMF}/fonts'`$SEP$MT_VARTEXFONTS"
+  systexmf="`@KPSEWHICH@ --expand-path='{$SYSTEXMF}/fonts'`$SEP$MT_VARTEXFONTS"
   case "$SEP$systexmf$SEP" in
     *$SEP$MT_DESTROOT$SEP*) # A system tree.
       # If the texmfvar option is set, use TEXMFVAR tree.
       # Some additional uglyness handles the case where $TEXMFVAR exists
       # but $TEXMFVAR/fonts doesn't (yet).
       if test "x$USE_TEXMFVAR" = x1; then
-        : ${MT_TEXMFVAR=`kpsewhich --var-value=TEXMFVAR`}
+        : ${MT_TEXMFVAR=`@KPSEWHICH@ --var-value=TEXMFVAR`}
         if test -z "$MT_TEXMFVAR"; then
           # Path expansion of $TEXMFVAR was empty.