Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:mcalabkova:branches:Publishing:TeXLive:all
texlive-specs-w
texlive-scripts-extra_scripts.dif
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File texlive-scripts-extra_scripts.dif of Package texlive-specs-w
--- texmf-dist/scripts/texlive-extra/texconfig-dialog.sh | 14 +++-- texmf-dist/scripts/texlive-extra/texconfig-sys.sh | 1 texmf-dist/scripts/texlive-extra/texconfig.sh | 35 ------------ texmf-dist/scripts/texlive-extra/texlinks.sh | 53 ++++++++++++------- 4 files changed, 50 insertions(+), 53 deletions(-) --- texmf-dist/scripts/texlive-extra/texconfig-dialog.sh +++ texmf-dist/scripts/texlive-extra/texconfig-dialog.sh 2018-05-03 08:15:39.975645684 +0000 @@ -157,7 +157,14 @@ termCtl() ############################################################################### menuMain() { - cat <<-'eof' + rows="$(stty size)" + columns=${rows##* } + rows=${rows%% *} + test -n "$rows" || rows=0 + test -n "$columns" || columns=0 + + 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 crashes now, you can still set up your TeX system using the @@ -169,8 +176,9 @@ menuMain() More likely these days, you're better off using tlmgr. See http://tug.org/texlive/tlmgr.html. -eof - termCtl readln + eof + termCtl readln + fi while :; do logMessage='view logfile' --- texmf-dist/scripts/texlive-extra/texconfig-sys.sh +++ texmf-dist/scripts/texlive-extra/texconfig-sys.sh 2018-05-03 08:15:39.975645684 +0000 @@ -30,4 +30,5 @@ TEXMFVAR="$v" TEXMFCONFIG="$c" export TEXMFVAR TEXMFCONFIG +umask 022 exec texconfig ${1+"$@"} --- texmf-dist/scripts/texlive-extra/texconfig.sh +++ texmf-dist/scripts/texlive-extra/texconfig.sh 2009-09-02 12:47:26.000000000 +0000 @@ -40,7 +40,7 @@ envVars=" 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= @@ -997,21 +997,6 @@ For more information about these \`featu ;; 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 @@ -1037,22 +1022,6 @@ EOM # "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@^@ @'` @@ -1301,7 +1270,7 @@ Valid PAPER settings: ;; rehash) - mktexlsr + ( unset KPSE_DOT; mktexlsr ) ;; # --- texmf-dist/scripts/texlive-extra/texlinks.sh +++ texmf-dist/scripts/texlive-extra/texlinks.sh 2018-05-03 08:15:39.979645610 +0000 @@ -100,7 +100,7 @@ setupTmpDir() 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'" } @@ -108,16 +108,18 @@ setupTmpDir() # 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 } @@ -208,8 +210,22 @@ search_symlinkdir() 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 } @@ -274,12 +290,12 @@ main() 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 @@ -300,13 +316,16 @@ main() # 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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor