.
OBS-URL: https://build.opensuse.org/package/show/Publishing:TeXLive/texlive-filesystem?expand=0&rev=67
This commit is contained in:
parent
e472b578aa
commit
fc92c82502
@ -168,23 +168,33 @@ done
|
|||||||
unset hyp suffix
|
unset hyp suffix
|
||||||
|
|
||||||
init=false
|
init=false
|
||||||
while read egine required
|
while read format engine language rest
|
||||||
do
|
do
|
||||||
required="${required##* }"
|
line=($rest)
|
||||||
required="$(kpsewhich "${required#\*}" 2>/dev/null)"
|
last=${line[-1]}
|
||||||
test -e "$required" || continue
|
inifile=${last#\*}
|
||||||
fmt="$(find ${WEB2C} -name "${egine}.fmt" -o -name "${egine}.mem" -o -name "${egine}.base")"
|
case "$engine" in
|
||||||
test -e "$fmt" || continue
|
mpost) fmt="$format.mem"; kpse=mpost; engine=metapost ;;
|
||||||
|
mf|mfw|mf-nowin) fmt="$format.base"; kpse=mf; engine=metafont ;;
|
||||||
|
*) fmt="$format.fmt"; kpse=tex; engine=$engine ;;
|
||||||
|
esac
|
||||||
|
inifile=$(kpsewhich -progname=$format -format=$kpse $inifile 2>/dev/null) || continue
|
||||||
|
fmt="$(find ${WEB2C}/$engine -name $fmt)"
|
||||||
|
if test -z "$fmt"
|
||||||
|
then
|
||||||
|
# init=true
|
||||||
|
# > /var/run/texlive/run-fmtutil
|
||||||
|
continue
|
||||||
|
fi
|
||||||
test "$fmt" -nt "$TEXMFCNFFILE" || init=true
|
test "$fmt" -nt "$TEXMFCNFFILE" || init=true
|
||||||
test "$fmt" -nt "$required" && continue
|
test "$fmt" -nt "$inifile" && continue
|
||||||
case "${fmt##*.}" in
|
case "$engine" in
|
||||||
fmt)
|
mpost) fmtutil-sys --byfmt "$egine" < /dev/null 1>&4 2>&4 ;;
|
||||||
> /var/run/texlive/run-fmtutil.refresh ;;
|
mf|mfw|mf-nowin) fmtutil-sys --byfmt "$egine" < /dev/null 1>&4 2>&4 ;;
|
||||||
base|mem)
|
*) > /var/run/texlive/run-fmtutil.refresh
|
||||||
fmtutil-sys --byfmt "$egine" ;;
|
|
||||||
esac
|
esac
|
||||||
done < <(sed -r "/^(\#.*|[[:blank:]]*)$/d" "$cnf_fmtu")
|
done < <(sed -r "/^(\#.*|[[:blank:]]*)$/d" "$cnf_fmtu")
|
||||||
unset egine fmt required
|
unset format engine language rest line last inifile fmt kpse engine
|
||||||
|
|
||||||
if test -n "${cnf_ldat}" -a -n "${cnf_ldef}" -a -n "${cnf_llua}" ; then
|
if test -n "${cnf_ldat}" -a -n "${cnf_ldef}" -a -n "${cnf_llua}" ; then
|
||||||
for cfg in ${cnf_ldat} ${cnf_ldef} ${cnf_llua} ; do
|
for cfg in ${cnf_ldat} ${cnf_ldef} ${cnf_llua} ; do
|
||||||
@ -275,28 +285,31 @@ if test -n "${cnf_ldat}" -a -n "${cnf_ldef}" -a -n "${cnf_llua}" ; then
|
|||||||
#
|
#
|
||||||
# Create new formats for new language.dat and/or language.def if needed
|
# Create new formats for new language.dat and/or language.def if needed
|
||||||
#
|
#
|
||||||
while read egine required
|
while read format engine language rest
|
||||||
do
|
do
|
||||||
case "$required" in
|
line=($rest)
|
||||||
*language.*) ;;
|
last=${line[-1]}
|
||||||
*) continue ;;
|
inifile=${last#\*}
|
||||||
|
case "$engine" in
|
||||||
|
mpost) continue ;;
|
||||||
|
mf|mfw|mf-nowin) continue ;;
|
||||||
|
*) fmt="$format.fmt"; kpse=tex; engine=$engine ;;
|
||||||
esac
|
esac
|
||||||
language=language${required#*language}
|
inifile=$(kpsewhich -progname=$format -format=$kpse $inifile 2>/dev/null) || continue
|
||||||
language=${language%% *}
|
fmt="$(find ${WEB2C}/$engine -name $fmt)"
|
||||||
required="${required##* }"
|
test -z "$fmt" && continue
|
||||||
required="$(kpsewhich "${required#\*}" 2>/dev/null)"
|
for lang in ${language//,/ }
|
||||||
test -e "$required" || continue
|
|
||||||
fmt="$(find ${WEB2C} -name "${egine}.fmt")"
|
|
||||||
test -e "$fmt" || continue
|
|
||||||
for cfg in ${cnf_ldat} ${cnf_ldef} ${cnf_llua}
|
|
||||||
do
|
do
|
||||||
test $language = "${cfg##*/}" || continue
|
for cfg in ${cnf_ldat} ${cnf_ldef} ${cnf_llua}
|
||||||
test $fmt -nt $cfg && continue
|
do
|
||||||
> /var/run/texlive/run-fmtutil.language
|
test $lang = "${cfg##*/}" || continue
|
||||||
break 2
|
test $fmt -nt $cfg && continue
|
||||||
|
> /var/run/texlive/run-fmtutil.language
|
||||||
|
break 3
|
||||||
|
done
|
||||||
done
|
done
|
||||||
done < <(sed -r "/^(\#.*|[[:blank:]]*)$/d" "$cnf_fmtu")
|
done < <(sed -r "/^(\#.*|[[:blank:]]*)$/d" "$cnf_fmtu")
|
||||||
unset egine fmt required
|
unset format engine language lang rest line last inifile fmt kpse engine
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tcfmgr ()
|
tcfmgr ()
|
||||||
|
Loading…
Reference in New Issue
Block a user