2015-03-30 13:39:58 +02:00
|
|
|
|
---
|
2016-06-14 12:26:43 +02:00
|
|
|
|
libs/icu/icu-src/source/common/Makefile.in | 2
|
|
|
|
|
reautoconf | 2
|
|
|
|
|
texk/dviljk/dvi2xx.c | 11
|
|
|
|
|
texk/kpathsea/c-fopen.h | 6
|
|
|
|
|
texk/kpathsea/c-memstr.h | 3
|
|
|
|
|
texk/kpathsea/cnf-to-paths.awk | 2
|
|
|
|
|
texk/kpathsea/db.c | 13
|
|
|
|
|
texk/kpathsea/mktex.opt | 39 ++
|
|
|
|
|
texk/kpathsea/mktexlsr | 43 ++
|
|
|
|
|
texk/kpathsea/progname.c | 4
|
|
|
|
|
texk/kpathsea/texmf.cnf | 173 +++++++-----
|
|
|
|
|
texk/lcdf-typetools/lcdf-typetools-src/otftotfm/otftotfm.cc | 3
|
|
|
|
|
texk/ps2pk/pk2bm.c | 35 +-
|
|
|
|
|
texk/texlive/linked_scripts/musixtex/musixtex.lua | 17 -
|
|
|
|
|
texk/texlive/linked_scripts/texlive/fmtutil-sys.sh | 1
|
|
|
|
|
texk/texlive/linked_scripts/texlive/fmtutil.pl | 24 +
|
|
|
|
|
texk/texlive/linked_scripts/texlive/updmap-sys.sh | 1
|
|
|
|
|
texk/texlive/tl_scripts/fmtutil.cnf | 17 -
|
|
|
|
|
texk/texlive/tl_scripts/texconfig-dialog.sh | 14
|
|
|
|
|
texk/texlive/tl_scripts/texconfig-sys.sh | 1
|
|
|
|
|
texk/texlive/tl_scripts/texconfig.sh | 35 --
|
|
|
|
|
texk/texlive/tl_scripts/texlinks.sh | 53 ++-
|
|
|
|
|
texk/web2c/Makefile.in | 7
|
|
|
|
|
texk/web2c/window/regis.c | 8
|
|
|
|
|
texk/web2c/window/x11-Xlib.c | 8
|
|
|
|
|
texk/web2c/window/x11-Xt.c | 4
|
|
|
|
|
texk/xdvik/psgs.c | 22 +
|
|
|
|
|
texk/xdvik/xdvi-sh.in | 19 +
|
|
|
|
|
28 files changed, 371 insertions(+), 196 deletions(-)
|
2015-03-30 13:39:58 +02:00
|
|
|
|
|
2016-06-14 12:26:43 +02:00
|
|
|
|
--- libs/icu/icu-src/source/common/Makefile.in
|
|
|
|
|
+++ libs/icu/icu-src/source/common/Makefile.in 2016-06-07 13:40:23.537446416 +0000
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -67,7 +67,7 @@ DEFS += -DU_COMMON_IMPLEMENTATION
|
|
|
|
|
LDFLAGS += $(LDFLAGSICUUC)
|
|
|
|
|
|
|
|
|
|
# for plugin configuration
|
|
|
|
|
-CPPFLAGS += "-DDEFAULT_ICU_PLUGINS=\"$(libdir)/icu\" "
|
|
|
|
|
+CPPFLAGS += "-DDEFAULT_ICU_PLUGINS=\"/usr/lib/icu\" "
|
|
|
|
|
|
|
|
|
|
# for icu data location
|
|
|
|
|
ifeq ($(PKGDATA_MODE),common)
|
2011-12-20 18:29:17 +01:00
|
|
|
|
--- reautoconf
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ reautoconf 2016-06-07 13:40:23.537446416 +0000
|
2011-12-20 18:29:17 +01:00
|
|
|
|
@@ -83,7 +83,7 @@ echo "$0: TL_AUTOHEADER, T
|
|
|
|
|
|
|
|
|
|
# Give users a chance to quit here
|
|
|
|
|
# and set TL_AUTOCONF, TL_AUTOHEADER, TL_AUTOMAKE, and/or TL_ACLOCAL
|
|
|
|
|
-$do_cmd sleep 5
|
|
|
|
|
+# $do_cmd sleep 5
|
|
|
|
|
|
|
|
|
|
AUTOCONF=$TL_AUTOCONF
|
|
|
|
|
AUTOHEADER=$TL_AUTOHEADER
|
|
|
|
|
--- texk/dviljk/dvi2xx.c
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/dviljk/dvi2xx.c 2016-06-07 13:40:23.537446416 +0000
|
2013-07-31 15:21:21 +02:00
|
|
|
|
@@ -168,7 +168,18 @@ main(int argc, char *argv[])
|
|
|
|
|
|
2011-12-20 18:29:17 +01:00
|
|
|
|
setbuf(ERR_STREAM, NULL);
|
|
|
|
|
#ifdef KPATHSEA
|
|
|
|
|
+# if defined(LJ)
|
|
|
|
|
kpse_set_program_name(argv[0], "dvilj");
|
|
|
|
|
+# endif
|
|
|
|
|
+# if defined(LJ2P)
|
|
|
|
|
+ kpse_set_program_name(argv[0], "dvilj2p");
|
|
|
|
|
+# endif
|
|
|
|
|
+# if defined(LJ4) && !defined(LJ4L)
|
|
|
|
|
+ kpse_set_program_name(argv[0], "dvilj4");
|
|
|
|
|
+# endif
|
|
|
|
|
+# if defined(LJ4) && defined(LJ4L)
|
|
|
|
|
+ kpse_set_program_name(argv[0], "dvilj4l");
|
|
|
|
|
+# endif
|
|
|
|
|
kpse_set_program_enabled (kpse_pk_format, MAKE_TEX_PK_BY_DEFAULT, kpse_src_compile);
|
2013-07-31 15:21:21 +02:00
|
|
|
|
G_progname = kpse_program_name;
|
|
|
|
|
#else
|
2011-12-20 18:29:17 +01:00
|
|
|
|
--- texk/kpathsea/c-fopen.h
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/kpathsea/c-fopen.h 2016-06-07 13:40:23.537446416 +0000
|
2015-03-30 13:39:58 +02:00
|
|
|
|
@@ -38,17 +38,17 @@
|
2011-12-20 18:29:17 +01:00
|
|
|
|
|
|
|
|
|
/* How to open a binary file for reading: */
|
|
|
|
|
#ifndef FOPEN_RBIN_MODE
|
|
|
|
|
-#define FOPEN_RBIN_MODE "rb"
|
|
|
|
|
+#define FOPEN_RBIN_MODE "r"
|
|
|
|
|
#endif /* not FOPEN_RBIN_MODE */
|
|
|
|
|
|
|
|
|
|
/* How to open a binary file for writing: */
|
|
|
|
|
#ifndef FOPEN_WBIN_MODE
|
|
|
|
|
-#define FOPEN_WBIN_MODE "wb"
|
|
|
|
|
+#define FOPEN_WBIN_MODE "w"
|
|
|
|
|
#endif /* not FOPEN_WBIN_MODE */
|
|
|
|
|
|
|
|
|
|
/* How to open a binary file for appending: */
|
|
|
|
|
#ifndef FOPEN_ABIN_MODE
|
|
|
|
|
-#define FOPEN_ABIN_MODE "ab"
|
|
|
|
|
+#define FOPEN_ABIN_MODE "a"
|
|
|
|
|
#endif /* not FOPEN_ABIN_MODE */
|
|
|
|
|
|
|
|
|
|
/* How to switch an already open file handle to binary mode.
|
|
|
|
|
--- texk/kpathsea/c-memstr.h
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/kpathsea/c-memstr.h 2016-06-07 13:40:23.537446416 +0000
|
2015-03-30 13:39:58 +02:00
|
|
|
|
@@ -37,6 +37,7 @@
|
2011-12-20 18:29:17 +01:00
|
|
|
|
|
2015-03-30 13:39:58 +02:00
|
|
|
|
/* For ancient systems that lack the system V/ANSI version of the
|
|
|
|
|
string functions we express them in terms of the BSD versions. */
|
2011-12-20 18:29:17 +01:00
|
|
|
|
+#ifndef __GNUC__
|
|
|
|
|
#if !defined(HAVE_STRCHR) && !defined(strchr)
|
|
|
|
|
#define strchr index
|
|
|
|
|
#endif
|
2015-03-30 13:39:58 +02:00
|
|
|
|
@@ -60,4 +61,6 @@ extern char *strstr ();
|
2011-12-20 18:29:17 +01:00
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
+#endif /* not __GNUC__ */
|
|
|
|
|
+
|
|
|
|
|
#endif /* not KPATHSEA_C_MEMSTR_H */
|
|
|
|
|
--- texk/kpathsea/cnf-to-paths.awk
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/kpathsea/cnf-to-paths.awk 2016-06-07 13:40:23.537446416 +0000
|
2015-03-30 13:39:58 +02:00
|
|
|
|
@@ -37,7 +37,7 @@
|
2011-12-20 18:29:17 +01:00
|
|
|
|
val = $0;
|
|
|
|
|
sub(/^.*=[ \t]*/, "", val);
|
|
|
|
|
sub(/[ \t]*$/, "", val);
|
|
|
|
|
- #print "got ident", ident, "and val", val >"/dev/stderr";
|
|
|
|
|
+print "got ident", ident, "and val", val >"/dev/stderr";
|
|
|
|
|
|
|
|
|
|
if (val ~ /\$SELFAUTO/) {
|
|
|
|
|
# Replace all semicolons with colons in the SELFAUTO paths we're keeping.
|
|
|
|
|
--- texk/kpathsea/db.c
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/kpathsea/db.c 2016-06-07 13:40:23.537446416 +0000
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -92,7 +92,8 @@ db_build (kpathsea kpse, hash_table_type
|
2011-12-20 18:29:17 +01:00
|
|
|
|
unsigned len = strlen (db_filename) - sizeof (DB_NAME) + 1; /* Keep the /. */
|
|
|
|
|
string top_dir = (string)xmalloc (len + 1);
|
|
|
|
|
string cur_dir = NULL; /* First thing in ls-R might be a filename. */
|
|
|
|
|
- FILE *db_file = fopen (db_filename, FOPEN_R_MODE);
|
|
|
|
|
+ struct stat statdb;
|
|
|
|
|
+ FILE *db_file;
|
2012-04-13 18:41:24 +02:00
|
|
|
|
#if defined(WIN32)
|
|
|
|
|
string pp;
|
|
|
|
|
#endif
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -100,7 +101,15 @@ db_build (kpathsea kpse, hash_table_type
|
2011-12-20 18:29:17 +01:00
|
|
|
|
strncpy (top_dir, db_filename, len);
|
|
|
|
|
top_dir[len] = 0;
|
|
|
|
|
|
|
|
|
|
- if (db_file) {
|
|
|
|
|
+ if ((getenv("MKTEXLSR") == NULL) &&
|
|
|
|
|
+ (stat(db_filename, &statdb) < 0 || statdb.st_size == 0)) {
|
|
|
|
|
+ char buf[PATH_MAX+1];
|
|
|
|
|
+ snprintf(buf, PATH_MAX, "mktexlsr %s", top_dir);
|
|
|
|
|
+ xputenv("MKTEXLSR", "true"); /* fork loop detection */
|
|
|
|
|
+ system (buf);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if ((db_file = fopen (db_filename, FOPEN_R_MODE))) {
|
|
|
|
|
while ((line = read_line (db_file)) != NULL) {
|
|
|
|
|
len = strlen (line);
|
|
|
|
|
|
|
|
|
|
--- texk/kpathsea/mktex.opt
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/kpathsea/mktex.opt 2016-06-07 13:40:23.537446416 +0000
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -38,10 +38,11 @@ if test "$DOSISH" = "no"; then SEP=':';
|
2011-12-20 18:29:17 +01:00
|
|
|
|
# TEMPDIR needs to be unique to each process because of the possibility of two
|
|
|
|
|
# people running dvips (or whatever) simultaneously.
|
|
|
|
|
if test -n "$TMPDIR"; then
|
|
|
|
|
- TEMPDIR="${TMPDIR}/mt$$.tmp"
|
|
|
|
|
+ TEMPDIR="${TMPDIR}/.mtXXXXXXXXXX"
|
|
|
|
|
else
|
|
|
|
|
- TEMPDIR="/tmp/mt$$.tmp"
|
|
|
|
|
+ TEMPDIR="/tmp/.mtXXXXXXXXXX"
|
|
|
|
|
fi
|
|
|
|
|
+TEMPDIR=$(mktemp -d "$TEMPDIR") || exit 1
|
|
|
|
|
|
|
|
|
|
# We want to output only filenames to standard output, but it's too
|
|
|
|
|
# error-prone to write the scripts that way, so we direct stdout here.
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -49,17 +50,23 @@ STDOUT="$TEMPDIR/mt$$.out"
|
2011-12-20 18:29:17 +01:00
|
|
|
|
|
|
|
|
|
# We will change search paths to include $KPSE_DOT. This is necessary
|
|
|
|
|
# since we cd to $TEMPDIR.
|
|
|
|
|
-: ${KPSE_DOT=`pwd`}; export KPSE_DOT
|
|
|
|
|
+: ${KPSE_DOT=${PWD}}; export KPSE_DOT
|
|
|
|
|
|
|
|
|
|
# Clean up on normal or abnormal exit.
|
|
|
|
|
# The "cd /" is for MS-DOS and MS-Windows, where there is a separate
|
|
|
|
|
# current directory on each drive, and therefore "cd $KPSE_DOT" might
|
|
|
|
|
# still leave $TMPDIR current directory on its drive, in which case it
|
|
|
|
|
# cannot be removed.
|
|
|
|
|
-trap 'rc=$?; cd /; cd "$KPSE_DOT"; test -f "$STDOUT" && cat "$STDOUT"; rm -rf "$TEMPDIR"; exit $rc' \
|
|
|
|
|
- 0 1 2 3 7 13 15
|
|
|
|
|
+atexit ()
|
|
|
|
|
+{
|
|
|
|
|
+ local rc=$?
|
|
|
|
|
+ cd "$KPSE_DOT"
|
|
|
|
|
+ test -n "$STDOUT" -a -f "$STDOUT" && cat "$STDOUT"
|
|
|
|
|
+ test -n "$TEMPDIR" -a -d "$TEMPDIR" && rm -rf "$TEMPDIR"
|
|
|
|
|
+ exit $rc
|
|
|
|
|
+}
|
|
|
|
|
+trap 'atexit' EXIT SIGHUP SIGINT SIGQUIT SIGBUS SIGPIPE SIGTERM
|
|
|
|
|
|
|
|
|
|
-(umask 077 && mkdir "$TEMPDIR") || exit 1
|
|
|
|
|
cd "$TEMPDIR" || exit 1
|
|
|
|
|
|
|
|
|
|
# The alternative location for fonts. The directory need not exist,
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -69,6 +76,11 @@ if test -z "$MT_VARTEXFONTS"; then
|
2011-12-20 18:29:17 +01:00
|
|
|
|
echo "$0: VARTEXFONTS is not defined. Defaulting to \`$KPSE_DOT'." >&2
|
|
|
|
|
MT_VARTEXFONTS='$KPSE_DOT'
|
|
|
|
|
fi
|
|
|
|
|
+: ${MT_TEXMFVAR=`kpsewhich --expand-var='$TEXMFVAR' | sed 's%^!!%%'`}
|
|
|
|
|
+if test -z "$MT_TEXMFVAR"; then
|
|
|
|
|
+ echo "$0: TEXMFVAR is not defined. Defaulting to \`$KPSE_DOT'." >&2
|
|
|
|
|
+ MT_TEXMFVAR='$KPSE_DOT'
|
|
|
|
|
+fi
|
|
|
|
|
|
|
|
|
|
# The supporting scripts:
|
|
|
|
|
: ${MT_MKTEXNAM=`kpsewhich --format='web2c files' mktexnam`}
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -109,9 +121,18 @@ fi
|
2012-05-14 13:35:50 +02:00
|
|
|
|
: ${MAG=1.0}
|
|
|
|
|
: ${ps_to_pk=gsftopk} # some prefer ps2pk
|
|
|
|
|
|
|
|
|
|
-# Allow fonts to be read and written (especially in case we make
|
|
|
|
|
-# directories) by everyone.
|
|
|
|
|
-umask 0
|
|
|
|
|
+case ":${MT_FEATURES}:" in
|
|
|
|
|
+*:varfonts:*)
|
|
|
|
|
+ if test -w "$MT_VARTEXFONTS" ; then
|
|
|
|
|
+ # Allow fonts to be read and written (especially in case we make
|
|
|
|
|
+ # directories) by everyone.
|
|
|
|
|
+ umask 0
|
|
|
|
|
+ else
|
|
|
|
|
+ umask 022
|
|
|
|
|
+ MT_VARTEXFONTS=$HOME/.cache/texmf/fonts
|
|
|
|
|
+ test -d $MT_VARTEXFONTS || mkdir -p $MT_VARTEXFONTS
|
|
|
|
|
+ fi
|
|
|
|
|
+esac
|
|
|
|
|
|
|
|
|
|
# Cache values that may be useful for recursive calls.
|
|
|
|
|
export MT_MKTEX_OPT MT_MKTEX_CNF
|
2011-12-20 18:29:17 +01:00
|
|
|
|
--- texk/kpathsea/mktexlsr
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/kpathsea/mktexlsr 2016-06-07 13:40:23.537446416 +0000
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -58,6 +58,9 @@ if test "$DOSISH" = "no"; then SEP=':';
|
2011-12-20 18:29:17 +01:00
|
|
|
|
# be done before kpsewhich can be called, and thus cannot be put into
|
|
|
|
|
# mktex.opt.
|
|
|
|
|
dirname=`echo $0 | sed 's%/*[^/][^/]*$%%'`
|
|
|
|
|
+case "$SEP$PATH$SEP" in
|
|
|
|
|
+ *$SEP$dirname$SEP*) dirname="" ;;
|
|
|
|
|
+esac
|
|
|
|
|
case $dirname in
|
|
|
|
|
"") # Do nothing
|
|
|
|
|
;;
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -141,6 +144,7 @@ old_ls_R_magic='% ls-R -- maintained by
|
2011-12-20 18:29:17 +01:00
|
|
|
|
shift
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
+cache="`kpsewhich --expand-var='$VARTEXFONTS'`"
|
|
|
|
|
for TEXMFLS_R in "$@"; do
|
|
|
|
|
# Prepend cwd if the directory was relative.
|
|
|
|
|
case "$TEXMFLS_R" in
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -170,12 +174,23 @@ for TEXMFLS_R in "$@"; do
|
2011-12-20 18:29:17 +01:00
|
|
|
|
# want to be silent if the directory doesn't exist, since the ls-R
|
|
|
|
|
# path ordinarily contains many nonexistent directories.
|
|
|
|
|
test -d "$db_dir" || continue
|
|
|
|
|
- test -w "$db_dir" || { echo "$progname: $db_dir: directory not writable. Skipping..." >&2; continue; }
|
|
|
|
|
+ if test -w "$db_dir" ; then
|
|
|
|
|
+ # default
|
|
|
|
|
+ db_dir_tmp="$db_dir/.lsR.XXXXXX"
|
|
|
|
|
+ else
|
|
|
|
|
+ # Escape to writable cache directory
|
|
|
|
|
+ test -w "$cache" || { echo "$progname: $db_dir: directory not writable. Skipping..." >&2; continue; }
|
|
|
|
|
+ db_dir_tmp="$cache/.lsR.XXXXXX"
|
|
|
|
|
+ fi
|
|
|
|
|
|
|
|
|
|
if test ! -f "$db_file"; then
|
|
|
|
|
- cp /dev/null "$db_file"
|
2015-03-30 13:39:58 +02:00
|
|
|
|
+ # Note: this script has set the noclobber option at line 40
|
2011-12-20 18:29:17 +01:00
|
|
|
|
+ > "$db_file" \
|
|
|
|
|
+ || { echo "$progname: could not create file '$db_file'. Skipping..." >&2; continue; }
|
|
|
|
|
# Use same permissions as parent directory, minus x,s, or t bits.
|
|
|
|
|
chmod `kpsestat -xst "$db_dir"` "$db_file"
|
|
|
|
|
+ elif test -w $db_file -a ! -s $db_file ; then
|
|
|
|
|
+ : Is writable but empty
|
|
|
|
|
elif test -s "$db_file" \
|
|
|
|
|
&& test "x`sed '1s/
$//;1q' \"$db_file\"`" != "x$ls_R_magic" \
|
|
|
|
|
&& test "x`sed '1s/
$//;1q' \"$db_file\"`" != "x$old_ls_R_magic"; then
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -186,8 +201,13 @@ for TEXMFLS_R in "$@"; do
|
2011-12-20 18:29:17 +01:00
|
|
|
|
# Skip if we cannot write the file:
|
|
|
|
|
kpseaccess -w "$db_file" || { echo "$progname: $db_file: no write permission, skipping..." >&2; continue; }
|
|
|
|
|
|
|
|
|
|
- db_dir_tmp="$db_dir/lsR$$.tmp"
|
|
|
|
|
- (umask 077 && mkdir "$db_dir_tmp" ) \
|
|
|
|
|
+ until PERMS=`kpsestat = "$db_file"`; do sleep 1; done
|
|
|
|
|
+ if test "$PERMS" = "666" -a ! -k "$db_dir" ; then
|
2015-03-30 13:39:58 +02:00
|
|
|
|
+ echo "$progname: $db_file: world writable but '$db_dir' not sticky, skipping..." >&2
|
2011-12-20 18:29:17 +01:00
|
|
|
|
+ continue
|
|
|
|
|
+ fi
|
|
|
|
|
+
|
|
|
|
|
+ db_dir_tmp=$(mktemp -d "$db_dir_tmp") \
|
|
|
|
|
|| { echo "$progname: $db_dir_tmp: could not create directory, skipping..." >&2; continue; }
|
|
|
|
|
db_file_tmp="$db_dir_tmp/lsR$$.tmp"
|
|
|
|
|
rm -f "$db_file_tmp"
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -195,7 +215,9 @@ for TEXMFLS_R in "$@"; do
|
2015-03-30 13:39:58 +02:00
|
|
|
|
$verbose && echo "$progname: Updating $db_file... "
|
2011-12-20 18:29:17 +01:00
|
|
|
|
$dry_run && continue
|
2015-03-30 13:39:58 +02:00
|
|
|
|
|
2011-12-20 18:29:17 +01:00
|
|
|
|
- echo "$ls_R_magic" >"$db_file_tmp"
|
2015-03-30 13:39:58 +02:00
|
|
|
|
+ # Note: this script has set the noclobber option at line 40
|
2011-12-20 18:29:17 +01:00
|
|
|
|
+ echo "$ls_R_magic" >"$db_file_tmp" \
|
2015-03-30 13:39:58 +02:00
|
|
|
|
+ || { echo "$progname: $db_file_tmp: could not create file, skipping..." >&2; continue; }
|
2011-12-20 18:29:17 +01:00
|
|
|
|
|
|
|
|
|
# The main task. We put ./: in the output, so top-level files can be
|
|
|
|
|
# found via ls-R. Probably irrelevant in practice. The sed command
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -209,15 +231,20 @@ for TEXMFLS_R in "$@"; do
|
2011-12-20 18:29:17 +01:00
|
|
|
|
vc_dirs='\.\(bzr\|git\|hg\|svn\)\|_darcs'
|
2012-04-23 15:24:05 +02:00
|
|
|
|
(cd "$TEXMFLS_R" && \ls -LRa 2>/dev/null) \
|
2011-12-20 18:29:17 +01:00
|
|
|
|
| sed -e '/^$/{n;s%^\./%%;s%^%./%;}; /^\.$/d; /^\.\.$/d; /^'$vc_dirs'$/d;' \
|
|
|
|
|
- -e '/^[\.\/]*lsR[0-9]*\.tmp:*$/d' \
|
|
|
|
|
+ -e '/^[\.\/]*lsR[0-9]*\.tmp:*$/d;/^[\.\/]*'${db_dir_tmp##*/}':*$/d' \
|
|
|
|
|
| sed -e /$vc_dirs'.*:$/,/^$/d' \
|
|
|
|
|
>>"$db_file_tmp"
|
|
|
|
|
|
|
|
|
|
# To be really safe, a loop.
|
|
|
|
|
until PERMS=`kpsestat = "$db_file"`; do sleep 1; done
|
|
|
|
|
chmod $PERMS "$db_file_tmp"
|
|
|
|
|
- rm -f "$db_file"
|
|
|
|
|
- mv "$db_file_tmp" "$db_file"
|
2012-04-27 17:49:04 +02:00
|
|
|
|
+ if test -w "$db_file" ; then
|
|
|
|
|
+ # Sticky bit is set see line 200
|
|
|
|
|
+ # Temporary unset the noclobber option at line 40
|
2011-12-20 18:29:17 +01:00
|
|
|
|
+ set +o noclobber
|
|
|
|
|
+ cat "$db_file_tmp" > "$db_file"
|
|
|
|
|
+ set -o noclobber
|
|
|
|
|
+ fi
|
|
|
|
|
rm -rf "$db_dir_tmp"
|
|
|
|
|
done
|
2015-03-30 13:39:58 +02:00
|
|
|
|
|
2011-12-20 18:29:17 +01:00
|
|
|
|
--- texk/kpathsea/progname.c
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/kpathsea/progname.c 2016-06-07 13:40:23.537446416 +0000
|
2015-03-30 13:39:58 +02:00
|
|
|
|
@@ -668,9 +668,9 @@ kpathsea_set_program_name (kpathsea kpse
|
2011-12-20 18:29:17 +01:00
|
|
|
|
/* SELFAUTODIR is actually the parent of the invocation directory,
|
|
|
|
|
and SELFAUTOPARENT the grandparent. This is how teTeX did it. */
|
2012-04-13 18:41:24 +02:00
|
|
|
|
kpathsea_xputenv (kpse, "SELFAUTOLOC", fix_selfdir (sdir));
|
2011-12-20 18:29:17 +01:00
|
|
|
|
- sdir_parent = xdirname (sdir);
|
2013-09-26 12:37:55 +02:00
|
|
|
|
+ sdir_parent = xdirname ("/usr/share");
|
2012-04-13 18:41:24 +02:00
|
|
|
|
kpathsea_xputenv (kpse, "SELFAUTODIR", fix_selfdir (sdir_parent));
|
2011-12-20 18:29:17 +01:00
|
|
|
|
- sdir_grandparent = xdirname (sdir_parent);
|
2013-09-26 12:37:55 +02:00
|
|
|
|
+ sdir_grandparent = xdirname ("/usr/share/texmf");
|
2012-04-13 18:41:24 +02:00
|
|
|
|
kpathsea_xputenv (kpse, "SELFAUTOPARENT", fix_selfdir (sdir_grandparent));
|
2013-07-31 15:21:21 +02:00
|
|
|
|
sdir_greatgrandparent = xdirname (sdir_grandparent);
|
|
|
|
|
kpathsea_xputenv (kpse, "SELFAUTOGRANDPARENT", fix_selfdir (sdir_greatgrandparent));
|
2011-12-20 18:29:17 +01:00
|
|
|
|
--- texk/kpathsea/texmf.cnf
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/kpathsea/texmf.cnf 2016-06-07 13:58:00.905630040 +0000
|
|
|
|
|
@@ -57,32 +57,32 @@
|
2013-07-31 15:21:21 +02:00
|
|
|
|
TEXMFROOT = $SELFAUTOPARENT
|
2011-12-20 18:29:17 +01:00
|
|
|
|
|
2013-07-31 15:21:21 +02:00
|
|
|
|
% The main tree of distributed packages and programs:
|
2011-12-20 18:29:17 +01:00
|
|
|
|
-TEXMFDIST = $TEXMFROOT/texmf-dist
|
|
|
|
|
+TEXMFDIST = /usr/share/texmf
|
2013-07-31 15:21:21 +02:00
|
|
|
|
|
|
|
|
|
% We used to have a separate /texmf tree with some core programs and files.
|
|
|
|
|
% Keep the variable name.
|
2015-03-30 13:39:58 +02:00
|
|
|
|
TEXMFMAIN = $TEXMFDIST
|
2011-12-20 18:29:17 +01:00
|
|
|
|
|
|
|
|
|
% Local additions to the distribution trees.
|
2013-07-31 15:21:21 +02:00
|
|
|
|
-TEXMFLOCAL = $SELFAUTOGRANDPARENT/texmf-local
|
2011-12-20 18:29:17 +01:00
|
|
|
|
+TEXMFLOCAL = /usr/local/share/texmf
|
|
|
|
|
|
|
|
|
|
% TEXMFSYSVAR, where *-sys store cached runtime data.
|
|
|
|
|
-TEXMFSYSVAR = $TEXMFROOT/texmf-var
|
|
|
|
|
+TEXMFSYSVAR = /var/lib/texmf
|
|
|
|
|
|
|
|
|
|
% TEXMFSYSCONFIG, where *-sys store configuration data.
|
|
|
|
|
-TEXMFSYSCONFIG = $TEXMFROOT/texmf-config
|
|
|
|
|
+TEXMFSYSCONFIG = /etc/texmf
|
|
|
|
|
|
|
|
|
|
% Per-user texmf tree(s) -- organized per the TDS, as usual. To define
|
|
|
|
|
% more than one per-user tree, set this to a list of directories in
|
|
|
|
|
% braces, as described above. (This used to be HOMETEXMF.) ~ expands
|
|
|
|
|
% to %USERPROFILE% on Windows, $HOME otherwise.
|
|
|
|
|
-TEXMFHOME = ~/texmf
|
|
|
|
|
+TEXMFHOME = $HOME/texmf
|
|
|
|
|
|
|
|
|
|
% TEXMFVAR, where texconfig/updmap/fmtutil store cached runtime data.
|
2016-06-14 12:26:43 +02:00
|
|
|
|
-TEXMFVAR = ~/.texlive2016/texmf-var
|
2011-12-20 18:29:17 +01:00
|
|
|
|
+TEXMFVAR = ${TEXMFSYSVAR}
|
|
|
|
|
|
|
|
|
|
% TEXMFCONFIG, where texconfig/updmap/fmtutil store configuration data.
|
2016-06-14 12:26:43 +02:00
|
|
|
|
-TEXMFCONFIG = ~/.texlive2016/texmf-config
|
2011-12-20 18:29:17 +01:00
|
|
|
|
+TEXMFCONFIG = ${TEXMFSYSCONFIG}
|
|
|
|
|
|
2013-07-31 15:21:21 +02:00
|
|
|
|
% List all the texmf trees. For an explanation of what they are, see the
|
|
|
|
|
% TeX Live manual.
|
2016-06-14 12:26:43 +02:00
|
|
|
|
@@ -94,7 +94,7 @@ TEXMFCONFIG = ~/.texlive2016/texmf-confi
|
2013-07-31 15:21:21 +02:00
|
|
|
|
% should take precedence over distribution files -- although it is
|
|
|
|
|
% generally a source of confusion to have different versions of a
|
|
|
|
|
% package installed, whatever the trees, so try to avoid it.
|
|
|
|
|
-TEXMF = {$TEXMFCONFIG,$TEXMFVAR,$TEXMFHOME,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFLOCAL,!!$TEXMFDIST}
|
2013-08-08 16:44:54 +02:00
|
|
|
|
+TEXMF = {$TEXMFHOME,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFLOCAL,!!$TEXMFDIST}
|
2011-12-20 18:29:17 +01:00
|
|
|
|
|
|
|
|
|
% Where to look for ls-R files. There need not be an ls-R in the
|
|
|
|
|
% directories in this path, but if there is one, Kpathsea will use it.
|
2017-05-26 16:46:23 +02:00
|
|
|
|
@@ -102,24 +102,23 @@ TEXMF = {$TEXMFCONFIG,$TEXMFVAR,$TEXMFHO
|
2011-12-20 18:29:17 +01:00
|
|
|
|
% does not create ls-R files in the non-!! elements -- because if an
|
|
|
|
|
% ls-R is present, it will be used, and the disk will not be searched.
|
|
|
|
|
% This is arguably a bug in kpathsea.
|
2013-07-31 15:21:21 +02:00
|
|
|
|
-TEXMFDBS = {!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFLOCAL,!!$TEXMFDIST}
|
2015-03-30 13:39:58 +02:00
|
|
|
|
+TEXMFDBS = $TEXMF;$VARTEXFONTS;$HOMECACHE
|
2011-12-20 18:29:17 +01:00
|
|
|
|
|
|
|
|
|
% The system trees. These are the trees that are shared by all users.
|
|
|
|
|
% If a tree appears in this list, the mktex* scripts will use
|
|
|
|
|
% VARTEXFONTS for generated files, if the original tree isn't writable;
|
|
|
|
|
% otherwise the current working directory is used.
|
2013-07-31 15:21:21 +02:00
|
|
|
|
-SYSTEXMF = $TEXMFSYSVAR;$TEXMFLOCAL;$TEXMFDIST
|
2013-08-08 16:44:54 +02:00
|
|
|
|
+SYSTEXMF = $TEXMFSYSCONFIG;$TEXMFSYSVAR;$TEXMFLOCAL;$TEXMFDIST
|
2011-12-20 18:29:17 +01:00
|
|
|
|
|
2013-07-31 15:21:21 +02:00
|
|
|
|
% First writable tree here is used by Lua(La)TeX for the font cache.
|
|
|
|
|
% LuaLaTeX uses the value here, while ConTeXt uses the same variable but
|
2017-05-26 16:46:23 +02:00
|
|
|
|
% from texmfcnf.lua; therefore the two values should be kept in sync.
|
|
|
|
|
% (As should everything else in texmf.cnf <-> texmfcnf.lua.)
|
|
|
|
|
-TEXMFCACHE = $TEXMFSYSVAR;$TEXMFVAR
|
|
|
|
|
+TEXMFCACHE = $TEXMFSYSVAR;$TEXMFVAR;$HOMECACHE
|
|
|
|
|
|
2011-12-20 18:29:17 +01:00
|
|
|
|
% Where generated fonts may be written. This tree is used when the sources
|
|
|
|
|
% were found in a system tree and either that tree wasn't writable, or the
|
|
|
|
|
% varfonts feature was enabled in MT_FEATURES in mktex.cnf.
|
|
|
|
|
-VARTEXFONTS = $TEXMFVAR/fonts
|
|
|
|
|
|
|
|
|
|
% On some systems, there will be a system tree which contains all the font
|
|
|
|
|
% files that may be created as well as the formats. For example
|
2016-06-14 12:26:43 +02:00
|
|
|
|
@@ -130,7 +129,8 @@ VARTEXFONTS = $TEXMFVAR/fonts
|
2011-12-20 18:29:17 +01:00
|
|
|
|
%
|
|
|
|
|
% Remove $VARTEXFONTS from TEXMFDBS if the VARTEXFONTS directory is below
|
|
|
|
|
% one of the TEXMF directories (avoids overlapping ls-R files).
|
|
|
|
|
-
|
|
|
|
|
+VARTEXFONTS = /var/cache/texmf/fonts
|
2015-03-30 13:39:58 +02:00
|
|
|
|
+HOMECACHE = ${HOME}/.cache/texmf/fonts
|
2011-12-20 18:29:17 +01:00
|
|
|
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
% Usually you will not need to edit any of the following variables.
|
2016-06-14 12:26:43 +02:00
|
|
|
|
@@ -138,7 +138,7 @@ VARTEXFONTS = $TEXMFVAR/fonts
|
2011-12-20 18:29:17 +01:00
|
|
|
|
|
|
|
|
|
% WEB2C is for Web2C specific files. The current directory may not be
|
|
|
|
|
% a good place to look for them.
|
|
|
|
|
-WEB2C = $TEXMF/web2c
|
|
|
|
|
+WEB2C = ${TEXMFHOME}/web2c;${TEXMFSYSCONFIG}/web2c;${TEXMFSYSVAR}/web2c;$TEXMF/web2c
|
|
|
|
|
|
|
|
|
|
% TEXINPUTS is for TeX input files -- i.e., anything to be found by \input
|
|
|
|
|
% or \openin, including .sty, .eps, etc. We specify paths for all known
|
2016-06-14 12:26:43 +02:00
|
|
|
|
@@ -179,18 +179,18 @@ TEXINPUTS.elatex = .;$TEXMF/tex/{
|
2011-12-20 18:29:17 +01:00
|
|
|
|
TEXINPUTS.etex = .;$TEXMF/tex/{plain,generic,}//
|
|
|
|
|
|
|
|
|
|
% pdfTeX.
|
|
|
|
|
-TEXINPUTS.pdfcslatex = .;$TEXMF/tex/{cslatex,csplain,latex,generic,}//
|
|
|
|
|
-TEXINPUTS.pdfcsplain = .;$TEXMF/tex/{csplain,plain,generic,}//
|
|
|
|
|
-TEXINPUTS.pdflatex = .;$TEXMF/tex/{latex,generic,}//
|
|
|
|
|
-TEXINPUTS.pdfmex = .;$TEXMF/tex/{mex,plain,generic,}//
|
|
|
|
|
-TEXINPUTS.utf8mex = .;$TEXMF/tex/{mex,plain,generic,}//
|
|
|
|
|
-TEXINPUTS.pdftex = .;$TEXMF/tex/{plain,generic,}//
|
|
|
|
|
-TEXINPUTS.pdftexinfo = .;$TEXMF/tex/{texinfo,plain,generic,}//
|
|
|
|
|
-TEXINPUTS.pdfamstex = .;$TEXMF/tex/{amstex,plain,generic,}//
|
|
|
|
|
+TEXINPUTS.pdfcslatex = .;$TEXMF/{pdftex,tex}/{cslatex,csplain,latex,generic,}//
|
|
|
|
|
+TEXINPUTS.pdfcsplain = .;$TEXMF/{pdftex,tex}/{csplain,plain,generic,}//
|
|
|
|
|
+TEXINPUTS.pdflatex = .;$TEXMF/{pdftex,tex}/{latex,generic,}//
|
|
|
|
|
+TEXINPUTS.pdfmex = .;$TEXMF/{pdftex,tex}/{mex,plain,generic,}//
|
|
|
|
|
+TEXINPUTS.utf8mex = .;$TEXMF/{pdftex,tex}/{mex,plain,generic,}//
|
|
|
|
|
+TEXINPUTS.pdftex = .;$TEXMF/{pdftex,tex}/{plain,generic,}//
|
|
|
|
|
+TEXINPUTS.pdftexinfo = .;$TEXMF/{pdftex,tex}/{texinfo,plain,generic,}//
|
|
|
|
|
+TEXINPUTS.pdfamstex = .;$TEXMF/{pdftex,tex}/{amstex,plain,generic,}//
|
|
|
|
|
|
|
|
|
|
% pdfeTeX.
|
|
|
|
|
-TEXINPUTS.pdfelatex = .;$TEXMF/tex/{latex,generic,}//
|
|
|
|
|
-TEXINPUTS.pdfetex = .;$TEXMF/tex/{plain,generic,}//
|
|
|
|
|
+TEXINPUTS.pdfelatex = .;$TEXMF/{pdftex,tex}/{latex,generic,}//
|
|
|
|
|
+TEXINPUTS.pdfetex = .;$TEXMF/{pdftex,tex}/{plain,generic,}//
|
|
|
|
|
|
|
|
|
|
% LuaTeX.
|
|
|
|
|
TEXINPUTS.lualatex = .;$TEXMF/tex/{lualatex,latex,luatex,generic,}//
|
2016-06-14 12:26:43 +02:00
|
|
|
|
@@ -238,18 +238,18 @@ BSTINPUTS.pbibtex = .;$TEXMF/{pbib
|
|
|
|
|
TEXINPUTS.context = .;$TEXMF/tex/{context,plain,generic,}//
|
2011-12-20 18:29:17 +01:00
|
|
|
|
|
|
|
|
|
% jadetex.
|
|
|
|
|
-TEXINPUTS.jadetex = .;$TEXMF/tex/{jadetex,latex,generic,}//
|
|
|
|
|
-TEXINPUTS.pdfjadetex = .;$TEXMF/tex/{jadetex,latex,generic,}//
|
|
|
|
|
+TEXINPUTS.jadetex = .;$TEXMF/tex/{jadetex,xmltex,latex,plain,generic,}//
|
|
|
|
|
+TEXINPUTS.pdfjadetex = .;$TEXMF/{pdftex,tex}/{jadetex,xmltex,latex,plain,generic,}//
|
|
|
|
|
|
|
|
|
|
% XMLTeX.
|
|
|
|
|
-TEXINPUTS.xmltex = .;$TEXMF/tex/{xmltex,latex,generic,}//
|
|
|
|
|
-TEXINPUTS.pdfxmltex = .;$TEXMF/tex/{xmltex,latex,generic,}//
|
|
|
|
|
+TEXINPUTS.xmltex = .;$TEXMF/tex/{xmltex,latex,plain,generic,}//
|
|
|
|
|
+TEXINPUTS.pdfxmltex = .;$TEXMF/{pdftex,tex}/{xmltex,latex,plain,generic,}//
|
|
|
|
|
|
|
|
|
|
% Miscellany, no longer built.
|
|
|
|
|
TEXINPUTS.lamstex = .;$TEXMF/tex/{lamstex,plain,generic,}//
|
|
|
|
|
TEXINPUTS.lollipop = .;$TEXMF/tex/{lollipop,plain,generic,}//
|
|
|
|
|
-TEXINPUTS.frpdflatex = .;$TEXMF/tex/{french,latex,generic,}//
|
|
|
|
|
-TEXINPUTS.frpdftex = .;$TEXMF/tex/{french,plain,generic,}//
|
|
|
|
|
+TEXINPUTS.frpdflatex = .;$TEXMF/{pdftex,tex}/{french,latex,generic,}//
|
|
|
|
|
+TEXINPUTS.frpdftex = .;$TEXMF/{pdftex,tex}/{french,plain,generic,}//
|
|
|
|
|
|
|
|
|
|
% Earlier entries override later ones, so put this generic one last.
|
|
|
|
|
TEXINPUTS = .;$TEXMF/tex/{$progname,generic,}//
|
2016-06-14 12:26:43 +02:00
|
|
|
|
@@ -258,7 +258,7 @@ TEXINPUTS = .;$TEXMF/tex/{
|
2015-03-30 13:39:58 +02:00
|
|
|
|
TTF2TFMINPUTS = .;$TEXMF/ttf2pk//
|
|
|
|
|
|
|
|
|
|
% Metafont, MetaPost inputs.
|
|
|
|
|
-MFINPUTS = .;$TEXMF/metafont//;{$TEXMF/fonts,$VARTEXFONTS}/source//
|
|
|
|
|
+MFINPUTS = .;$TEXMF/metafont//;{$TEXMF/fonts,$HOMECACHE,$VARTEXFONTS}/source//
|
|
|
|
|
MPINPUTS = .;$TEXMF/metapost//
|
|
|
|
|
|
|
|
|
|
% Dump files (fmt/base/mem) for vir{tex,mf,mp} to read.
|
2016-06-14 12:26:43 +02:00
|
|
|
|
@@ -268,31 +268,31 @@ MPINPUTS = .;$TEXMF/metapost//
|
2011-12-20 18:29:17 +01:00
|
|
|
|
% We repeat the same definition three times because of the way fmtutil
|
|
|
|
|
% is implemented; if we use ${TEXFORMATS}, the mpost/mf/etc. formats
|
|
|
|
|
% will not be found.
|
|
|
|
|
-TEXFORMATS = .;$TEXMF/web2c{/$engine,}
|
|
|
|
|
-MFBASES = .;$TEXMF/web2c{/$engine,}
|
|
|
|
|
-MPMEMS = .;$TEXMF/web2c{/$engine,}
|
|
|
|
|
+TEXFORMATS = .;$WEB2C/{$engine,}//
|
|
|
|
|
+MFBASES = .;$WEB2C/{$engine,}//
|
|
|
|
|
+MPMEMS = .;$WEB2C/{$engine,}//
|
|
|
|
|
%
|
|
|
|
|
% As of 2008, pool files don't exist any more (the strings are compiled
|
|
|
|
|
% into the binaries), but just in case something expects to find these:
|
|
|
|
|
-TEXPOOL = .;$TEXMF/web2c
|
|
|
|
|
+TEXPOOL = .;$WEB2C
|
|
|
|
|
MFPOOL = ${TEXPOOL}
|
|
|
|
|
MPPOOL = ${TEXPOOL}
|
|
|
|
|
|
2015-03-30 13:39:58 +02:00
|
|
|
|
% support the original xdvi. Must come before the generic settings.
|
|
|
|
|
-PKFONTS.XDvi = .;$TEXMF/%s;$VARTEXFONTS/pk/{%m,modeless}//
|
|
|
|
|
+PKFONTS.XDvi = .;$TEXMF/%s;{$HOMECACHE,$VARTEXFONTS}/pk/{%m,modeless}//
|
|
|
|
|
VFFONTS.XDvi = .;$TEXMF/%s
|
|
|
|
|
PSHEADERS.XDvi = .;$TEXMF/%q{dvips,fonts/type1}//
|
|
|
|
|
TEXPICTS.XDvi = .;$TEXMF/%q{dvips,tex}//
|
|
|
|
|
|
|
|
|
|
% Device-independent font metric files.
|
|
|
|
|
VFFONTS = .;$TEXMF/fonts/vf//
|
|
|
|
|
-TFMFONTS = .;{$TEXMF/fonts,$VARTEXFONTS}/tfm//
|
|
|
|
|
+TFMFONTS = .;{$TEXMF/fonts,$HOMECACHE,$VARTEXFONTS}/tfm//
|
|
|
|
|
|
|
|
|
|
% The $MAKETEX_MODE below means the drivers will not use a cx font when
|
|
|
|
|
% the mode is ricoh. If no mode is explicitly specified, kpse_prog_init
|
|
|
|
|
% sets MAKETEX_MODE to /, so all subdirectories are searched. See the manual.
|
|
|
|
|
% The modeless part guarantees that bitmaps for PostScript fonts are found.
|
|
|
|
|
-PKFONTS = .;{$TEXMF/fonts,$VARTEXFONTS}/pk/{$MAKETEX_MODE,modeless}//
|
|
|
|
|
+PKFONTS = .;{$TEXMF/fonts,$HOMECACHE,$VARTEXFONTS}/pk/{$MAKETEX_MODE,modeless}//
|
|
|
|
|
|
|
|
|
|
% Similarly for the GF format, which only remains in existence because
|
|
|
|
|
% Metafont outputs it (and MF isn't going to change).
|
2016-06-14 12:26:43 +02:00
|
|
|
|
@@ -302,7 +302,7 @@ GFFONTS = .;$TEXMF/fonts/gf/$MAKETEX_MOD
|
2011-12-20 18:29:17 +01:00
|
|
|
|
GLYPHFONTS = .;$TEXMF/fonts
|
|
|
|
|
|
|
|
|
|
% A place to puth everything that doesn't fit the other font categories.
|
|
|
|
|
-MISCFONTS = .;$TEXMF/fonts/misc//
|
|
|
|
|
+MISCFONTS = .;$TEXMF/fonts/misc//;$TEXMF/fonts/hbf//
|
|
|
|
|
|
|
|
|
|
% font name map files. This isn't just fonts/map// because ConTeXt
|
|
|
|
|
% wants support for having files with the same name in the different
|
2016-06-14 12:26:43 +02:00
|
|
|
|
@@ -384,8 +384,8 @@ MPSUPPORT = .;$TEXMF/metapost/support
|
2011-12-20 18:29:17 +01:00
|
|
|
|
% For xdvi to find mime.types and .mailcap, if they do not exist in
|
|
|
|
|
% ~. These are single directories, not paths.
|
|
|
|
|
% (But the default mime.types, at least, may well suffice.)
|
|
|
|
|
-MIMELIBDIR = $TEXMFROOT/etc
|
|
|
|
|
-MAILCAPLIBDIR = $TEXMFROOT/etc
|
|
|
|
|
+MIMELIBDIR = /etc
|
|
|
|
|
+MAILCAPLIBDIR = /etc
|
|
|
|
|
|
2012-04-13 18:41:24 +02:00
|
|
|
|
% Default settings for the fontconfig library as used by the Windows
|
2013-07-31 15:21:21 +02:00
|
|
|
|
% versions of xetex/xdvipdfmx. Not used by xetex on Unixish systems.
|
2016-06-14 12:26:43 +02:00
|
|
|
|
@@ -404,10 +404,10 @@ WEBINPUTS = .;$TEXMF/web//
|
2015-03-30 13:39:58 +02:00
|
|
|
|
CWEBINPUTS = .;$TEXMF/cweb//
|
|
|
|
|
|
|
|
|
|
% Omega-related fonts and other files.
|
|
|
|
|
-OFMFONTS = .;{$TEXMF/fonts,$VARTEXFONTS}/{ofm,tfm}//
|
|
|
|
|
-OPLFONTS = .;{$TEXMF/fonts,$VARTEXFONTS}/opl//
|
|
|
|
|
-OVFFONTS = .;{$TEXMF/fonts,$VARTEXFONTS}/{ovf,vf}//
|
|
|
|
|
-OVPFONTS = .;{$TEXMF/fonts,$VARTEXFONTS}/ovp//
|
|
|
|
|
+OFMFONTS = .;{$TEXMF/fonts,$HOMECACHE,$VARTEXFONTS}/{ofm,tfm}//
|
|
|
|
|
+OPLFONTS = .;{$TEXMF/fonts,$HOMECACHE,$VARTEXFONTS}/opl//
|
|
|
|
|
+OVFFONTS = .;{$TEXMF/fonts,$HOMECACHE,$VARTEXFONTS}/{ovf,vf}//
|
|
|
|
|
+OVPFONTS = .;{$TEXMF/fonts,$HOMECACHE,$VARTEXFONTS}/ovp//
|
|
|
|
|
OTPINPUTS = .;$TEXMF/omega/otp//
|
|
|
|
|
OCPINPUTS = .;$TEXMF/omega/ocp//
|
|
|
|
|
|
2017-05-26 16:46:23 +02:00
|
|
|
|
@@ -490,32 +490,38 @@ RUBYINPUTS = .;$TEXMF/scripts/{$progna
|
2013-07-31 15:21:21 +02:00
|
|
|
|
% explicitly list every directory. Arguably more understandable anyway.
|
2011-12-20 18:29:17 +01:00
|
|
|
|
%
|
2017-05-26 16:46:23 +02:00
|
|
|
|
TEXMFCNF = {\
|
2012-06-12 19:56:21 +02:00
|
|
|
|
-$SELFAUTOLOC,\
|
2013-07-31 15:21:21 +02:00
|
|
|
|
-$SELFAUTOLOC/share/texmf-local/web2c,\
|
|
|
|
|
-$SELFAUTOLOC/share/texmf-dist/web2c,\
|
|
|
|
|
-$SELFAUTOLOC/share/texmf/web2c,\
|
|
|
|
|
-$SELFAUTOLOC/texmf-local/web2c,\
|
|
|
|
|
-$SELFAUTOLOC/texmf-dist/web2c,\
|
|
|
|
|
-$SELFAUTOLOC/texmf/web2c,\
|
|
|
|
|
-\
|
2012-06-12 19:56:21 +02:00
|
|
|
|
-$SELFAUTODIR,\
|
2013-07-31 15:21:21 +02:00
|
|
|
|
-$SELFAUTODIR/share/texmf-local/web2c,\
|
|
|
|
|
-$SELFAUTODIR/share/texmf-dist/web2c,\
|
|
|
|
|
-$SELFAUTODIR/share/texmf/web2c,\
|
|
|
|
|
-$SELFAUTODIR/texmf-local/web2c,\
|
|
|
|
|
-$SELFAUTODIR/texmf-dist/web2c,\
|
|
|
|
|
-$SELFAUTODIR/texmf/web2c,\
|
|
|
|
|
-\
|
|
|
|
|
-$SELFAUTOGRANDPARENT/texmf-local/web2c,\
|
2012-06-12 19:56:21 +02:00
|
|
|
|
-$SELFAUTOPARENT,\
|
2013-07-31 15:21:21 +02:00
|
|
|
|
-\
|
|
|
|
|
-$SELFAUTOPARENT/share/texmf-local/web2c,\
|
|
|
|
|
-$SELFAUTOPARENT/share/texmf-dist/web2c,\
|
|
|
|
|
-$SELFAUTOPARENT/share/texmf/web2c,\
|
|
|
|
|
-$SELFAUTOPARENT/texmf-local/web2c,\
|
|
|
|
|
-$SELFAUTOPARENT/texmf-dist/web2c,\
|
|
|
|
|
-$SELFAUTOPARENT/texmf/web2c\
|
2017-05-26 16:46:23 +02:00
|
|
|
|
+/etc/texmf,\
|
|
|
|
|
+/etc/texmf/web2c,\
|
|
|
|
|
+/var/lib/texmf/web2c,\
|
|
|
|
|
+/usr/share/texmf/web2c\
|
|
|
|
|
}
|
2012-06-12 19:56:21 +02:00
|
|
|
|
+%TEXMFCNF = {\
|
|
|
|
|
+%$SELFAUTOLOC,\
|
2013-07-31 15:21:21 +02:00
|
|
|
|
+%$SELFAUTOLOC/share/texmf-local/web2c,\
|
|
|
|
|
+%$SELFAUTOLOC/share/texmf-dist/web2c,\
|
|
|
|
|
+%$SELFAUTOLOC/share/texmf/web2c,\
|
|
|
|
|
+%$SELFAUTOLOC/texmf-local/web2c,\
|
|
|
|
|
+%$SELFAUTOLOC/texmf-dist/web2c,\
|
|
|
|
|
+%$SELFAUTOLOC/texmf/web2c,\
|
|
|
|
|
+%\
|
2012-06-12 19:56:21 +02:00
|
|
|
|
+%$SELFAUTODIR,\
|
2013-07-31 15:21:21 +02:00
|
|
|
|
+%$SELFAUTODIR/share/texmf-local/web2c,\
|
|
|
|
|
+%$SELFAUTODIR/share/texmf-dist/web2c,\
|
|
|
|
|
+%$SELFAUTODIR/share/texmf/web2c,\
|
|
|
|
|
+%$SELFAUTODIR/texmf-local/web2c,\
|
|
|
|
|
+%$SELFAUTODIR/texmf-dist/web2c,\
|
|
|
|
|
+%$SELFAUTODIR/texmf/web2c,\
|
|
|
|
|
+%\
|
|
|
|
|
+%$SELFAUTOGRANDPARENT/texmf-local/web2c,\
|
2012-06-12 19:56:21 +02:00
|
|
|
|
+%$SELFAUTOPARENT,\
|
2013-07-31 15:21:21 +02:00
|
|
|
|
+%\
|
|
|
|
|
+%$SELFAUTOPARENT/share/texmf-local/web2c,\
|
|
|
|
|
+%$SELFAUTOPARENT/share/texmf-dist/web2c,\
|
|
|
|
|
+%$SELFAUTOPARENT/share/texmf/web2c,\
|
|
|
|
|
+%$SELFAUTOPARENT/texmf-local/web2c,\
|
|
|
|
|
+%$SELFAUTOPARENT/texmf-dist/web2c,\
|
|
|
|
|
+%$SELFAUTOPARENT/texmf/web2c\
|
2012-06-12 19:56:21 +02:00
|
|
|
|
+%}
|
2013-07-31 15:21:21 +02:00
|
|
|
|
%
|
2012-06-12 19:56:21 +02:00
|
|
|
|
% For reference, here is the old brace-using definition:
|
|
|
|
|
%TEXMFCNF = {$SELFAUTOLOC,$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,}/web2c}
|
2017-05-26 16:46:23 +02:00
|
|
|
|
@@ -568,7 +574,6 @@ extractbb,\
|
2017-03-08 14:29:15 +01:00
|
|
|
|
gregorio,\
|
|
|
|
|
kpsewhich,\
|
|
|
|
|
makeindex,\
|
|
|
|
|
-mpost,\
|
|
|
|
|
repstopdf,\
|
|
|
|
|
|
|
|
|
|
% we'd like to allow:
|
2017-05-26 16:46:23 +02:00
|
|
|
|
@@ -791,3 +796,33 @@ max_cols.gftype = 8191
|
2013-07-31 15:21:21 +02:00
|
|
|
|
% Guess input encoding (SJIS vs. Unicode, etc.) in pTeX and friends?
|
|
|
|
|
% Default is 0, to not guess.
|
2015-03-30 13:39:58 +02:00
|
|
|
|
guess_input_kanji_encoding = 1
|
2011-12-20 18:29:17 +01:00
|
|
|
|
+
|
|
|
|
|
+% These are xmltex specific
|
|
|
|
|
+main_memory.xmltex = 1500000
|
|
|
|
|
+param_size.xmltex = 1500
|
|
|
|
|
+stack_size.xmltex = 1500
|
|
|
|
|
+hash_extra.xmltex = 50000
|
|
|
|
|
+string_vacancies.xmltex = 45000
|
|
|
|
|
+pool_free.xmltex = 47500
|
|
|
|
|
+nest_size.xmltex = 500
|
|
|
|
|
+save_size.xmltex = 10000
|
|
|
|
|
+pool_size.xmltex = 500000
|
|
|
|
|
+max_strings.xmltex = 55000
|
|
|
|
|
+
|
|
|
|
|
+% These are pdfxmltex specific
|
|
|
|
|
+main_memory.pdfxmltex = 2500000
|
|
|
|
|
+param_size.pdfxmltex = 1500
|
|
|
|
|
+stack_size.pdfxmltex = 1500
|
|
|
|
|
+hash_extra.pdfxmltex = 50000
|
|
|
|
|
+string_vacancies.pdfxmltex = 45000
|
|
|
|
|
+pool_free.pdfxmltex = 47500
|
|
|
|
|
+nest_size.pdfxmltex = 500
|
|
|
|
|
+save_size.pdfxmltex = 10000
|
|
|
|
|
+pool_size.pdfxmltex = 500000
|
|
|
|
|
+max_strings.pdfxmltex = 55000
|
|
|
|
|
+
|
|
|
|
|
+% These are jadetex specific
|
|
|
|
|
+main_memory.jadetex = 499999
|
|
|
|
|
+hash_extra.jadetex = 25000
|
|
|
|
|
+pool_size.jadetex = 500000
|
|
|
|
|
+save_size.jadetex = 15000
|
2016-06-14 12:26:43 +02:00
|
|
|
|
--- texk/lcdf-typetools/lcdf-typetools-src/otftotfm/otftotfm.cc
|
|
|
|
|
+++ texk/lcdf-typetools/lcdf-typetools-src/otftotfm/otftotfm.cc 2016-06-07 13:40:23.541446341 +0000
|
2015-03-30 13:39:58 +02:00
|
|
|
|
@@ -67,6 +67,9 @@
|
|
|
|
|
# include <io.h>
|
2011-12-20 18:29:17 +01:00
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
+#undef SHAREDIR
|
|
|
|
|
+#define SHAREDIR "/usr/share/texmf/fonts/map/glyphlist"
|
|
|
|
|
+
|
|
|
|
|
using namespace Efont;
|
|
|
|
|
|
|
|
|
|
#define VERSION_OPT 301
|
2016-02-01 17:10:03 +01:00
|
|
|
|
--- texk/ps2pk/pk2bm.c
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/ps2pk/pk2bm.c 2016-06-07 13:54:20.741760758 +0000
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -45,7 +45,6 @@
|
2013-07-31 15:21:21 +02:00
|
|
|
|
|
|
|
|
|
static quarterword lsbf(quarterword u);
|
|
|
|
|
static void dots(quarterword u, int n);
|
|
|
|
|
-static int atoo(char *oct);
|
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
|
{
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -54,7 +53,7 @@ int main(int argc, char *argv[])
|
2013-07-31 15:21:21 +02:00
|
|
|
|
halfword *word;
|
2011-12-20 18:29:17 +01:00
|
|
|
|
chardesc cd;
|
2013-07-31 15:21:21 +02:00
|
|
|
|
const char *myname = "pk2bm";
|
|
|
|
|
- char *pkname;
|
|
|
|
|
+ char *pkname, *endptr;
|
2011-12-20 18:29:17 +01:00
|
|
|
|
|
|
|
|
|
while (--argc > 0 && (*++argv)[0] == '-') {
|
|
|
|
|
done=0;
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -62,26 +61,36 @@ int main(int argc, char *argv[])
|
2011-12-20 18:29:17 +01:00
|
|
|
|
switch (c) {
|
|
|
|
|
case 'c':
|
|
|
|
|
if (*++argv[0] == '\0') {
|
|
|
|
|
- argc--; argv++;
|
|
|
|
|
+ if (--argc == 0) {
|
|
|
|
|
+err:
|
|
|
|
|
+ printf("%s: illegal value for option %c\n", myname, c);
|
|
|
|
|
+ exit(1);
|
|
|
|
|
+ }
|
|
|
|
|
+ argv++;
|
|
|
|
|
}
|
|
|
|
|
C = *argv[0];
|
|
|
|
|
done = 1; break;
|
|
|
|
|
case 'o':
|
|
|
|
|
if (*++argv[0] == '\0') {
|
|
|
|
|
- argc--; ++argv;
|
|
|
|
|
+ if (--argc == 0) goto err;
|
|
|
|
|
+ ++argv;
|
|
|
|
|
}
|
|
|
|
|
- C = atoo(argv[0]);
|
|
|
|
|
+ C = strtol(argv[0], &endptr, 8);
|
|
|
|
|
+ if (endptr==argv[0] || *endptr) goto err;
|
|
|
|
|
done = 1; break;
|
|
|
|
|
case 'H':
|
|
|
|
|
if (*++argv[0] == '\0') {
|
|
|
|
|
- argc--; argv++;
|
|
|
|
|
+ if (--argc == 0) goto err;
|
|
|
|
|
+ argv++;
|
|
|
|
|
}
|
|
|
|
|
- h = atoi(argv[0]);
|
|
|
|
|
+ h = strtol(argv[0], &endptr, 10);
|
|
|
|
|
+ if (endptr==argv[0] || *endptr) goto err;
|
|
|
|
|
done=1;
|
|
|
|
|
break;
|
|
|
|
|
case 'W':
|
|
|
|
|
if (*++argv[0] == '\0') {
|
|
|
|
|
- argc--; argv++;
|
|
|
|
|
+ if (--argc == 0) goto err;
|
|
|
|
|
+ argv++;
|
|
|
|
|
}
|
|
|
|
|
w = atoi(argv[0]);
|
|
|
|
|
done=1;
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -98,7 +107,7 @@ int main(int argc, char *argv[])
|
2011-12-20 18:29:17 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- if (argc == 0) {
|
|
|
|
|
+ if (argc != 1) {
|
2016-06-14 12:26:43 +02:00
|
|
|
|
msg ("pk2bm (ps2pk) version " PACKAGE_VERSION "\n");
|
2011-12-20 18:29:17 +01:00
|
|
|
|
printf("Usage: %s [-bh] {-c char|-o octchar} [-W width -H height] pkfile\n", myname);
|
|
|
|
|
exit(1);
|
2016-06-14 12:26:43 +02:00
|
|
|
|
@@ -216,11 +225,3 @@ dots(quarterword u, int n)
|
|
|
|
|
bit>>=1;
|
2011-12-20 18:29:17 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
2016-06-14 12:26:43 +02:00
|
|
|
|
-
|
2013-07-31 15:21:21 +02:00
|
|
|
|
-static int
|
|
|
|
|
-atoo(char *oct)
|
|
|
|
|
-{
|
|
|
|
|
- int octal = 0;
|
2011-12-20 18:29:17 +01:00
|
|
|
|
- while (*oct != '\0') octal = 8*octal + (*oct++) - '0';
|
2016-06-14 12:26:43 +02:00
|
|
|
|
- return octal;
|
2011-12-20 18:29:17 +01:00
|
|
|
|
-}
|
2015-03-30 13:39:58 +02:00
|
|
|
|
--- texk/texlive/linked_scripts/musixtex/musixtex.lua
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/texlive/linked_scripts/musixtex/musixtex.lua 2016-06-07 13:53:04.291194597 +0000
|
|
|
|
|
@@ -172,14 +172,25 @@ end
|
|
|
|
|
-- possible by exploiting the the fact that Lua has two false values.
|
|
|
|
|
-- dvi == nil "do not produce a DVI file" (but maybe PDF)
|
|
|
|
|
-- dvi == false "do not process the DVI file" (but stop after TeX)
|
|
|
|
|
+local base=string.explode(arg[0], "/+")
|
2015-03-30 13:39:58 +02:00
|
|
|
|
+base=string.explode(base[#base], ".+")
|
|
|
|
|
+base=base[1]
|
2016-06-14 12:26:43 +02:00
|
|
|
|
local dvips = "dvips -e0"
|
|
|
|
|
function defaults()
|
|
|
|
|
prepmx = "prepmx"
|
|
|
|
|
pmx = "pmxab"
|
|
|
|
|
- tex = "etex"
|
|
|
|
|
+ if base == "pdfmusixtex" then
|
|
|
|
|
+ tex = "pdfetex"
|
|
|
|
|
+ dvips = ""
|
|
|
|
|
+ dvi = ""
|
|
|
|
|
+ ps2pdf = ""
|
|
|
|
|
+ else
|
|
|
|
|
+ tex = "etex"
|
|
|
|
|
+ dvips = "dvips -e0"
|
|
|
|
|
+ dvi = dvips
|
|
|
|
|
+ ps2pdf = "ps2pdf"
|
|
|
|
|
+ end
|
|
|
|
|
musixflx = "musixflx"
|
|
|
|
|
- dvi = dvips
|
|
|
|
|
- ps2pdf = "ps2pdf"
|
|
|
|
|
cleanup = true -- clean up intermediate and log files
|
|
|
|
|
index = false
|
|
|
|
|
latex = false
|
2016-02-01 17:10:03 +01:00
|
|
|
|
--- texk/texlive/linked_scripts/texlive/fmtutil-sys.sh
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/texlive/linked_scripts/texlive/fmtutil-sys.sh 2016-06-07 13:40:23.541446341 +0000
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -22,4 +22,5 @@ PATH="$mydir:$PATH"; export PATH
|
|
|
|
|
# hack around a bug in zsh:
|
|
|
|
|
test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
|
2015-03-30 13:39:58 +02:00
|
|
|
|
|
2016-02-01 17:10:03 +01:00
|
|
|
|
+umask 022
|
|
|
|
|
exec fmtutil --sys ${1+"$@"}
|
|
|
|
|
--- texk/texlive/linked_scripts/texlive/fmtutil.pl
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/texlive/linked_scripts/texlive/fmtutil.pl 2016-06-07 13:47:22.161607756 +0000
|
|
|
|
|
@@ -10,16 +10,16 @@
|
|
|
|
|
# History:
|
2016-02-08 11:37:31 +01:00
|
|
|
|
# Original shell script (C) 2001 Thomas Esser, public domain
|
|
|
|
|
|
|
|
|
|
-my $TEXMFROOT;
|
|
|
|
|
+my $TEXMFDIST;
|
|
|
|
|
|
|
|
|
|
BEGIN {
|
|
|
|
|
$^W = 1;
|
|
|
|
|
- $TEXMFROOT = `kpsewhich -var-value=TEXMFROOT`;
|
|
|
|
|
+ $TEXMFDIST = `kpsewhich -var-value=TEXMFDIST`;
|
|
|
|
|
if ($?) {
|
|
|
|
|
- die "$0: kpsewhich -var-value=TEXMFROOT failed, aborting early.\n";
|
|
|
|
|
+ die "$0: kpsewhich -var-value=TEXMFDIST failed, aborting early.\n";
|
|
|
|
|
}
|
|
|
|
|
- chomp($TEXMFROOT);
|
|
|
|
|
- unshift(@INC, "$TEXMFROOT/tlpkg", "$TEXMFROOT/texmf-dist/scripts/texlive");
|
|
|
|
|
+ chomp($TEXMFDIST);
|
|
|
|
|
+ unshift(@INC, "$TEXMFDIST/tlpkg", "$TEXMFDIST/scripts/texlive");
|
|
|
|
|
require "mktexlsr.pl";
|
|
|
|
|
TeX::Update->import();
|
|
|
|
|
}
|
2016-06-14 12:26:43 +02:00
|
|
|
|
@@ -67,7 +67,7 @@ my @deferred_stdout;
|
2016-02-08 11:37:31 +01:00
|
|
|
|
# this function checks by itself whether it is running on windows or not
|
|
|
|
|
reset_root_home();
|
|
|
|
|
|
|
|
|
|
-chomp(our $TEXMFDIST = `kpsewhich --var-value=TEXMFDIST`);
|
|
|
|
|
+chomp(our $TEXMFROOT = `kpsewhich --var-value=TEXMFROOT`);
|
|
|
|
|
chomp(our $TEXMFVAR = `kpsewhich -var-value=TEXMFVAR`);
|
|
|
|
|
chomp(our $TEXMFSYSVAR = `kpsewhich -var-value=TEXMFSYSVAR`);
|
|
|
|
|
chomp(our $TEXMFCONFIG = `kpsewhich -var-value=TEXMFCONFIG`);
|
2016-06-14 12:26:43 +02:00
|
|
|
|
@@ -346,7 +346,14 @@ sub callback_build_formats {
|
|
|
|
|
TeXLive::TLWinGoo::maybe_make_ro ($tmpdir);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
+ my ($uid, $gid);
|
|
|
|
|
$tmpdir = File::Temp::tempdir(CLEANUP => 1);
|
|
|
|
|
+ if ($> == 0 && ($uid=getpwnam("nobody")) && ($gid=getgrnam("mktex"))) {
|
|
|
|
|
+ my $cnt = chown $uid, $gid, $tmpdir;
|
|
|
|
|
+ die "could not create directory $tmpdir" if $cnt <= 0;
|
|
|
|
|
+ $cnt = chmod 0770, $tmpdir;
|
|
|
|
|
+ die "could not create directory $tmpdir" if $cnt <= 0;
|
|
|
|
|
+ }
|
|
|
|
|
}
|
2016-02-01 17:10:03 +01:00
|
|
|
|
# set up destination directory
|
2016-06-14 12:26:43 +02:00
|
|
|
|
$opts{'fmtdir'} ||= "$texmfvar/web2c";
|
|
|
|
|
@@ -559,6 +566,7 @@ sub rebuild_one_format {
|
2016-02-01 17:10:03 +01:00
|
|
|
|
# check for existence of ini file before doing anything else
|
|
|
|
|
if (system("kpsewhich -progname=$fmt -format=$kpsefmt $inifile >$nul 2>&1") != 0) {
|
|
|
|
|
# we didn't find the ini file, skip
|
|
|
|
|
+ return $FMT_NOTAVAIL if (!$opts{'no-error-if-no-engine'});
|
|
|
|
|
print_deferred_warning("inifile $inifile for $fmt/$eng not found.\n");
|
|
|
|
|
# The original script just skipped it but in TeX Live we expect that
|
|
|
|
|
# all activated formats are also buildable, thus return failure.
|
2016-06-14 12:26:43 +02:00
|
|
|
|
@@ -610,11 +618,15 @@ sub rebuild_one_format {
|
2016-02-01 17:10:03 +01:00
|
|
|
|
",$opts{'no-error-if-no-engine'}," =~ m/,$eng,/) {
|
|
|
|
|
return $FMT_NOTAVAIL;
|
|
|
|
|
} else {
|
|
|
|
|
+ return $FMT_NOTAVAIL if (!$opts{'no-error-if-no-engine'});
|
|
|
|
|
print_deferred_error("not building $fmt due to missing engine $eng.\n");
|
|
|
|
|
return $FMT_FAILURE;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if ($ENV{batchmode} eq "yes") {
|
2016-02-04 16:01:13 +01:00
|
|
|
|
+ $texargs="\\batchmode \\input $texargs" if $eng eq "tex" || $eng eq "ptex";
|
2016-02-01 17:10:03 +01:00
|
|
|
|
+ }
|
2016-06-14 12:26:43 +02:00
|
|
|
|
my $cmdline = "$eng -ini $tcxflag $recorderswitch $jobswitch "
|
|
|
|
|
. "$prgswitch $texargs";
|
|
|
|
|
print_verbose("running \`$cmdline' ...\n");
|
2016-02-01 17:10:03 +01:00
|
|
|
|
--- texk/texlive/linked_scripts/texlive/updmap-sys.sh
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/texlive/linked_scripts/texlive/updmap-sys.sh 2016-06-07 13:40:23.541446341 +0000
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -22,4 +22,5 @@ PATH="$mydir:$PATH"; export PATH
|
|
|
|
|
# hack around a bug in zsh:
|
|
|
|
|
test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
|
2013-07-31 15:21:21 +02:00
|
|
|
|
|
|
|
|
|
+umask 022
|
2016-02-01 17:10:03 +01:00
|
|
|
|
exec updmap --sys ${1+"$@"}
|
2015-03-30 13:39:58 +02:00
|
|
|
|
--- texk/texlive/tl_scripts/fmtutil.cnf
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/texlive/tl_scripts/fmtutil.cnf 2016-06-07 13:40:23.541446341 +0000
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -46,10 +46,11 @@ amstex pdftex - -translate-file=cp227.tc
|
2015-03-30 13:39:58 +02:00
|
|
|
|
# from context:
|
|
|
|
|
cont-en pdftex cont-usr.tex -8bit *cont-en.mkii
|
|
|
|
|
cont-en xetex cont-usr.tex -8bit *cont-en.mkii
|
|
|
|
|
-#! cont-fr pdftex cont-usr.tex -8bit *cont-fr.mkii
|
|
|
|
|
-#! cont-it pdftex cont-usr.tex -8bit *cont-it.mkii
|
|
|
|
|
-#! cont-nl pdftex cont-usr.tex -8bit *cont-nl.mkii
|
|
|
|
|
-#! cont-ro pdftex cont-usr.tex -8bit *cont-ro.mkii
|
|
|
|
|
+cont-de pdftex cont-usr.tex -8bit *cont-fr.mkii
|
|
|
|
|
+cont-fr pdftex cont-usr.tex -8bit *cont-fr.mkii
|
|
|
|
|
+cont-it pdftex cont-usr.tex -8bit *cont-it.mkii
|
|
|
|
|
+cont-nl pdftex cont-usr.tex -8bit *cont-nl.mkii
|
|
|
|
|
+cont-ro pdftex cont-usr.tex -8bit *cont-ro.mkii
|
|
|
|
|
#
|
|
|
|
|
# from cslatex:
|
|
|
|
|
cslatex pdftex - -etex cslatex.ini
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -65,8 +66,8 @@ pdfcsplain luatex - -etex csplain.ini
|
2015-03-30 13:39:58 +02:00
|
|
|
|
eplain pdftex language.dat -translate-file=cp227.tcx *eplain.ini
|
|
|
|
|
#
|
|
|
|
|
# from jadetex:
|
|
|
|
|
-jadetex pdftex language.dat *jadetex.ini
|
|
|
|
|
-pdfjadetex pdftex language.dat *pdfjadetex.ini
|
|
|
|
|
+jadetex pdftex language.dat -translate-file=cp227.tcx *jadetex.ini
|
|
|
|
|
+pdfjadetex pdftex language.dat -translate-file=cp227.tcx *pdfjadetex.ini
|
|
|
|
|
#
|
|
|
|
|
# from latex-bin:
|
|
|
|
|
latex pdftex language.dat -translate-file=cp227.tcx *latex.ini
|
2016-06-14 12:26:43 +02:00
|
|
|
|
@@ -131,5 +132,5 @@ xetex xetex language.def -etex xetex.ini
|
2015-03-30 13:39:58 +02:00
|
|
|
|
xelatex xetex language.dat -etex xelatex.ini
|
|
|
|
|
#
|
|
|
|
|
# from xmltex:
|
|
|
|
|
-xmltex pdftex language.dat *xmltex.ini
|
|
|
|
|
-pdfxmltex pdftex language.dat *pdfxmltex.ini
|
|
|
|
|
+xmltex pdftex language.dat -translate-file=cp227.tcx *xmltex.ini
|
|
|
|
|
+pdfxmltex pdftex language.dat -translate-file=cp227.tcx *pdfxmltex.ini
|
|
|
|
|
--- texk/texlive/tl_scripts/texconfig-dialog.sh
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/texlive/tl_scripts/texconfig-dialog.sh 2016-06-07 13:40:23.541446341 +0000
|
|
|
|
|
@@ -157,7 +157,14 @@ termCtl()
|
2015-03-30 13:39:58 +02:00
|
|
|
|
###############################################################################
|
|
|
|
|
menuMain()
|
|
|
|
|
{
|
|
|
|
|
- cat <<-'eof'
|
|
|
|
|
+ rows="$(stty size)"
|
|
|
|
|
+ columns=${rows##* }
|
|
|
|
|
+ rows=${rows%% *}
|
2016-02-01 17:10:03 +01:00
|
|
|
|
+ test -n "$rows" || rows=0
|
|
|
|
|
+ test -n "$columns" || columns=0
|
2013-09-25 11:04:37 +02:00
|
|
|
|
+
|
2015-03-30 13:39:58 +02:00
|
|
|
|
+ if test $rows -lt 24 -a $columns -lt 80 ; then
|
|
|
|
|
+ cat <<-'eof'
|
|
|
|
|
The interactive texconfig utility will be started now. Make sure
|
|
|
|
|
your screen has at least 24 rows and 80 columns. If texconfig
|
2016-02-01 17:10:03 +01:00
|
|
|
|
crashes now, you can still set up your TeX system using the
|
2016-06-14 12:26:43 +02:00
|
|
|
|
@@ -169,8 +176,9 @@ menuMain()
|
2016-02-01 17:10:03 +01:00
|
|
|
|
|
|
|
|
|
More likely these days, you're better off using tlmgr.
|
|
|
|
|
See http://tug.org/texlive/tlmgr.html.
|
2015-03-30 13:39:58 +02:00
|
|
|
|
-eof
|
|
|
|
|
- termCtl readln
|
|
|
|
|
+ eof
|
|
|
|
|
+ termCtl readln
|
|
|
|
|
+ fi
|
|
|
|
|
|
|
|
|
|
while :; do
|
|
|
|
|
logMessage='view logfile'
|
2013-07-31 15:21:21 +02:00
|
|
|
|
--- texk/texlive/tl_scripts/texconfig-sys.sh
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/texlive/tl_scripts/texconfig-sys.sh 2016-06-07 13:40:23.541446341 +0000
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -30,4 +30,5 @@ TEXMFVAR="$v"
|
2013-07-31 15:21:21 +02:00
|
|
|
|
TEXMFCONFIG="$c"
|
|
|
|
|
export TEXMFVAR TEXMFCONFIG
|
|
|
|
|
|
|
|
|
|
+umask 022
|
|
|
|
|
exec texconfig ${1+"$@"}
|
|
|
|
|
--- texk/texlive/tl_scripts/texconfig.sh
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/texlive/tl_scripts/texconfig.sh 2016-06-07 13:40:23.541446341 +0000
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -40,7 +40,7 @@ envVars="
|
2011-12-20 18:29:17 +01:00
|
|
|
|
TEXMFDBS TEXMFINI TEXMFSCRIPTS TEXPICTS TEXPKS TEXPOOL TEXPSHEADERS
|
|
|
|
|
TEXSOURCES TFMFONTS TRFONTS TTFONTS VFFONTS WEB2C WEBINPUTS
|
|
|
|
|
"
|
|
|
|
|
-tmpdir=${TMPDIR-${TEMP-${TMP-/tmp}}}/tctmp.$$
|
|
|
|
|
+tmpdir=${TMPDIR-${TEMP-${TMP-/tmp}}}/tctmp.$$.$RANDOM
|
|
|
|
|
needsCleanup=false
|
|
|
|
|
lastUpdatedFile=
|
|
|
|
|
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -1010,21 +1010,6 @@ For more information about these \`featu
|
2011-12-20 18:29:17 +01:00
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
formats)
|
|
|
|
|
- cat >&2 <<EOM
|
|
|
|
|
-texconfig formats is no longer supported, because manual edits of
|
|
|
|
|
-fmtutil.cnf will be overwritten by the new TeX Live package manager,
|
|
|
|
|
-tlmgr, which regenerates that file as needed upon package changes.
|
|
|
|
|
-Thus, to add or remove formats, the recommended method is to use tlmgr
|
|
|
|
|
-to add or remove the appropriate package.
|
|
|
|
|
-
|
|
|
|
|
-If you need to make manual additions, you can edit the file
|
|
|
|
|
-fmtutil-local.cnf under TEXMFLOCAL. Further information with
|
|
|
|
|
-tlmgr --help and at http://tug.org/texlive/tlmgr.html.
|
|
|
|
|
-
|
|
|
|
|
-Exiting.
|
|
|
|
|
-EOM
|
|
|
|
|
- exit 1 # but leave the real code for posterity
|
|
|
|
|
-
|
|
|
|
|
setupTmpDir
|
|
|
|
|
echo "$progname: analyzing old configuration..." >&2
|
|
|
|
|
fmtutil --catcfg > $tmpdir/pre
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -1050,22 +1035,6 @@ EOM
|
2011-12-20 18:29:17 +01:00
|
|
|
|
|
|
|
|
|
# "hyphen FORMAT"
|
|
|
|
|
hyphen)
|
|
|
|
|
- cat >&2 <<EOM
|
|
|
|
|
-texconfig hyphen is no longer supported, because manual edits of
|
|
|
|
|
-language.dat (or language.def) will be overwritten by the new TeX Live
|
|
|
|
|
-package manager, tlmgr, which regenerates those configuration files as
|
|
|
|
|
-needed upon package changes. Thus, to add or remove hyphenation
|
|
|
|
|
-patterns, the recommended method is to use tlmgr to add or remove the
|
|
|
|
|
-appropriate package.
|
|
|
|
|
-
|
|
|
|
|
-If you need to make manual additions, you can edit the files
|
|
|
|
|
-language-local.dat and language-local.def under TEXMFLOCAL. Further
|
|
|
|
|
-information with tlmgr --help and at http://tug.org/texlive/tlmgr.html.
|
|
|
|
|
-
|
|
|
|
|
-Exiting.
|
|
|
|
|
-EOM
|
|
|
|
|
- exit 1 # but leave the real code for posterity
|
|
|
|
|
-
|
|
|
|
|
tcBatchHyphenFormat=$2
|
|
|
|
|
formatsForHyphen=`getFormatsForHyphen`
|
|
|
|
|
formatsForHyphenFmt=`echo "$formatsForHyphen" | myFmt | sed 's@^@ @'`
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -1317,7 +1286,7 @@ Valid PAPER settings:
|
2011-12-20 18:29:17 +01:00
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
rehash)
|
|
|
|
|
- mktexlsr
|
|
|
|
|
+ ( unset KPSE_DOT; mktexlsr )
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
#
|
2013-07-31 15:21:21 +02:00
|
|
|
|
--- texk/texlive/tl_scripts/texlinks.sh
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/texlive/tl_scripts/texlinks.sh 2016-06-07 13:40:23.541446341 +0000
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -100,7 +100,7 @@ setupTmpDir()
|
2011-12-20 18:29:17 +01:00
|
|
|
|
|
|
|
|
|
trap 'cleanup 1' 1 2 3 7 13 15
|
|
|
|
|
needsCleanup=true
|
|
|
|
|
- (umask 077; mkdir "$tmpdir") \
|
|
|
|
|
+ (umask 077; mkdir -m 0700 "$tmpdir") \
|
|
|
|
|
|| abort "could not create directory \`$tmpdir'"
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -108,16 +108,18 @@ setupTmpDir()
|
2011-12-20 18:29:17 +01:00
|
|
|
|
# search a binary along $PATH:
|
|
|
|
|
check_for_binary()
|
|
|
|
|
{
|
|
|
|
|
- testbin=$1
|
|
|
|
|
- set x `echo "$PATH" | sed 's/^:/.:/; s/:$/:./; s/::/:.:/g; s/:/ /g'`; shift
|
|
|
|
|
- for i
|
|
|
|
|
- do
|
|
|
|
|
- if [ -x "$i/$testbin" ]; then
|
|
|
|
|
- echo "$i/$testbin"
|
|
|
|
|
- return 0
|
|
|
|
|
- fi
|
|
|
|
|
- done
|
|
|
|
|
- return 1
|
|
|
|
|
+# testbin=$1
|
|
|
|
|
+# set x `echo "$PATH" | sed 's/^:/.:/; s/:$/:./; s/::/:.:/g; s/:/ /g'`; shift
|
|
|
|
|
+# for i
|
|
|
|
|
+# do
|
|
|
|
|
+# if [ -x "$i/$testbin" ]; then
|
|
|
|
|
+# echo "$i/$testbin"
|
|
|
|
|
+# return 0
|
|
|
|
|
+# fi
|
|
|
|
|
+# done
|
|
|
|
|
+# return 1
|
|
|
|
|
+
|
|
|
|
|
+ type -p $1
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -208,8 +210,22 @@ search_symlinkdir()
|
2011-12-20 18:29:17 +01:00
|
|
|
|
upd_symlinkdir()
|
|
|
|
|
{
|
|
|
|
|
search_symlinkdir || return 0
|
|
|
|
|
- for i in `sed 's@ .*@@' cnf_file_ln.$$`; do
|
|
|
|
|
- install_link "$selfautoloc/$i" "$symlinkdir/$i"
|
|
|
|
|
+ set x `cat cnf_file_ln.$$` ; shift
|
|
|
|
|
+ while test $# != 0; do
|
|
|
|
|
+ fmt=$1; ini=$3; shift; shift; shift
|
|
|
|
|
+
|
|
|
|
|
+ # Some broken shells destroy the positional arguments when calling a
|
|
|
|
|
+ # shellfunction. Therefore, we save and restore them "by hand" in the
|
|
|
|
|
+ # main_args_while variable.
|
|
|
|
|
+ main_args_while="$@"
|
|
|
|
|
+
|
|
|
|
|
+ kpsewhich -progname=$fmt -format=tex $ini >/dev/null 2>&1
|
|
|
|
|
+ test $? -ne 0 && continue
|
|
|
|
|
+
|
|
|
|
|
+ install_link "$selfautoloc/$fmt" "$symlinkdir/$fmt"
|
|
|
|
|
+
|
|
|
|
|
+ # restore positional arguments:
|
|
|
|
|
+ set x $main_args_while; shift
|
|
|
|
|
done
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -274,12 +290,12 @@ main()
|
2011-12-20 18:29:17 +01:00
|
|
|
|
test -f "$cnf_file" || abort "config file \`$cnf' not found"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- tmpdir=${TMPDIR-${TEMP-${TMP-/tmp}}}/texlinks.$$
|
|
|
|
|
+ tmpdir=${TMPDIR-${TEMP-${TMP-/tmp}}}/texlinks.$$.$RANDOM
|
|
|
|
|
setupTmpDir
|
|
|
|
|
cd "$tmpdir" || cleanup 1
|
|
|
|
|
|
|
|
|
|
- sed '/^[ ]*#/d; /^[ ]*$/d' $cnf_file \
|
|
|
|
|
- | awk '{print $1, $2}' > cnf_file_ln.$$
|
|
|
|
|
+ sed '/^[ ]*#/d; /^[ ]*$/d; s%\*%%' $cnf_file \
|
|
|
|
|
+ | awk '{print $1, $2, $NF}' > cnf_file_ln.$$
|
|
|
|
|
|
|
|
|
|
if test -z "$dirs"; then
|
|
|
|
|
if test $multiplatform = true; then
|
2016-02-01 17:10:03 +01:00
|
|
|
|
@@ -300,13 +316,16 @@ main()
|
2011-12-20 18:29:17 +01:00
|
|
|
|
# cnf_file_ln.$$ has lines with "format engine" pairs
|
|
|
|
|
set x `cat cnf_file_ln.$$`; shift
|
|
|
|
|
while test $# != 0; do
|
|
|
|
|
- fmt=$1; engine=$2; shift; shift
|
|
|
|
|
+ fmt=$1; engine=$2; ini=$3; shift; shift; shift
|
|
|
|
|
|
|
|
|
|
# Some broken shells destroy the positional arguments when calling a
|
|
|
|
|
# shellfunction. Therefore, we save and restore them "by hand" in the
|
|
|
|
|
# main_args_while variable.
|
|
|
|
|
main_args_while="$@"
|
|
|
|
|
|
|
|
|
|
+ kpsewhich -progname=$fmt -format=tex $ini >/dev/null 2>&1
|
|
|
|
|
+ test $? -ne 0 && continue
|
|
|
|
|
+
|
|
|
|
|
test "x$fmt" = "x$engine" && continue
|
|
|
|
|
if test -f "$d/$engine$exeext"; then
|
|
|
|
|
case $unlink in
|
|
|
|
|
--- texk/web2c/Makefile.in
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/web2c/Makefile.in 2016-06-07 13:40:23.545446266 +0000
|
|
|
|
|
@@ -3816,7 +3816,7 @@ libmd5_a_SOURCES = libmd5/md5.c libmd5/m
|
2011-12-20 18:29:17 +01:00
|
|
|
|
md5main_CPPFLAGS = -I$(srcdir)/libmd5
|
|
|
|
|
md5main_SOURCES = libmd5/md5main.c
|
|
|
|
|
md5main_LDADD = libmd5.a
|
|
|
|
|
-all: ff-config.h
|
|
|
|
|
+all: ff-config.h w2c/config.h
|
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
|
|
|
|
|
|
|
|
|
.SUFFIXES:
|
2016-06-14 12:26:43 +02:00
|
|
|
|
@@ -3863,6 +3863,11 @@ w2c/c-auto.h: w2c/stamp-h1
|
2011-12-20 18:29:17 +01:00
|
|
|
|
w2c/stamp-h1: $(srcdir)/c-auto.in $(top_builddir)/config.status
|
|
|
|
|
@rm -f w2c/stamp-h1
|
|
|
|
|
cd $(top_builddir) && $(SHELL) ./config.status w2c/c-auto.h
|
|
|
|
|
+.PHONY: w2c/config.h
|
|
|
|
|
+w2c/config.h:
|
|
|
|
|
+ $(MKDIR_P) w2c
|
|
|
|
|
+ cp $(srcdir)/w2c/config.h $@
|
|
|
|
|
+
|
|
|
|
|
$(srcdir)/c-auto.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
|
|
|
|
($(am__cd) $(top_srcdir) && $(AUTOHEADER))
|
|
|
|
|
rm -f w2c/stamp-h1
|
|
|
|
|
--- texk/web2c/window/regis.c
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/web2c/window/regis.c 2016-06-07 13:40:23.545446266 +0000
|
2011-12-20 18:29:17 +01:00
|
|
|
|
@@ -64,12 +64,14 @@ void mf_regis_blankrectangle (screencol
|
|
|
|
|
screenrow top,
|
|
|
|
|
screenrow bottom)
|
|
|
|
|
{
|
|
|
|
|
- printf(
|
|
|
|
|
+ const char *format =
|
|
|
|
|
#ifdef WRITEWHITE
|
|
|
|
|
- "%cPpP[%d,%d]W(I0)W(S1)V[%d,%d]V[%d,%d]V[%d,%d]V[%d,%d]W(S0)W(I3)%c\\",
|
|
|
|
|
+ "%cPpP[%d,%d]W(I0)W(S1)V[%d,%d]V[%d,%d]V[%d,%d]V[%d,%d]W(S0)W(I3)%c\\"
|
|
|
|
|
#else
|
|
|
|
|
- "%cPpP[%d,%d]W(I3)W(S1)V[%d,%d]V[%d,%d]V[%d,%d]V[%d,%d]W(S0)W(I0)%c\\",
|
|
|
|
|
+ "%cPpP[%d,%d]W(I3)W(S1)V[%d,%d]V[%d,%d]V[%d,%d]V[%d,%d]W(S0)W(I0)%c\\"
|
|
|
|
|
#endif
|
|
|
|
|
+ ;
|
|
|
|
|
+ printf(format,
|
|
|
|
|
ESCAPE,left,bottom,right,bottom,right,top,left,top,
|
|
|
|
|
left,bottom,ESCAPE);
|
|
|
|
|
}
|
|
|
|
|
--- texk/web2c/window/x11-Xlib.c
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/web2c/window/x11-Xlib.c 2016-06-07 13:40:23.621444844 +0000
|
2011-12-20 18:29:17 +01:00
|
|
|
|
@@ -73,6 +73,8 @@ static XWMHints wm_hints = {
|
|
|
|
|
#define BORDER_WIDTH 1 /* Should get this from resource. */
|
|
|
|
|
#define DEFAULT_X_POSITION 0
|
|
|
|
|
#define DEFAULT_Y_POSITION 0
|
|
|
|
|
+#define DEFAULT_WIDTH 450
|
|
|
|
|
+#define DEFAULT_DEPTH 500
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <mfdisplay.h>
|
2015-03-30 13:39:58 +02:00
|
|
|
|
@@ -101,12 +103,12 @@ mf_x11_initscreen(void)
|
2011-12-20 18:29:17 +01:00
|
|
|
|
|
|
|
|
|
sizehints.x = DEFAULT_X_POSITION;
|
|
|
|
|
sizehints.y = DEFAULT_Y_POSITION;
|
|
|
|
|
- sizehints.width = screenwidth;
|
|
|
|
|
- sizehints.height = screendepth;
|
|
|
|
|
+ sizehints.width = DEFAULT_WIDTH;
|
|
|
|
|
+ sizehints.height = DEFAULT_DEPTH;
|
|
|
|
|
sizehints.flags = PPosition|PSize;
|
|
|
|
|
|
2015-03-30 13:39:58 +02:00
|
|
|
|
sprintf (default_geometry, "%ux%u+%u+%u",
|
|
|
|
|
- (unsigned int) screenwidth, (unsigned int) screendepth,
|
|
|
|
|
+ (unsigned int) DEFAULT_WIDTH, (unsigned int) DEFAULT_DEPTH,
|
2011-12-20 18:29:17 +01:00
|
|
|
|
DEFAULT_X_POSITION, DEFAULT_Y_POSITION);
|
|
|
|
|
|
|
|
|
|
/* Look up the geometry for this window. (Section 10.2 Obtaining X
|
|
|
|
|
--- texk/web2c/window/x11-Xt.c
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/web2c/window/x11-Xt.c 2016-06-07 13:40:23.621444844 +0000
|
2011-12-20 18:29:17 +01:00
|
|
|
|
@@ -18,8 +18,8 @@
|
|
|
|
|
|
|
|
|
|
#define PLANE 0
|
|
|
|
|
|
|
|
|
|
-static unsigned int mf_defwidth = 0;
|
|
|
|
|
-static unsigned int mf_defheight = 0;
|
|
|
|
|
+static unsigned int mf_defwidth = 450;;
|
|
|
|
|
+static unsigned int mf_defheight = 500;
|
|
|
|
|
|
|
|
|
|
static Display *mf_display;
|
|
|
|
|
static Window mf_window;
|
|
|
|
|
--- texk/xdvik/psgs.c
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/xdvik/psgs.c 2016-06-07 13:40:23.621444844 +0000
|
2015-03-30 13:39:58 +02:00
|
|
|
|
@@ -34,6 +34,8 @@ OTHER DEALINGS IN THE SOFTWARE.
|
2011-12-20 18:29:17 +01:00
|
|
|
|
#include <sys/time.h> /* for timeval */
|
|
|
|
|
|
|
|
|
|
#include <signal.h>
|
|
|
|
|
+#include <sys/types.h>
|
|
|
|
|
+#include <sys/wait.h>
|
|
|
|
|
|
|
|
|
|
/* Condition for retrying a write */
|
|
|
|
|
#include <errno.h>
|
|
|
|
|
@@ -625,6 +627,26 @@ initGS(void)
|
|
|
|
|
perror("[xdvik] pipe");
|
|
|
|
|
return False;
|
|
|
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ if (GS_pid > 0) { /* Check if we've a running ghostscript */
|
|
|
|
|
+ int status, n = 0;
|
|
|
|
|
+ errno = 0;
|
|
|
|
|
+retry:
|
|
|
|
|
+ switch (waitpid(GS_pid, &status, WNOHANG)) {
|
|
|
|
|
+ case -1:
|
|
|
|
|
+ if (errno == EINTR)
|
|
|
|
|
+ goto retry;
|
|
|
|
|
+ return False;
|
|
|
|
|
+ case 0:
|
|
|
|
|
+ break;
|
|
|
|
|
+ default:
|
|
|
|
|
+ if (WIFEXITED(status) && WEXITSTATUS(status))
|
|
|
|
|
+ return False;
|
|
|
|
|
+ if (WIFSIGNALED(status))
|
|
|
|
|
+ return False;
|
|
|
|
|
+ break; /* Not reached */
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
fflush(stderr); /* to avoid double flushing */
|
|
|
|
|
GS_pid = vfork();
|
|
|
|
|
if (GS_pid == 0) { /* child */
|
|
|
|
|
--- texk/xdvik/xdvi-sh.in
|
2016-06-14 12:26:43 +02:00
|
|
|
|
+++ texk/xdvik/xdvi-sh.in 2016-06-07 13:40:23.621444844 +0000
|
2015-02-18 14:46:40 +01:00
|
|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
|
-#!/bin/sh
|
|
|
|
|
+#!/bin/bash
|
|
|
|
|
|
|
|
|
|
# This is the xdvi wrapper script for teTeX, version 0.2.
|
|
|
|
|
# Copyright Thomas Esser, 1998. Permission to distribute under the terms
|
2011-12-20 18:29:17 +01:00
|
|
|
|
@@ -50,4 +50,19 @@ if test -n "$xdviappfile"; then
|
|
|
|
|
XFILESEARCHPATH="$xdviapppath:${XFILESEARCHPATH-%D}"; export XFILESEARCHPATH
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
-exec @final_exec_name@ $NAMEOPT ${1+"$@"}
|
|
|
|
|
+uncompress=
|
|
|
|
|
+filename="${1+"$@"}"
|
|
|
|
|
+case "${filename}" in
|
|
|
|
|
+ *.gz) uncompress="gzip -d -c $filename" ;;
|
|
|
|
|
+ *.bz2) uncompress="bzip2 -d -c $filename" ;;
|
|
|
|
|
+esac
|
|
|
|
|
+if test -n "$uncompress" -a -r "$filename" ; then
|
|
|
|
|
+ filename="${filename##*/}"
|
|
|
|
|
+ tmpfile="`mktemp ${TMPDIR-/tmp}/${filename%.*}.XXXXXX`" || exit 1
|
|
|
|
|
+ trap 'rc=$?; rm -f $tmpfile; exit $rc' 0 1 2 3 6 13 15
|
|
|
|
|
+ $uncompress > $tmpfile
|
|
|
|
|
+ exec -a xdvi @final_exec_name@ $NAMEOPT $tmpfile
|
|
|
|
|
+else
|
|
|
|
|
+ exec -a xdvi @final_exec_name@ $NAMEOPT ${1+"$@"}
|
|
|
|
|
+fi
|
|
|
|
|
+
|