Dr. Werner Fink 2013-08-05 12:15:33 +00:00 committed by Git OBS Bridge
parent c8dff946d0
commit d163214694
2 changed files with 17 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Aug 5 10:24:25 UTC 2013 - werner@suse.de
- Refresh formats if required
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jul 30 16:14:46 UTC 2013 - werner@suse.de Tue Jul 30 16:14:46 UTC 2013 - werner@suse.de

View File

@ -193,6 +193,8 @@ enablemaps ()
for run in /var/run/texlive/run-fmtutil* ; do for run in /var/run/texlive/run-fmtutil* ; do
test -e $run || break test -e $run || break
type -p fmtutil-sys &> /dev/null || { echo "${0##*/}: No fmtutil-sys in PATH ... skipping" 1>&2; break; } type -p fmtutil-sys &> /dev/null || { echo "${0##*/}: No fmtutil-sys in PATH ... skipping" 1>&2; break; }
option=""
test $VERBOSE = true || option="--quiet"
case "${run#*fmtutil.}" in case "${run#*fmtutil.}" in
language) language)
test -n "${cnf_ldat}" -a -n "${cnf_ldef}" || continue test -n "${cnf_ldat}" -a -n "${cnf_ldef}" || continue
@ -201,18 +203,25 @@ for run in /var/run/texlive/run-fmtutil* ; do
set -- $(md5sum < ${cnf_ldef}) set -- $(md5sum < ${cnf_ldef})
echo $1 > ${md5_ldef} echo $1 > ${md5_ldef}
test $VERBOSE = true && echo -en "\r[ ]Handle language.dat setups." test $VERBOSE = true && echo -en "\r[ ]Handle language.dat setups."
fmtutil-sys --byhyphen ${cnf_ldat} < /dev/null 1>&4 2>&4 fmtutil-sys ${option:+$option} --byhyphen ${cnf_ldat} < /dev/null 1>&4 2>&4
let rc+=$? let rc+=$?
test $VERBOSE = true && echo test $VERBOSE = true && echo
test $VERBOSE = true && echo -en "\r[ ]Handle language.def setups." test $VERBOSE = true && echo -en "\r[ ]Handle language.def setups."
fmtutil-sys --byhyphen ${cnf_ldef} < /dev/null 1>&4 2>&4 fmtutil-sys ${option:+$option} --byhyphen ${cnf_ldef} < /dev/null 1>&4 2>&4
let rc+=$? let rc+=$?
test $VERBOSE = true && echo test $VERBOSE = true && echo
((rc != 0)) || rm -f /var/run/texlive/run-fmtutil.language ((rc != 0)) || rm -f /var/run/texlive/run-fmtutil.language
;; ;;
refresh)
test $VERBOSE = true && echo -en "\r[ ]Refresh TeX formats."
fmtutil-sys ${option:+$option} --refresh < /dev/null 1>&4 2>&4
let rc+=$?
test $VERBOSE = true && echo
((rc != 0)) || rm -f /var/run/texlive/run-fmtutil.refresh
;;
*) *)
test $VERBOSE = true && echo -en "\r[ ]Updating TeX formats." test $VERBOSE = true && echo -en "\r[ ]Updating TeX formats."
fmtutil-sys --missing < /dev/null 1>&4 2>&4 fmtutil-sys ${option:+$option} --missing < /dev/null 1>&4 2>&4
let rc+=$? let rc+=$?
test $VERBOSE = true && echo test $VERBOSE = true && echo
((rc != 0)) || rm -f /var/run/texlive/run-fmtutil ((rc != 0)) || rm -f /var/run/texlive/run-fmtutil