forked from pool/texlive-filesystem
Modify update script
OBS-URL: https://build.opensuse.org/package/show/Publishing:TeXLive/texlive-filesystem?expand=0&rev=162
This commit is contained in:
parent
b4a7944d00
commit
9f4b2f45e6
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 31 08:42:33 UTC 2023 - Dr. Werner Fink <werner@suse.de>
|
||||
|
||||
- Modify update script in such way that the hash sum of the
|
||||
mtxrun calls agree with those of the users
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 20 08:38:07 UTC 2023 - Dr. Werner Fink <werner@suse.de>
|
||||
|
||||
|
@ -82,7 +82,8 @@ if test $VERBOSE = true ; then
|
||||
exec 4> >(rotator)
|
||||
elif test $VERBOSE = debug ; then
|
||||
log=$(mktemp --tmpdir=/tmp update.XXXXXXXX) || exit 1
|
||||
exec 4> >(tee $log)
|
||||
set -x
|
||||
exec 4> >(tee $log) 2>&4
|
||||
else
|
||||
exec 4> /dev/null
|
||||
fi
|
||||
@ -262,6 +263,15 @@ do
|
||||
let yes++
|
||||
continue
|
||||
fi
|
||||
if test -x /usr/bin/mtxrun
|
||||
then
|
||||
case "${fmt}" in
|
||||
/*/cont-[a-z][a-z].fmt)
|
||||
rm -f "$fmt"
|
||||
continue
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
test "$fmt" -nt "$TEXMFCNFFILE" || init=true
|
||||
inifile=$(kpsewhich -progname=$format -format=$kpse $inifile 2>/dev/null) || continue
|
||||
let yes++
|
||||
@ -473,15 +483,15 @@ has_formats()
|
||||
#
|
||||
if test -x /usr/bin/mtxrun ; then
|
||||
test $VERBOSE = true && { echo -en "\r[ ]Generate file database."; let nl++; }
|
||||
TEXMF=${TEXMFDIST} \
|
||||
LUATEXDIR=${TEXMFDIST}/scripts/context/lua \
|
||||
TEXMFCACHE=${TEXMFVAR} \
|
||||
TEXMFCNF=${TEXMFCNFFILE%/*} \
|
||||
TEXMFCNF="home:texmf/web2c;${TEXMFCNFFILE%/*};${TEXMFDIST}/web2c" \
|
||||
/usr/bin/mtxrun --generate < /dev/null 1>&4 2>&4
|
||||
let rc+=$?
|
||||
|
||||
TEXMF=${TEXMFDIST} \
|
||||
LUATEXDIR=${TEXMFDIST}/scripts/context/lua \
|
||||
TEXMFCACHE=${TEXMFVAR} \
|
||||
TEXMFCNF=${TEXMFCNFFILE%/*} \
|
||||
TEXMFCNF="home:texmf/web2c;${TEXMFCNFFILE%/*};${TEXMFDIST}/web2c" \
|
||||
/usr/bin/mtxrun --script fonts --reload < /dev/null 1>&4 2>&4
|
||||
let rc+=$?
|
||||
|
||||
@ -516,16 +526,19 @@ for run in /var/run/texlive/run-fmtutil.* /var/run/texlive/run-fmtutil ; do
|
||||
context)
|
||||
test $VERBOSE = true && { echo -en "\r[ ](Re)fresh ConTeXt formats."; let nl++; }
|
||||
|
||||
for fmt in cont-cs cont-de cont-en cont-fr cont-gb cont-it cont-nl cont-pe cont-ro
|
||||
for fmt in ${TEXMFDIST}/tex/context/base/mkxl/cont-[a-z][a-z].mkxl
|
||||
do
|
||||
test -x /usr/bin/mtxrun || break
|
||||
TEXMF=${TEXMFDIST} \
|
||||
fmt=${fmt##*/}
|
||||
fmt=${fmt%.*}
|
||||
LUATEXDIR=${TEXMFDIST}/scripts/context/lua \
|
||||
TEXMFCACHE=${TEXMFVAR} \
|
||||
TEXMFCNF=${TEXMFCNFFILE%/*} \
|
||||
TEXMFCNF="home:texmf/web2c;${TEXMFCNFFILE%/*};${TEXMFDIST}/web2c" \
|
||||
/usr/bin/mtxrun $fmt --make < /dev/null 1>&4 2>&4
|
||||
let rc+=$?
|
||||
((nl == 0)) || { echo; let nl=0; }
|
||||
done
|
||||
((rc != 0)) || rm -f "${run}"
|
||||
;;
|
||||
language)
|
||||
if test -n "${cnf_ldat}" ; then
|
||||
@ -558,11 +571,13 @@ for run in /var/run/texlive/run-fmtutil.* /var/run/texlive/run-fmtutil ; do
|
||||
((nl == 0)) || { echo; let nl=0; }
|
||||
elif test -x /usr/bin/mtxrun > /dev/null 2>&2 ; then
|
||||
test $VERBOSE = true && { echo -en "\r[ ]Handle language.dat.lua setups."; let nl++; }
|
||||
for fmt in cont-cs cont-de cont-en cont-fr cont-gb cont-it cont-nl cont-pe cont-ro
|
||||
for fmt in ${TEXMFDIST}/tex/context/base/mkxl/cont-[a-z][a-z].mkxl
|
||||
do
|
||||
TEXMF=${TEXMFDIST} \
|
||||
fmt=${fmt##*/}
|
||||
fmt=${fmt%.*}
|
||||
LUATEXDIR=${TEXMFDIST}/scripts/context/lua \
|
||||
TEXMFCACHE=${TEXMFVAR} \
|
||||
TEXMFCNF=${TEXMFCNFFILE%/*} \
|
||||
TEXMFCNF="home:texmf/web2c;${TEXMFCNFFILE%/*};${TEXMFDIST}/web2c" \
|
||||
/usr/bin/mtxrun $fmt --make < /dev/null 1>&4 2>&4
|
||||
let rc+=$?
|
||||
((nl == 0)) || { echo; let nl=0; }
|
||||
@ -576,6 +591,17 @@ for run in /var/run/texlive/run-fmtutil.* /var/run/texlive/run-fmtutil ; do
|
||||
fmtutil-sys ${option:+$option} --refresh --no-strict < /dev/null 1>&4 2>&4
|
||||
let rc+=$?
|
||||
((nl == 0)) || { echo; let nl=0; }
|
||||
for fmt in ${TEXMFDIST}/tex/context/base/mkxl/cont-[a-z][a-z].mkxl
|
||||
do
|
||||
fmt=${fmt##*/}
|
||||
fmt=${fmt%.*}
|
||||
LUATEXDIR=${TEXMFDIST}/scripts/context/lua \
|
||||
TEXMFCACHE=${TEXMFVAR} \
|
||||
TEXMFCNF="home:texmf/web2c;${TEXMFCNFFILE%/*};${TEXMFDIST}/web2c" \
|
||||
/usr/bin/mtxrun $fmt --make < /dev/null 1>&4 2>&4
|
||||
let rc+=$?
|
||||
((nl == 0)) || { echo; let nl=0; }
|
||||
done
|
||||
((rc != 0)) || rm -f /var/run/texlive/run-fmtutil.refresh
|
||||
;;
|
||||
"/var/run/texlive/run-fmtutil")
|
||||
|
Loading…
x
Reference in New Issue
Block a user