Hello community,

here is the log from the commit of package texlive-filesystem for 
openSUSE:Factory checked in at 2017-07-21 22:43:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/texlive-filesystem (Old)
 and      /work/SRC/openSUSE:Factory/.texlive-filesystem.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "texlive-filesystem"

Fri Jul 21 22:43:42 2017 rev:21 rq:511224 version:unknown

Changes:
--------
--- /work/SRC/openSUSE:Factory/texlive-filesystem/texlive-filesystem.changes    
2017-07-17 09:04:18.177865957 +0200
+++ 
/work/SRC/openSUSE:Factory/.texlive-filesystem.new/texlive-filesystem.changes   
    2017-07-21 22:43:58.410650539 +0200
@@ -1,0 +2,12 @@
+Tue Jul 18 13:50:34 UTC 2017 - [email protected]
+
+- Even more speedup for update.texlive, that is remove empty
+  work load directory
+
+-------------------------------------------------------------------
+Tue Jul 18 11:02:31 UTC 2017 - [email protected]
+
+- Make update.texlive faster and remove specific tag file after
+  creating specific format
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ update.texlive ++++++
--- /var/tmp/diff_new_pack.7hAzw7/_old  2017-07-21 22:44:00.522352655 +0200
+++ /var/tmp/diff_new_pack.7hAzw7/_new  2017-07-21 22:44:00.522352655 +0200
@@ -19,6 +19,9 @@
 # Author: Werner Fink, 1997-2012,2016
 #
 
+# Empty directory means nothing todo
+test -d /var/run/texlive || exit 0
+
 typeset -r OLDIFS="$IFS"
 typeset -i rc=0
 : ${VERBOSE=true}
@@ -38,8 +41,6 @@
 MKTEXLSR=true
 export LANG MKTEXLSR
 
-mkdir -p /var/run/texlive || exit 0
-
 #
 # Sanity check
 #
@@ -60,6 +61,8 @@
 atexit()
 {
     exec 4>&-
+    # Empty directory means nothing todo
+    rm -r /var/run/texlive || :
 }
 
 if test $VERBOSE = true ; then
@@ -178,15 +181,16 @@
     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"
+    test -d ${WEB2C}/$engine || mkdir -p ${WEB2C}/$engine
+    fmt="${WEB2C}/$engine/$fmt"
+    if test ! -e "$fmt"
     then
 #      init=true
 #      > /var/run/texlive/run-fmtutil
        continue
     fi
     test "$fmt" -nt "$TEXMFCNFFILE" || init=true
+    inifile=$(kpsewhich -progname=$format -format=$kpse $inifile 2>/dev/null) 
|| continue
     test "$fmt" -nt "$inifile" && continue
     case "$engine" in
     mpost)          fmtutil-sys --byfmt "$egine" < /dev/null 1>&4 2>&4 ;;
@@ -209,10 +213,11 @@
        fi
        mv -f ${OLDMD5DIR}${cfg} ${MD5DIR}${cfg}
     done
-    
+
     #
     # Handle hyphens
     #
+    typeset -i refresh=0
     for run in /var/run/texlive/run-hyphen* ; do
        test -e "$run" || break
        tmp=${cnf_ldat}.$RANDOM
@@ -224,6 +229,7 @@
            cat "$dat"
        done >> $tmp
        mv -f $tmp ${cnf_ldat}
+       let refresh++
        #
        tmp=${cnf_ldef}.$RANDOM
        cat ${TEXMFDIST}/tex/generic/config/language.us.def >> $tmp
@@ -235,6 +241,7 @@
        echo >> $tmp
        echo '\uselanguage {USenglish}             %%% This MUST be the last 
line of the file.' >> $tmp
        mv -f $tmp ${cnf_ldef}
+       let refresh++
        #
        tmp=${cnf_llua}.$RANDOM
        echo "-- Generated by ${TEXMFDIST}/texconfig/update on $(date)" > $tmp
@@ -246,70 +253,78 @@
        # Silent editor {
        echo '}' >> $tmp
        mv -f $tmp ${cnf_llua}
+       let refresh++
        set +C
        rm -f /var/run/texlive/run-hyphen*
     done
 
-    #
-    # New md5 sums
-    #
-    md5_ldat=${MD5DIR}${cnf_ldat}
-    md5_ldef=${MD5DIR}${cnf_ldef}
-    md5_llua=${MD5DIR}${cnf_llua}
-    set -- $(md5sum < ${cnf_ldat}) ; md5ldat="$1"
-    set -- $(md5sum < ${cnf_ldef}) ; md5ldef="$1"
-    set -- $(md5sum < ${cnf_llua}) ; md5llua="$1"
+    if ((refresh > 0))
+    then
+       #
+       # New md5 sums
+       #
+       md5_ldat=${MD5DIR}${cnf_ldat}
+       md5_ldef=${MD5DIR}${cnf_ldef}
+       md5_llua=${MD5DIR}${cnf_llua}
+       set -- $(md5sum < ${cnf_ldat}) ; md5ldat="$1"
+       set -- $(md5sum < ${cnf_ldef}) ; md5ldef="$1"
+       set -- $(md5sum < ${cnf_llua}) ; md5llua="$1"
 
