Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1
texlive-specs-t
tetex_scripts.dif
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tetex_scripts.dif of Package texlive-specs-t
--- texmf-dist/scripts/texlive/fmtutil-sys.sh +++ texmf-dist/scripts/texlive/fmtutil-sys.sh 2013-07-31 13:01:24.000000000 +0000 @@ -26,4 +26,5 @@ TEXMFVAR="$v" TEXMFCONFIG="$c" export TEXMFVAR TEXMFCONFIG +umask 022 exec fmtutil ${1+"$@"} --- texmf-dist/scripts/texlive/fmtutil.sh +++ texmf-dist/scripts/texlive/fmtutil.sh 2012-06-20 09:56:15.000000000 +0000 @@ -160,7 +160,12 @@ setupTmpDir() trap 'cleanup 1' 1 2 3 7 13 15 needsCleanup=true - (umask 077; mkdir "$tmpdir") \ + if test "$(id -u 2> /dev/null)" = 0 && getent group mktex > /dev/null 2>&1 ; then + mkdir -m 0700 "$tmpdir" && chown nobody:mktex "$tmpdir" && chmod 2770 "$tmpdir" \ + || abort "could not create directory \`$tmpdir'" + return + fi + mkdir -m 0700 "$tmpdir" \ || abort "could not create directory \`$tmpdir'" } @@ -422,7 +427,7 @@ main() verboseFlag=true noAbortFlag=false # eradicate double slashes to avoid kpathsea expansion. - tmpdir=`echo ${TMPDIR-${TEMP-${TMP-/tmp}}}/$progname.$$ | sed s,//,/,g` + tmpdir=`echo ${TMPDIR-${TEMP-${TMP-/tmp}}}/$progname.$RANDOM | sed s,//,/,g` # mktexfmtMode: if called as mktexfmt, set to true. Will echo the # first generated filename after successful generation to stdout then @@ -744,6 +749,7 @@ run_initex() *) prgswitch=-progname=$format;; esac + type -p "$engine" &> /dev/null || return rm -f $fmtfile # Check for infinite recursion before running the iniTeX: @@ -757,6 +763,12 @@ run_initex() mktexfmt_loop=$mktexfmt_loop:$format/$engine export mktexfmt_loop + test "$batchmode" = "yes" && { + case "$engine" in + tex|ptex) + texargs="\\batchmode \\input $texargs" + esac + } verboseMsg "$progname: running \`$engine -ini $tcxflag $jobswitch $prgswitch $texargs' ..." # run in a subshell to get a local effect of TEXPOOL manipulation: --- texmf-dist/scripts/texlive/texconfig-dialog.sh +++ texmf-dist/scripts/texlive/texconfig-dialog.sh 2009-09-02 12:47:26.000000000 +0000 @@ -150,7 +150,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 teTeX system using the @@ -159,8 +166,9 @@ menuMain() The interactive mode works best with a real vt100 terminal or inside an xterm window. -eof - termCtl readln + eof + termCtl readln + fi while :; do logMessage='view logfile' --- texmf-dist/scripts/texlive/texlinks.sh +++ texmf-dist/scripts/texlive/texlinks.sh 2009-09-02 12:47:26.000000000 +0000 @@ -106,7 +106,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'" } @@ -114,16 +114,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 } @@ -210,8 +212,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 } @@ -276,12 +292,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 @@ -302,13 +318,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 --- texmf-dist/scripts/texlive/updmap-sys.sh +++ texmf-dist/scripts/texlive/updmap-sys.sh 2013-07-31 13:02:45.000000000 +0000 @@ -27,4 +27,5 @@ TEXMFVAR="$v" TEXMFCONFIG="$c" export TEXMFVAR TEXMFCONFIG +umask 022 exec updmap ${1+"$@"}
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