-    #
-    # Previous md5 sums
-    #
-    omd5ldat=0
-    omd5ldef=0
-    omd5llua=0
-    if test -e ${md5_ldat} -a -r ${md5_ldat} ; then
-       set -- $(cat ${md5_ldat}) ; omd5ldat="$1"
-    elif test ! -d ${md5_ldat%/*} ; then
-       mkdir -p ${md5_ldat%/*}
-    fi
-    if test -e ${md5_ldef} -a -r ${md5_ldef} ; then
-       set -- $(cat ${md5_ldef}) ; omd5ldef="$1"
-    elif test ! -d ${md5_ldef%/*} ; then
-       mkdir -p ${md5_ldef%/*}
-    fi
-    if test -e ${md5_llua} -a -r ${md5_llua} ; then
+       #
+       # Previous md5 sums
+       #
+       omd5ldat=0
+       omd5ldef=0
+       omd5llua=0
+       if test -e ${md5_ldat} -a -r ${md5_ldat} ; then
+           set -- $(cat ${md5_ldat}) ; omd5ldat="$1"
+       elif test ! -d ${md5_ldat%/*} ; then
+           mkdir -p ${md5_ldat%/*}
+           fi
+       echo "$md5ldat" > $md5_ldat
+       if test -e ${md5_ldef} -a -r ${md5_ldef} ; then
+           set -- $(cat ${md5_ldef}) ; omd5ldef="$1"
+       elif test ! -d ${md5_ldef%/*} ; then
+           mkdir -p ${md5_ldef%/*}
+       fi
+       echo "$md5ldef" > $md5_ldef
+           if test -e ${md5_llua} -a -r ${md5_llua} ; then
        set -- $(cat ${md5_llua}) ; omd5llua="$1"
-    elif test ! -d ${md5_llua%/*} ; then
-       mkdir -p ${md5_llua%/*}
-    fi
+       elif test ! -d ${md5_llua%/*} ; then
+           mkdir -p ${md5_llua%/*}
+       fi
+       echo "$md5llua" > $md5_llua
 
-    #
-    # Create new formats for new language.dat and/or language.def if needed
-    #
-    while read format engine language rest
-    do
-       line=($rest)
-       last=${line[-1]}
-       inifile=${last#\*}
-       case "$engine" in
-       mpost)           continue ;;
-       mf|mfw|mf-nowin) continue ;;
-       *)               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)"
-       test -z "$fmt" && continue
-       for lang in ${language//,/ }
+       #
+       # Refresh formats for new language.dat and/or language.def if needed
+       #
+       while read format engine language rest
        do
-           for cfg in ${cnf_ldat} ${cnf_ldef} ${cnf_llua}
+           line=($rest)
+           last=${line[-1]}
+           inifile=${last#\*}
+           case "$engine" in
+           mpost)               continue ;;
+           mf|mfw|mf-nowin) continue ;;
+           *)           fmt="$format.fmt"; kpse=tex; engine=$engine  ;;
+           esac
+           test -d ${WEB2C}/$engine || mkdir -p ${WEB2C}/$engine
+           fmt="${WEB2C}/$engine/$fmt"
+           test -e "$fmt" || continue
+           inifile=$(kpsewhich -progname=$format -format=$kpse $inifile 
2>/dev/null) || continue
+           for lang in ${language//,/ }
            do
-               test $lang = "${cfg##*/}" || continue
-               test $fmt -nt $cfg && continue
-               > /var/run/texlive/run-fmtutil.language
-               break 3
+               for cfg in ${cnf_ldat} ${cnf_ldef} ${cnf_llua}
+               do
+                   test $lang = "${cfg##*/}" || continue
+                   test $fmt -nt $cfg && continue
+                   > /var/run/texlive/run-fmtutil.language
+                   break 3
+               done
            done
-       done
-    done < <(sed -r "/^(\#.*|[[:blank:]]*)$/d" "$cnf_fmtu")
-    unset format engine language lang rest line last inifile fmt kpse engine
+       done < <(sed -r "/^(\#.*|[[:blank:]]*)$/d" "$cnf_fmtu")
+       unset format engine language lang rest line last inifile fmt kpse engine
+    fi
 fi
 
 tcfmgr ()
@@ -428,7 +443,7 @@
        fmtutil-sys ${option:+$option} --byfmt "${run#*fmtutil.}" < /dev/null 
1>&4 2>&4
        let rc+=$?
        test $VERBOSE = true && echo
-       ((rc != 0)) || rm -f /var/run/texlive/run-fmtutil
+       ((rc != 0)) || rm -f "${run}"
     esac
 done
 


Reply via email to