# # input_file_name_decode # ---------------------- # Decode COMMAND_LINE_FILENAME, and compute: # - COMMAND_LINE_FILENAME clean of TeX commands # - IN_DIR # The directory to the input file, possibly absolute if needed. # - IN_DIR_ABS # The absolute directory of the input file. # - IN_BASE # The input file base name (no directory part). # - IN_NOEXT # The input file name without extensions (nor directory part). # - IN_INPUT # Defaults to COMMAND_LINE_FILENAME, but might change if the # input is preprocessed (recode etc.). With directory, possibly absolute. input_file_name_decode () { # See if we are run from within AUC-Tex, in which case we are # passed `\input{FOO.tex}' or even `\nonstopmode\input{FOO.tex}'. case $command_line_filename in *\\nonstopmode*) batch=true;; esac case $command_line_filename in *\\input{*}*) # Let AUC-TeX error parser deal with line numbers. line_error=false command_line_filename=`\ expr X"$command_line_filename" : X'.*input{\([^}]*\)}'` ;; esac # If the COMMAND_LINE_FILENAME is not absolute (e.g., --debug.tex), # prepend `./' in order to avoid that the tools take it as an option. echo "$command_line_filename" | LC_ALL=C $EGREP '^(/|[A-Za-z]:/)' >&6 \ || command_line_filename="./$command_line_filename" # See if the file exists. If it doesn't we're in trouble since, even # though the user may be able to reenter a valid filename at the tex # prompt (assuming they're attending the terminal), this script won't # be able to find the right xref files and so forth. test -r "$command_line_filename" \ || error 1 "cannot read $command_line_filename, skipping." # Get the name of the current directory. in_dir=`func_dirname "$command_line_filename"` in_dir_abs=`absolute "$in_dir"` # In a clean build, we `cd', so get an absolute file name. if $tidy; then in_dir=$in_dir_abs fi # Strip directory part but leave extension. in_base=`basename "$command_line_filename"` # Strip extension. in_noext=`noext "$in_base"` # The normalized file name to compile. Must always point to the # file to actually compile (in case of recoding, macro-expansion etc.). in_input=$in_dir/$in_base # Compute the output file name. if test x"$oname" != x; then out_name=$oname else out_name=$in_noext.`out_lang_ext` fi out_dir=`func_dirname "$out_name"` out_dir_abs=`absolute "$out_dir"` out_base=`basename "$out_name"` out_noext=`noext "$out_base"` } ## -------------- ## ## TeXify files. ## ## -------------- ## for command_line_filename do verbose "Processing $command_line_filename ..." input_file_name_decode # `texinfo' or `latex'? in_lang=`compute_language "$command_line_filename"` # An auxiliary directory used for all the auxiliary tasks involved # in compiling this document. case $build_dir in '' | . ) t2ddir=$out_noext.t2d ;; *) # Avoid collisions between multiple occurrences of the same # file, so depend on the output path. Remove leading `./', # at least to avoid creating a file starting with `.!', i.e., # an invisible file. The sed expression is fragile if the cwd # has active characters. Transform / into ! so that we don't # need `mkdir -p'. It might be something to reconsider. t2ddir=$build_dir/`echo "$out_dir_abs/$out_noext.t2d" | sed "s,^$orig_pwd/,,;s,^\./,,;s,/,!,g"` esac # Remove it at exit if clean mode. trap "cleanup" 0 1 2 15 ensure_dir "$build_dir" "$t2ddir" # We will change directory, better work with an absolute path... t2ddir=`absolute "$t2ddir"` # Sometimes there are incompatibilities between auxiliary files for # DVI and PDF. The contents can also change whether we work on PDF # and/or DVI. So keep separate spaces for each. workdir=$t2ddir/`out_lang_tex` ensure_dir "$workdir" # _build. In a tidy build, where the auxiliary files are output. if $tidy; then work_build=$workdir/build else work_build=. fi # _bak. Copies of the previous auxiliary files (another round is # run if they differ from the new ones). work_bak=$workdir/bak # Make those directories. ensure_dir "$work_build" "$work_bak" case $action in compile) # Compile the document. compile cleanup ;; mostly-clean) mostly_clean ;; esac done + verbose Processing main.tex ... + true + echo /home/wybo/bin/texi2dvi: Processing main.tex ... /home/wybo/bin/texi2dvi: Processing main.tex ... + input_file_name_decode + echo main.tex + LC_ALL=C egrep ^(/|[A-Za-z]:/) + command_line_filename=./main.tex + test -r ./main.tex + func_dirname ./main.tex + dirname ./main.tex + in_dir=. + absolute . + local slashes + echo . + sed -n s,.*[^/]\(/*\)$,\1,p + slashes= + local rel + func_dirname . + dirname . + rel=/home/wybo/hg/Bash/mk/test/. + test -d /home/wybo/hg/Bash/mk/test/. + cd /home/wybo/hg/Bash/mk/test/. + local n + pwd + basename . + n=/home/wybo/hg/Bash/mk/test/. + echo /home/wybo/hg/Bash/mk/test/. + in_dir_abs=/home/wybo/hg/Bash/mk/test/. + false + basename ./main.tex + in_base=main.tex + noext main.tex + echo main.tex + sed -e s/\.[^/.][^/.]*$// + in_noext=main + in_input=./main.tex + test x != x + out_lang_ext + echo dvi + out_name=main.dvi + func_dirname main.dvi + dirname main.dvi + out_dir=. + absolute . + local slashes + echo . + sed -n s,.*[^/]\(/*\)$,\1,p + slashes= + local rel + func_dirname . + dirname . + rel=/home/wybo/hg/Bash/mk/test/. + test -d /home/wybo/hg/Bash/mk/test/. + cd /home/wybo/hg/Bash/mk/test/. + local n + pwd + basename . + n=/home/wybo/hg/Bash/mk/test/. + echo /home/wybo/hg/Bash/mk/test/. + out_dir_abs=/home/wybo/hg/Bash/mk/test/. + basename main.dvi + out_base=main.dvi + noext main.dvi + echo main.dvi + sed -e s/\.[^/.][^/.]*$// + out_noext=main + compute_language ./main.tex + test -n + sed 1q ./main.tex + grep input texinfo + echo latex + in_lang=latex + t2ddir=main.t2d + trap cleanup 0 1 2 15 + ensure_dir . main.t2d + test -d . + test -d main.t2d + mkdir main.t2d + absolute main.t2d + local slashes + echo main.t2d + sed -n s,.*[^/]\(/*\)$,\1,p + slashes= + local rel + func_dirname main.t2d + dirname main.t2d + rel=/home/wybo/hg/Bash/mk/test/. + test -d /home/wybo/hg/Bash/mk/test/. + cd /home/wybo/hg/Bash/mk/test/. + local n + pwd + basename main.t2d + n=/home/wybo/hg/Bash/mk/test/main.t2d + echo /home/wybo/hg/Bash/mk/test/main.t2d + t2ddir=/home/wybo/hg/Bash/mk/test/main.t2d + out_lang_tex + echo dvi + workdir=/home/wybo/hg/Bash/mk/test/main.t2d/dvi + ensure_dir /home/wybo/hg/Bash/mk/test/main.t2d/dvi + test -d /home/wybo/hg/Bash/mk/test/main.t2d/dvi + mkdir /home/wybo/hg/Bash/mk/test/main.t2d/dvi + false + work_build=. + work_bak=/home/wybo/hg/Bash/mk/test/main.t2d/dvi/bak + ensure_dir . /home/wybo/hg/Bash/mk/test/main.t2d/dvi/bak + test -d . + test -d /home/wybo/hg/Bash/mk/test/main.t2d/dvi/bak + mkdir /home/wybo/hg/Bash/mk/test/main.t2d/dvi/bak + compile + common=/home/wybo/hg/Bash/mk/test:.: + list_infix includes : + eval set X $includes + set X + shift + local la_IFS= + IFS=: + echo + IFS= + txincludes= + test -n + eval val=$common$BIBINPUTS_orig + val=/home/wybo/hg/Bash/mk/test:.: + absolute_filenames /home/wybo/hg/Bash/mk/test:.: + local replace_empty=-e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e 's/::/:EMPTY:/g' + local res + echo /home/wybo/hg/Bash/mk/test:.: + eval sed -e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e 's/::/:EMPTY:/g' + sed -e s/^:/EMPTY:/g -e s/:$/:EMPTY/g -e s/::/:EMPTY:/g + res=/home/wybo/hg/Bash/mk/test:.:EMPTY + save_IFS= + IFS=: + set x /home/wybo/hg/Bash/mk/test . EMPTY + shift + res=. + test -d /home/wybo/hg/Bash/mk/test + absolute /home/wybo/hg/Bash/mk/test + echo /home/wybo/hg/Bash/mk/test + res=.:/home/wybo/hg/Bash/mk/test + test -d . + absolute . + local slashes + echo . + sed -n s,.*[^/]\(/*\)$,\1,p + slashes= + local rel + func_dirname . + dirname . + rel=/home/wybo/hg/Bash/mk/test/. + test -d /home/wybo/hg/Bash/mk/test/. + cd /home/wybo/hg/Bash/mk/test/. + local n + pwd + basename . + n=/home/wybo/hg/Bash/mk/test/. + echo /home/wybo/hg/Bash/mk/test/. + res=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/. + res=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + echo .:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + val=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + eval BIBINPUTS=".:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:" + BIBINPUTS=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + export BIBINPUTS + eval verbose "BIBINPUTS='$BIBINPUTS'" + verbose BIBINPUTS='.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:' + true + echo /home/wybo/bin/texi2dvi: BIBINPUTS='.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:' /home/wybo/bin/texi2dvi: BIBINPUTS='.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:' + eval val=$common$BSTINPUTS_orig + val=/home/wybo/hg/Bash/mk/test:.: + absolute_filenames /home/wybo/hg/Bash/mk/test:.: + local replace_empty=-e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e 's/::/:EMPTY:/g' + local res + echo /home/wybo/hg/Bash/mk/test:.: + eval sed -e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e 's/::/:EMPTY:/g' + sed -e s/^:/EMPTY:/g -e s/:$/:EMPTY/g -e s/::/:EMPTY:/g + res=/home/wybo/hg/Bash/mk/test:.:EMPTY + save_IFS= + IFS=: + set x /home/wybo/hg/Bash/mk/test . EMPTY + shift + res=. + test -d /home/wybo/hg/Bash/mk/test + absolute /home/wybo/hg/Bash/mk/test + echo /home/wybo/hg/Bash/mk/test + res=.:/home/wybo/hg/Bash/mk/test + test -d . + absolute . + local slashes + echo . + sed -n s,.*[^/]\(/*\)$,\1,p + slashes= + local rel + func_dirname . + dirname . + rel=/home/wybo/hg/Bash/mk/test/. + test -d /home/wybo/hg/Bash/mk/test/. + cd /home/wybo/hg/Bash/mk/test/. + local n + pwd + basename . + n=/home/wybo/hg/Bash/mk/test/. + echo /home/wybo/hg/Bash/mk/test/. + res=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/. + res=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + echo .:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + val=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + eval BSTINPUTS=".:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:" + BSTINPUTS=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + export BSTINPUTS + eval verbose "BSTINPUTS='$BSTINPUTS'" + verbose BSTINPUTS='.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:' + true + echo /home/wybo/bin/texi2dvi: BSTINPUTS='.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:' /home/wybo/bin/texi2dvi: BSTINPUTS='.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:' + eval val=$common$DVIPSHEADERS_orig + val=/home/wybo/hg/Bash/mk/test:.: + absolute_filenames /home/wybo/hg/Bash/mk/test:.: + local replace_empty=-e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e 's/::/:EMPTY:/g' + local res + echo /home/wybo/hg/Bash/mk/test:.: + eval sed -e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e 's/::/:EMPTY:/g' + sed -e s/^:/EMPTY:/g -e s/:$/:EMPTY/g -e s/::/:EMPTY:/g + res=/home/wybo/hg/Bash/mk/test:.:EMPTY + save_IFS= + IFS=: + set x /home/wybo/hg/Bash/mk/test . EMPTY + shift + res=. + test -d /home/wybo/hg/Bash/mk/test + absolute /home/wybo/hg/Bash/mk/test + echo /home/wybo/hg/Bash/mk/test + res=.:/home/wybo/hg/Bash/mk/test + test -d . + absolute . + local slashes + echo . + sed -n s,.*[^/]\(/*\)$,\1,p + slashes= + local rel + func_dirname . + dirname . + rel=/home/wybo/hg/Bash/mk/test/. + test -d /home/wybo/hg/Bash/mk/test/. + cd /home/wybo/hg/Bash/mk/test/. + local n + pwd + basename . + n=/home/wybo/hg/Bash/mk/test/. + echo /home/wybo/hg/Bash/mk/test/. + res=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/. + res=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + echo .:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + val=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + eval DVIPSHEADERS=".:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:" + DVIPSHEADERS=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + export DVIPSHEADERS + eval verbose "DVIPSHEADERS='$DVIPSHEADERS'" + verbose DVIPSHEADERS='.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:' + true + echo /home/wybo/bin/texi2dvi: DVIPSHEADERS='.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:' /home/wybo/bin/texi2dvi: DVIPSHEADERS='.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:' + eval val=$common$INDEXSTYLE_orig + val=/home/wybo/hg/Bash/mk/test:.: + absolute_filenames /home/wybo/hg/Bash/mk/test:.: + local replace_empty=-e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e 's/::/:EMPTY:/g' + local res + echo /home/wybo/hg/Bash/mk/test:.: + eval sed -e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e 's/::/:EMPTY:/g' + sed -e s/^:/EMPTY:/g -e s/:$/:EMPTY/g -e s/::/:EMPTY:/g + res=/home/wybo/hg/Bash/mk/test:.:EMPTY + save_IFS= + IFS=: + set x /home/wybo/hg/Bash/mk/test . EMPTY + shift + res=. + test -d /home/wybo/hg/Bash/mk/test + absolute /home/wybo/hg/Bash/mk/test + echo /home/wybo/hg/Bash/mk/test + res=.:/home/wybo/hg/Bash/mk/test + test -d . + absolute . + local slashes + echo . + sed -n s,.*[^/]\(/*\)$,\1,p + slashes= + local rel + func_dirname . + dirname . + rel=/home/wybo/hg/Bash/mk/test/. + test -d /home/wybo/hg/Bash/mk/test/. + cd /home/wybo/hg/Bash/mk/test/. + local n + pwd + basename . + n=/home/wybo/hg/Bash/mk/test/. + echo /home/wybo/hg/Bash/mk/test/. + res=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/. + res=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + echo .:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + val=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + eval INDEXSTYLE=".:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:" + INDEXSTYLE=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + export INDEXSTYLE + eval verbose "INDEXSTYLE='$INDEXSTYLE'" + verbose INDEXSTYLE='.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:' + true + echo /home/wybo/bin/texi2dvi: INDEXSTYLE='.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:' /home/wybo/bin/texi2dvi: INDEXSTYLE='.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:' + eval val=$common$MFINPUTS_orig + val=/home/wybo/hg/Bash/mk/test:.: + absolute_filenames /home/wybo/hg/Bash/mk/test:.: + local replace_empty=-e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e 's/::/:EMPTY:/g' + local res + echo /home/wybo/hg/Bash/mk/test:.: + eval sed -e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e 's/::/:EMPTY:/g' + sed -e s/^:/EMPTY:/g -e s/:$/:EMPTY/g -e s/::/:EMPTY:/g + res=/home/wybo/hg/Bash/mk/test:.:EMPTY + save_IFS= + IFS=: + set x /home/wybo/hg/Bash/mk/test . EMPTY + shift + res=. + test -d /home/wybo/hg/Bash/mk/test + absolute /home/wybo/hg/Bash/mk/test + echo /home/wybo/hg/Bash/mk/test + res=.:/home/wybo/hg/Bash/mk/test + test -d . + absolute . + local slashes + echo . + sed -n s,.*[^/]\(/*\)$,\1,p + slashes= + local rel + func_dirname . + dirname . + rel=/home/wybo/hg/Bash/mk/test/. + test -d /home/wybo/hg/Bash/mk/test/. + cd /home/wybo/hg/Bash/mk/test/. + local n + pwd + basename . + n=/home/wybo/hg/Bash/mk/test/. + echo /home/wybo/hg/Bash/mk/test/. + res=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/. + res=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + echo .:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + val=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + eval MFINPUTS=".:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:" + MFINPUTS=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + export MFINPUTS + eval verbose "MFINPUTS='$MFINPUTS'" + verbose MFINPUTS='.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:' + true + echo /home/wybo/bin/texi2dvi: MFINPUTS='.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:' /home/wybo/bin/texi2dvi: MFINPUTS='.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:' + eval val=$common$MPINPUTS_orig + val=/home/wybo/hg/Bash/mk/test:.: + absolute_filenames /home/wybo/hg/Bash/mk/test:.: + local replace_empty=-e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e 's/::/:EMPTY:/g' + local res + echo /home/wybo/hg/Bash/mk/test:.: + eval sed -e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e 's/::/:EMPTY:/g' + sed -e s/^:/EMPTY:/g -e s/:$/:EMPTY/g -e s/::/:EMPTY:/g + res=/home/wybo/hg/Bash/mk/test:.:EMPTY + save_IFS= + IFS=: + set x /home/wybo/hg/Bash/mk/test . EMPTY + shift + res=. + test -d /home/wybo/hg/Bash/mk/test + absolute /home/wybo/hg/Bash/mk/test + echo /home/wybo/hg/Bash/mk/test + res=.:/home/wybo/hg/Bash/mk/test + test -d . + absolute . + local slashes + echo . + sed -n s,.*[^/]\(/*\)$,\1,p + slashes= + local rel + func_dirname . + dirname . + rel=/home/wybo/hg/Bash/mk/test/. + test -d /home/wybo/hg/Bash/mk/test/. + cd /home/wybo/hg/Bash/mk/test/. + local n + pwd + basename . + n=/home/wybo/hg/Bash/mk/test/. + echo /home/wybo/hg/Bash/mk/test/. + res=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/. + res=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + echo .:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + val=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + eval MPINPUTS=".:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:" + MPINPUTS=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + export MPINPUTS + eval verbose "MPINPUTS='$MPINPUTS'" + verbose MPINPUTS='.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:' + true + echo /home/wybo/bin/texi2dvi: MPINPUTS='.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:' /home/wybo/bin/texi2dvi: MPINPUTS='.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:' + eval val=$common$TEXINPUTS_orig + val=/home/wybo/hg/Bash/mk/test:.: + absolute_filenames /home/wybo/hg/Bash/mk/test:.: + local replace_empty=-e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e 's/::/:EMPTY:/g' + local res + echo /home/wybo/hg/Bash/mk/test:.: + eval sed -e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e 's/::/:EMPTY:/g' + sed -e s/^:/EMPTY:/g -e s/:$/:EMPTY/g -e s/::/:EMPTY:/g + res=/home/wybo/hg/Bash/mk/test:.:EMPTY + save_IFS= + IFS=: + set x /home/wybo/hg/Bash/mk/test . EMPTY + shift + res=. + test -d /home/wybo/hg/Bash/mk/test + absolute /home/wybo/hg/Bash/mk/test + echo /home/wybo/hg/Bash/mk/test + res=.:/home/wybo/hg/Bash/mk/test + test -d . + absolute . + local slashes + echo . + sed -n s,.*[^/]\(/*\)$,\1,p + slashes= + local rel + func_dirname . + dirname . + rel=/home/wybo/hg/Bash/mk/test/. + test -d /home/wybo/hg/Bash/mk/test/. + cd /home/wybo/hg/Bash/mk/test/. + local n + pwd + basename . + n=/home/wybo/hg/Bash/mk/test/. + echo /home/wybo/hg/Bash/mk/test/. + res=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/. + res=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + echo .:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + val=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + eval TEXINPUTS=".:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:" + TEXINPUTS=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + export TEXINPUTS + eval verbose "TEXINPUTS='$TEXINPUTS'" + verbose TEXINPUTS='.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:' + true + echo /home/wybo/bin/texi2dvi: TEXINPUTS='.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:' /home/wybo/bin/texi2dvi: TEXINPUTS='.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:' + eval val=$common$TFMFONTS_orig + val=/home/wybo/hg/Bash/mk/test:.: + absolute_filenames /home/wybo/hg/Bash/mk/test:.: + local replace_empty=-e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e 's/::/:EMPTY:/g' + local res + + /home/wybo/hg/Bash/mk/test:.: eval sed -e 's/^:/EMPTY:/g' -e 's/:$/:EMPTY/g' -e 's/::/:EMPTY:/g' + sed -e s/^:/EMPTY:/g -e s/:$/:EMPTY/g -e s/::/:EMPTY:/g + res=/home/wybo/hg/Bash/mk/test:.:EMPTY + save_IFS= + IFS=: + set x /home/wybo/hg/Bash/mk/test . EMPTY + shift + res=. + test -d /home/wybo/hg/Bash/mk/test + absolute /home/wybo/hg/Bash/mk/test + echo /home/wybo/hg/Bash/mk/test + res=.:/home/wybo/hg/Bash/mk/test + test -d . + absolute . + local slashes + echo . + sed -n s,.*[^/]\(/*\)$,\1,p + slashes= + local rel + func_dirname . + dirname . + rel=/home/wybo/hg/Bash/mk/test/. + test -d /home/wybo/hg/Bash/mk/test/. + cd /home/wybo/hg/Bash/mk/test/. + local n + pwd + basename . + n=/home/wybo/hg/Bash/mk/test/. + echo /home/wybo/hg/Bash/mk/test/. + res=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/. + res=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + echo .:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + val=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + eval TFMFONTS=".:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:" + TFMFONTS=.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.: + export TFMFONTS + eval verbose "TFMFONTS='$TFMFONTS'" + verbose TFMFONTS='.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:' + true + echo /home/wybo/bin/texi2dvi: TFMFONTS='.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:' /home/wybo/bin/texi2dvi: TFMFONTS='.:/home/wybo/hg/Bash/mk/test:/home/wybo/hg/Bash/mk/test/.:' + run_makeinfo + test latex = texinfo + return 0 + insert_commands + test -n + out_lang_tex + echo dvi + run_recode + local from + local to + test latex = texinfo + run_tex_suite + false + local cycle=0 + : + test 0 -eq 7 + expr 0 + 1 + cycle=1 + verbose Cycle 1 for ./main.tex + true + echo /home/wybo/bin/texi2dvi: Cycle 1 for ./main.tex /home/wybo/bin/texi2dvi: Cycle 1 for ./main.tex + xref_files_save + generated_files_get main xref_file_p + local filter=true + test -n xref_file_p + filter=xref_file_p + test -f main.log + sed -n -e s,^ file out.* = `\(.*\)'\.,\1,p main.log + read file + sort + uniq + echo main.log + echo main.log + aux_file_p main.log + test+ xref_file_ main.log + return+ test -f mread file + sed 1q main.log + return 1 + read file + xref_files_orig= + test -n + run_bibtex + bibtex=bibtex + test -r main.aux + test -r main.log + grep Warning:.*Citation.*undefined main.log LaTeX Warning: Citation `texbook' on page 5 undefined on input line 20. LaTeX Warning: Citation `gracom' on page 5 undefined on input line 23. + generated_files_get main bibaux_file_p + local filter=true + test -n bibaux_file_p + filter=bibaux_file_p + test -f main.log + sed+ n -e s,^\\openout.* = `\(.*\)'\.,\1,p main.log read file + read file + sort + uniq + echo main.log + echo main.log + aux_file_p main.log + bibaux_file_p ma main. + + te -s+ read file + grep ^\\bibstyle[{] main.log + return 1 + read file + bibtex_aux= + test -r main.bcf + run_index + local index_files + generated_files_get main index_file_p + local filter=true + test -n index_file_p + filter=index_file_p + test -f main.log + sed -n -eread file + read file + sort + uniq + echo main.log + echo main.log + aux_file_p main.log + test+ index_file main.log + return+ test -f mread file + out_lang_tex + echo dvi + sed 1q main.log + return 1 + read file + index_files= + test -n + return 0 + run_core_conversion + out_lang_tex + echo dvi + run_tex + out_lang_tex + echo dvi + tex=xelatex + test xlatex = xtexinfo + catcode_special=false + local cmd=xelatex + true + test != set + tex_help_dir=/home/wybo/hg/Bash/mk/test/main.t2d/tex_help + ensure_dir /home/wybo/hg/Bash/mk/test/main.t2d/tex_help + test -d /home/wybo/hg/Bash/mk/test/main.t2d/tex_help + mkdir /home/wybo/hg/Bash/mk/test/main.t2d/tex_help + cd /home/wybo/hg/Bash/mk/test/main.t2d/tex_help + xelatex --help + tex_help=Usage: xetex [OPTION]... [TEXNAME[.tex]] [COMMANDS] or: xetex [OPTION]... \FIRST-LINE or: xetex [OPTION]... &FMT ARGS Run XeTeX on TEXNAME, usually creating TEXNAME.pdf. Any remaining COMMANDS are processed as XeTeX input, after TEXNAME is read. If the first line of TEXNAME is %&FMT, and FMT is an existing .fmt file, use it. Else use `NAME.fmt', where NAME is the program invocation name, most commonly `xetex'. Alternatively, if the first non-option argument begins with a backslash, interpret all non-option arguments as a line of XeTeX input. Alternatively, if the first non-option argument begins with a &, the next word is taken as the FMT to read, overriding all else. Any remaining arguments are processed as above. If no arguments or options are specified, prompt for input. -etex enable e-TeX extensions [-no]-file-line-error disable/enable file:line:error style messages -fmt=FMTNAME use FMTNAME instead of program name or a %& line -halt-on-error stop processing at the first error -ini be xeinitex, for dumping formats; this is implicitly true if the program name is `xeinitex' -interaction=STRING set interaction mode (STRING=batchmode/nonstopmode/ scrollmode/errorstopmode) -jobname=STRING set the job name to STRING -kpathsea-debug=NUMBER set path searching debugging flags according to the bits of NUMBER [-no]-mktex=FMT disable/enable mktexFMT generation (FMT=tex/tfm) -mltex enable MLTeX extensions such as \charsubdef -output-comment=STRING use STRING for XDV file comment instead of date -output-directory=DIR use existing DIR as the directory to write files in -output-driver=CMD use CMD as the XDV-to-PDF driver instead of xdvipdfmx -no-pdf generate XDV (extended DVI) output rather than PDF [-no]-parse-first-line disable/enable parsing of first line of input file -papersize=STRING set PDF media size to STRING -progname=STRING set program (and fmt) name to STRING -recorder enable filename recorder [-no]-shell-escape disable/enable \write18{SHELL COMMAND} -shell-restricted enable restricted \write18 -src-specials insert source specials into the XDV file -src-specials=WHERE insert source specials in certain places of the XDV file. WHERE is a comma-separated value list: cr display hbox math par parend vbox -synctex=NUMBER generate SyncTeX data for previewers if nonzero -translate-file=TCXNAME (ignored) -8bit make all characters printable, don't use ^^X sequences -help display this help and exit -version output version information and exit Email bug reports to address@hidden + cmd=xelatex --file-line-error + test -n + test -n + test -n + false + false + cmd=xelatex --file-line-error '\input' + func_dirname ./main.tex + dirname ./main.tex + cmd=xelatex --file-line-error '\input' './main.tex' + verbose /home/wybo/bin/texi2dvi: Running xelatex --file-line-error '\input' './main.tex' ... + true + echo /home/wybo/bin/texi2dvi: /home/wybo/bin/texi2dvi: Running xelatex --file-line-error '\input' './main.tex' ... /home/wybo/bin/texi2dvi: /home/wybo/bin/texi2dvi: Running xelatex --file-line-error '\input' './main.tex' ... + eval xelatex --file-line-error '\input' './main.tex' + xelatex --file-line-error \input ./main.tex This is XeTeX, Version 3.14159265-2.6-0.99991 (TeX Live 2014) (preloaded format=xelatex) restricted \write18 enabled. entering extended mode LaTeX2e <2014/05/01> Babel <3.9k> and hyphenation patterns for 79 languages loaded. (./main.tex (/usr/local/texlive/2014/texmf-dist/tex/latex/base/book.cls Document Class: book 2007/10/19 v1.4h Standard LaTeX document class (/usr/local/texlive/2014/texmf-dist/tex/latex/base/bk11.clo)) (/usr/local/texlive/2014/texmf-dist/tex/latex/fontspec/fontspec.sty (/usr/local/texlive/2014/texmf-dist/tex/latex/l3kernel/expl3.sty (/usr/local/texlive/2014/texmf-dist/tex/latex/l3kernel/expl3-code.tex (/usr/local/texlive/2014/texmf-dist/tex/latex/etex-pkg/etex.sty)) (/usr/local/texlive/2014/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def)) (/usr/local/texlive/2014/texmf-dist/tex/latex/l3packages/xparse/xparse.sty) (/usr/local/texlive/2014/texmf-dist/tex/latex/fontspec/fontspec-patches.sty ************************************************* * LaTeX warning: "xparse/redefine-command" * * Redefining document command \oldstylenums with arg. spec. 'm' on line 144. ************************************************* ) (/usr/local/texlive/2014/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty (/usr/local/texlive/2014/texmf-dist/tex/latex/base/fontenc.sty (/usr/local/texlive/2014/texmf-dist/tex/latex/euenc/eu1enc.def) (/usr/local/texlive/2014/texmf-dist/tex/latex/euenc/eu1lmr.fd)) (/usr/local/texlive/2014/texmf-dist/tex/xelatex/xunicode/xunicode.sty (/usr/local/texlive/2014/texmf-dist/tex/latex/tipa/t3enc.def (/usr/local/texlive/2014/texmf-dist/tex/latex/euenc/eu1lmss.fd)) (/usr/local/texlive/2014/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/local/texlive/2014/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/local/texlive/2014/texmf-dist/tex/latex/graphics/graphics.sty (/usr/local/texlive/2014/texmf-dist/tex/latex/graphics/trig.sty) (/usr/local/texlive/2014/texmf-dist/tex/latex/latexconfig/graphics.cfg) (/usr/local/texlive/2014/texmf-dist/tex/xelatex/xetex-def/xetex.def)))) (/usr/local/texlive/2014/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (/usr/local/texlive/2014/texmf-dist/tex/latex/kantlipsum/kantlipsum.sty) (/usr/local/texlive/2014/texmf-dist/tex/latex/base/makeidx.sty) Writing index file main.idx (./main.aux) (/usr/local/texlive/2014/texmf-dist/tex/latex/tipa/t3cmr.fd) [1] [2] (./main.toc) [3] [4] Chapter 1. (/usr/local/texlive/2014/texmf-dist/tex/latex/euenc/eu1lmtt.fd) LaTeX Warning: Citation `texbook' on page 5 undefined on input line 20. LaTeX Warning: Citation `gracom' on page 5 undefined on input line 23. [5] No file main.bbl. No file main.ind. [6] (./main.aux) LaTeX Warning: There were undefined references. ) Output written on main.pdf (6 pages). Transcript written on main.log. + move_to_dest main.dvi + return + xref_files_changed + grep Rerun to get main.log + grep biblatex.*(re)run main.log + generated_files_get main xref_file_p + local filter=true + test -n xref_file_p + filter=xref_file_p + test -f main.log + + d -n -e s,^\\openout.* = `\(.*\)'\.,\1,p main.log read file + read file + sort+ uniq + echo main.idx + + x_file_p main.idx main.log + xref_file_p ma main. dx + test - main.idx+ read file + echo main.aux + aux_file_p main.aux + test -f main.aux + return 0 + sed 1q main.idx + echo+ sed s/^\(.*\)\.aux$/\1.bbl/ main.aux + return 0 + echo main.idx + read file + xref_file_p main.aux + test -f main.aux + echo main.aux main.aux + sed s/^\(.*\)\.aux$/\1.blg/ + return 0 + echo main.aux + read file + xref_file_p main.bbl + test -f main.bbl + return 1 + read file + xref_file_p main.blg + test -f main.blg + return 1 + read file + echo main.aux + sed s/^\(.*\)\.aux$/\1.fls/ + xref_file_p main.fls + test -f main.fls + return 1 + read file + read file + echo main.toc + aux_file_p main.toc + xrtest -f main.toc+ test+ return 1 + read file + echo main.log + aux_file_p main.log + test -f main.log + return 1 + read file + sed 1q main.toc + return 0 + echo main.toc + read file + xref_file_p main.log + test -f main.log + sed 1q main.log + return 1 + read file + xref_files_new=main.aux main.idx main.toc + verbose Original xref files = + true + echo /home/wybo/bin/texi2dvi: Original xref files = /home/wybo/bin/texi2dvi: Original xref files = + verbose New xref files = main.aux main.idx main.toc + true + echo /home/wybo/bin/texi2dvi: New xref files = main.aux main.idx main.toc /home/wybo/bin/texi2dvi: New xref files = main.aux main.idx main.toc + test x != xmain.aux main.idx main.toc + return 0 + : + test 1 -eq 7 + expr 1 + 1 + cycle=2 + verbose Cycle 2 for ./main.tex + true + echo /home/wybo/bin/texi2dvi: Cycle 2 for ./main.tex /home/wybo/bin/texi2dvi: Cycle 2 for ./main.tex + xref_files_save + generated_files_get main xref_file_p + local filter=true + test -n xref_file_p + filter=xref_file_p + test -f+ ain.log read file sed -n -e s,^\\openout.* = `\(.*\)'\.,\1,p main.log read file + sort + uniq + echo main.idx + aux_file_p main.idx + test -fin.idx main.idx + tere -f m in.idx + read file + echo main.aux + aux_file_p main.aux + test -f main.aux + return 0 + sed 1q main.idx + echo main.log + sed s/^\(.*\)\.aux$/\1.bbl/ + return 0echo main.aux + echo main.idx + read file + xref_file_p main.aux + test -f main.aux + sed 1q main.aux + echo main.aux + sed s/^\(.*\)\.aux$/\1.blg/ + return 0 + echo main.aux + read file + xref_file_p main.bbl + test -f main.bbl + return 1 + read file + xref_file_p main.blg + test -f main.blg + return 1 + read file + echo main.aux + sed s/^\(.*\)\.aux$/\1.fls/ + xref_file_p main.fls + test -f main.fls + return 1 + read file file + echo main.toc + aux_file_p main.toc + test -f main.toc + return 1 main.toc+ + teste -f main.toc + echo main.log + aux_file_p main.log + test -f main.log + return 1 + read file + sed 1q main.toc + return 0 + echo main.toc + read file + xref_file_p main.log + test -f main.log + sed 1q main.log + return 1 + read file + xref_files_orig=main.aux main.idx main.toc + test -n main.aux main.idx main.toc + verbose Backing up xref files: main.aux main.idx main.toc + true + echo /home/wybo/bin/texi2dvi: Backing up xref files: main.aux main.idx main.toc /home/wybo/bin/texi2dvi: Backing up xref files: main.aux main.idx main.toc + TAR_OPTIONS= + export TAR_OPTIONS + + tarcd - main.aux main.idx main.toc + tar xf - + run_bibtex + bibtex=bibtex + test -r main.aux + test -r main.log + grep Warning:.*Citation.*undefined main.log LaTeX Warning: Citation `texbook' on page 5 undefined on input line 20. LaTeX Warning: Citation `gracom' on page 5 undefined on input line 23. + generated_files_get main bibaux_file_p + local filter=true + test -n bibaux_file_p + filter=bibaux_file_p + test -f main.log+ read+ sed -n -e s,^\\openout.* = `\(.*\)'\.,\1,p main.log + read file + sort + uniq + echo main.idx + aux_file_p main.idx + test -f main.idx + bibaux 1 main.log + read file + test main.aux main.idx aux_file_p main.aux + test -f main.aux + return 0 + echo main.aux + grep ^\\bibstyle[{] main.idx + sed s/^\(.*\)\.aux$/\1.bbl/ + return 1 + read file + bibaux_file_p main.aux + test -s main.aux + echo main.aux + sed s/^\(.*\)\.aux$/\1.blg/ + grep ^\\bibstyle[{] main.aux \bibstyle{plain} + grep ^\\bibdata[{] main.aux + echo main.aux + sed s/^\(.*\)\.aux$/\1.fls/ \bibdata{example} + return 0 + echo main.aux + read file + bibaux_file_p main.bbl + test -s main.bbl + return 1 + read file + + bibau main.blg + test -s+ ain.blg echo mreturn 1 + + aux_f main.toc + test -f main.toc test -s+ return+ return 1 + read file + echo mbibaux_ main.toc+ autest -s main.toc+ test -f main.log + return 1 + read file + grep ^\\bibstyle[{] main.toc + return 1 + read file + bibaux_file_p main.log + test -s main.log + grep ^\\bibstyle[{] main.log + return 1 + read file + bibtex_aux=main.aux + run bibtex main.aux + verbose Running bibtex main.aux + true + echo /home/wybo/bin/texi2dvi: Running bibtex main.aux /home/wybo/bin/texi2dvi: Running bibtex main.aux + bibtex main.aux This is BibTeX, Version 0.99d (TeX Live 2014) The top-level auxiliary file: main.aux The style file: plain.bst Database file #1: example.bib + test -r main.bcf + run_index + local index_files + generated_files_get main index_file_p + local filter=true + test -n index_file_p + filter=index_file_p + test -f main.log + sed -n -e s,^\\openout.* = `\(.*\)'\.,\1,p+ ain.log read file + read file + uniq sort + echo main.idx + aux_file_p main.idx + test -f main.idx + return+ t -f+ read file + echo main.aux + aux_file_p main.aux + test -f main.aux + return 0 + out_lang_tex + + echo main.aux + sed s/^\(.*\)\.aux$/\1.bbl/ + sed 1q main.idx + return 0 + echo main.idx + read file + index_file_p main.aux + test -f main.aux + echo main.aux + out_lang_tex sed s/^\(.*\)\.aux$/\1.blg/ + echo dvi + sed 1q main.aux + return 1 + read file + index_file_p main.bbl + test -fechon.bbl main.aux + sed s/^\(.*\)\.aux$/\1.fls/ + read file + + main.toc ouaux_file_p main.toc + test -f main.toc + return 1 + read file + echo main.log + aux_file_p main.log + test -f main.log + return 1 + read file + sed 1q main.bbl + return 1 + read file + index_file_p main.blg + test -f main.blg + out_lang_tex + echo dvi + sed 1q main.blg + return 1 + read file + index_file_p main.fls + test -f main.fls + return 1 + read file + index_file_p main.toc + test -f main.toc + out_lang_tex + echo dvi + sed 1q main.toc + return 1 + read file + index_file_p main.log + test -f main.log + out_lang_tex + echo dvi + sed 1q main.log + return 1 + read file + index_files=main.idx + test -n main.idx + : makeindex + : texindex + : texindy + local index_file + local index_noext + out_lang_tex + echo dvi + texindy --version xindy release: 2.5.0 texindy script version: 1.13 xindy script version: 1.18 xindy kernel version: 3.0 CLISP version 2.49 (2010-07-07) (built on pcl321.mppmu.mpg.de [134.107.3.54]) architecture: X86_64 + run texindy main.idx + verbose Running texindy main.idx + true + echo /home/wybo/bin/texi2dvi: Running texindy main.idx /home/wybo/bin/texi2dvi: Running texindy main.idx + texindy main.idx Opening logfile "/dev/null" (done) Reading indexstyle... Loading module "/tmp/gtfAkqgxFq"... Loading module "lang/general/latin9-lang.xdy"... Loading module "lang/general/latin9.xdy"... Finished loading module "lang/general/latin9.xdy". Finished loading module "lang/general/latin9-lang.xdy". Loading module "tex/inputenc/latin.xdy"... Finished loading module "tex/inputenc/latin.xdy". Loading module "texindy.xdy"... Loading module "numeric-sort.xdy"... Finished loading module "numeric-sort.xdy". Loading module "latex.xdy"... Loading module "tex.xdy"... Finished loading module "tex.xdy". Finished loading module "latex.xdy". Loading module "latex-loc-fmts.xdy"... Finished loading module "latex-loc-fmts.xdy". Loading module "makeindex.xdy"... Finished loading module "makeindex.xdy". Loading module "latin-lettergroups.xdy"... Finished loading module "latin-lettergroups.xdy". Finished loading module "texindy.xdy". Loading module "page-ranges.xdy"... Finished loading module "page-ranges.xdy". Loading module "word-order.xdy"... Finished loading module "word-order.xdy". Finished loading module "/tmp/gtfAkqgxFq". Finished reading indexstyle. Finalizing indexstyle... (done) Reading raw-index "/tmp/N_ve3AUp4q"... Finished reading raw-index. Processing index... [10%] [20%] [30%] [40%] [50%] [60%] [70%] [80%] [90%] [100%] Finished processing index. Writing markup... [10%] [20%] [30%] [40%] [50%] [60%] [70%] [80%] [90%] [100%] Markup written into file "./main.ind". + run_core_conversion + out_lang_tex + echo dvi + run_tex + out_lang_tex + echo dvi + tex=xelatex + test xlatex = xtexinfo + catcode_special=false + local cmd=xelatex + true + test set != set + cmd=xelatex --file-line-error + test -n + test -n + test -n + false + false + cmd=xelatex --file-line-error '\input' + func_dirname ./main.tex + dirname ./main.tex + cmd=xelatex --file-line-error '\input' './main.tex' + verbose /home/wybo/bin/texi2dvi: Running xelatex --file-line-error '\input' './main.tex' ... + true + echo /home/wybo/bin/texi2dvi: /home/wybo/bin/texi2dvi: Running xelatex --file-line-error '\input' './main.tex' ... /home/wybo/bin/texi2dvi: /home/wybo/bin/texi2dvi: Running xelatex --file-line-error '\input' './main.tex' ... + eval xelatex --file-line-error '\input' './main.tex' + xelatex --file-line-error \input ./main.tex This is XeTeX, Version 3.14159265-2.6-0.99991 (TeX Live 2014) (preloaded format=xelatex) restricted \write18 enabled. entering extended mode LaTeX2e <2014/05/01> Babel <3.9k> and hyphenation patterns for 79 languages loaded. (./main.tex (/usr/local/texlive/2014/texmf-dist/tex/latex/base/book.cls Document Class: book 2007/10/19 v1.4h Standard LaTeX document class (/usr/local/texlive/2014/texmf-dist/tex/latex/base/bk11.clo)) (/usr/local/texlive/2014/texmf-dist/tex/latex/fontspec/fontspec.sty (/usr/local/texlive/2014/texmf-dist/tex/latex/l3kernel/expl3.sty (/usr/local/texlive/2014/texmf-dist/tex/latex/l3kernel/expl3-code.tex (/usr/local/texlive/2014/texmf-dist/tex/latex/etex-pkg/etex.sty)) (/usr/local/texlive/2014/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def)) (/usr/local/texlive/2014/texmf-dist/tex/latex/l3packages/xparse/xparse.sty) (/usr/local/texlive/2014/texmf-dist/tex/latex/fontspec/fontspec-patches.sty ************************************************* * LaTeX warning: "xparse/redefine-command" * * Redefining document command \oldstylenums with arg. spec. 'm' on line 144. ************************************************* ) (/usr/local/texlive/2014/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty (/usr/local/texlive/2014/texmf-dist/tex/latex/base/fontenc.sty (/usr/local/texlive/2014/texmf-dist/tex/latex/euenc/eu1enc.def) (/usr/local/texlive/2014/texmf-dist/tex/latex/euenc/eu1lmr.fd)) (/usr/local/texlive/2014/texmf-dist/tex/xelatex/xunicode/xunicode.sty (/usr/local/texlive/2014/texmf-dist/tex/latex/tipa/t3enc.def (/usr/local/texlive/2014/texmf-dist/tex/latex/euenc/eu1lmss.fd)) (/usr/local/texlive/2014/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/local/texlive/2014/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/local/texlive/2014/texmf-dist/tex/latex/graphics/graphics.sty (/usr/local/texlive/2014/texmf-dist/tex/latex/graphics/trig.sty) (/usr/local/texlive/2014/texmf-dist/tex/latex/latexconfig/graphics.cfg) (/usr/local/texlive/2014/texmf-dist/tex/xelatex/xetex-def/xetex.def)))) (/usr/local/texlive/2014/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (/usr/local/texlive/2014/texmf-dist/tex/latex/kantlipsum/kantlipsum.sty) (/usr/local/texlive/2014/texmf-dist/tex/latex/base/makeidx.sty) Writing index file main.idx (./main.aux) (/usr/local/texlive/2014/texmf-dist/tex/latex/tipa/t3cmr.fd) [1] [2] (./main.toc) [3] [4] Chapter 1. (/usr/local/texlive/2014/texmf-dist/tex/latex/euenc/eu1lmtt.fd) LaTeX Warning: Citation `texbook' on page 5 undefined on input line 20. LaTeX Warning: Citation `gracom' on page 5 undefined on input line 23. [5] (./main.bbl [6]) (./main.ind [7] [8]) (./main.aux) LaTeX Warning: There were undefined references. LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right. ) Output written on main.pdf (8 pages). Transcript written on main.log. + move_to_dest main.dvi + return + xref_files_changed + grep Rerun to get main.log LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right. + return 0 + : + test 2 -eq 7 + expr 2 + 1 + cycle=3 + verbose Cycle 3 for ./main.tex + true + echo /home/wybo/bin/texi2dvi: Cycle 3 for ./main.tex /home/wybo/bin/texi2dvi: Cycle 3 for ./main.tex + xref_files_save + generated_files_get main xref_file_p + local filter=true + test -n xref_file_p + filter=xref_file_p + test -f main.log+ read file sed -n -e s,^\\openout.* = `\(.*\)'\.,\1,p main.log+ read file + sort + uniq + echo main.idx + aux_file_p main.idx + xref_file_p main.idx test -f main.idx+ test+ returnidx main log + read file + echo main.aux + aux_file_p main.aux + test -f main.aux + return 0 + sed 1q main.idx + echo main.aux + sed s/^\(.*\)\.aux$/\1.bbl/ + return 0 + echo main.idx + read file + xref_file_p main.aux + test -f main.aux + sed 1q main.aux + echo main.aux + sed s/^\(.*\)\.aux$/\1.blg/ + return 0 + echo main.aux + read file + xref_file_p main.bbl + test -f main.bbl + sed 1q main.bbl + echo main.aux + sed s/^\(.*\)\.aux$/\1.fls/ + return 0 + echo main.bbl + read file + xref_file_p main.blg + test -f main.blg + sed 1q main.blg + read file + echo main.toc + aux_file_p main.toc + test -f main.toc + return 1 + read file + echo main.log + aux_file_p main.log + test -f main.log + return 1 + read file + return 1 + read file + xref_file_p main.fls + test -f main.fls + return 1 + read file + xref_file_p main.toc + test -f main.toc + sed 1q main.toc + return 0 + echo main.toc + read file + xref_file_p main.log + test -f main.log + sed 1q main.log + return 1 + read file + xref_files_orig=main.aux main.bbl main.idx main.toc + test -n main.aux main.bbl main.idx main.toc + verbose Backing up xref files: main.aux main.bbl main.idx main.toc + true + echo /home/wybo/bin/texi2dvi: Backing up xref files: main.aux main.bbl main.idx main.toc /home/wybo/bin/texi2dvi: Backing up xref files: main.aux main.bbl main.idx main.toc + TAR_OPTIONS= + export TAR_OPTIONS + tar cf - main.aux main.bbl main.idx main.toc + cd /home/wybo/hg/Bash/mk/test/main.t2d/dvi/bak + tar xf - + run_bibtex + bibtex=bibtex + test -r main.aux + test -r main.log + grep Warning:.*Citation.*undefined main.log LaTeX Warning: Citation `texbook' on page 5 undefined on input line 20. LaTeX Warning: Citation `gracom' on page 5 undefined on input line 23. + generated_files_get main bibaux_file_p + local filter=true + test -n bibaux_file_p + filter=bibaux_file_p + test -f main.log read file + sed -n+ s,^\\openout.* = `\(.*\)'\.,\1,p main.log read file + sort + uniq + echo main.idx + aux_file_p main.idx + bibaux_file_p+ ain.idx test -f main.idx + retu - 1 ain.idx + read file + echo main.aux + aux_file_p main.aux + test -f main.aux + return 0 + grep ^\\bibstyle[{] main.idx echo main.aux + sed s/^\(.*\)\.aux$/\1.bbl/ + return 1 + read file + bibaux_file_p main.aux + test -s main.aux + echo main.aux + sed s/^\(.*\)\.aux$/\1.blg/ + grep ^\\bibstyle[{] main.aux \bibstyle{plain} + grepecho main.aux + sed s/^\(.*\)\.aux$/\1.fls/ \bibdata{example} + return 0 + echo main.aux + + ad file file + + bibaux_fi main.bbl + test -s main.bbl + test -f main.toc + return 1 + read file + echo main.log + aux_file_p main.log + test -f main.log + return 1 + read file + grep ^\\bibstyle[{] main.bbl + return 1 + read file + bibaux_file_p main.blg + test -s main.blg + grep ^\\bibstyle[{] main.blg + return 1 + read file + bibaux_file_p main.fls + test -s main.fls + return 1 + read file + bibaux_file_p main.toc + test -s main.toc + grep ^\\bibstyle[{] main.toc + return 1 + read file + bibaux_file_p main.log + test -s main.log + grep ^\\bibstyle[{] main.log + return 1 + read file + bibtex_aux=main.aux + run bibtex main.aux + verbose Running bibtex main.aux + true + echo /home/wybo/bin/texi2dvi: Running bibtex main.aux /home/wybo/bin/texi2dvi: Running bibtex main.aux + bibtex main.aux This is BibTeX, Version 0.99d (TeX Live 2014) The top-level auxiliary file: main.aux The style file: plain.bst Database file #1: example.bib + test -r main.bcf + run_index + local index_files + generated_files_get main index_file_p + local filter=true + test -n index_file_p + filter=index_file_p + test -f main.log + sed -n -e s,^\\openout.* = `\(.*\)'\.,\1,p main.log + read file + read file + sort + uniq + echo main.idx + aux_file_p main.idx + index_file_p ma main. + return 1 -f main.idx read file + echo main.aux + aux_file_p main.aux + test -f main.aux + return 0 + echo main.log out_lang_tex + echo dvi + echo main.aux + sed s/^\(.*\)\.aux$/\1.bbl/ + sed 1q main.idx + return 0 + echo main.idx + read file + index_file_p main.aux + test -f main.aux + out_lang_tex + echo dvi + echo main.aux + sed s/^\(.*\)\.aux$/\1.blg/ + sed 1q main.aux + return 1 + read file + index_file_p main.bbl + test -f main.bbl + echo main.aux+ sed s/^\(.*\)\.aux$/\1.fls/ + out_lang_tex + echo dvi + sed 1q main.bbl + read file + echo main.toc + aux_file_p main.toc + test -f main.toc + return 1 + read file + echo main.log + aux_file_p main.log + test -f main.log + return 1 + read file + return 1 + read file + index_file_p main.blg + test -f main.blg + out_lang_tex + echo dvi + sed 1q main.blg + return 1 + read file + index_file_p main.fls + test -f main.fls + return 1 + read file + index_file_p main.toc + test -f main.toc + out_lang_tex + echo dvi + sed 1q main.toc + return 1 + read file + index_file_p main.log + test -f main.log + out_lang_tex + echo dvi + sed 1q main.log + return 1 + read file + index_files=main.idx + test -n main.idx + : makeindex + : texindex + : texindy + local index_file + local index_noext + out_lang_tex + echo dvi + texindy --version xindy release: 2.5.0 texindy script version: 1.13 xindy script version: 1.18 xindy kernel version: 3.0 CLISP version 2.49 (2010-07-07) (built on pcl321.mppmu.mpg.de [134.107.3.54]) architecture: X86_64 + run texindy main.idx + verbose Running texindy main.idx + true + echo /home/wybo/bin/texi2dvi: Running texindy main.idx /home/wybo/bin/texi2dvi: Running texindy main.idx + texindy main.idx Opening logfile "/dev/null" (done) Reading indexstyle... Loading module "/tmp/MrYbsflKXU"... Loading module "lang/general/latin9-lang.xdy"... Loading module "lang/general/latin9.xdy"... Finished loading module "lang/general/latin9.xdy". Finished loading module "lang/general/latin9-lang.xdy". Loading module "tex/inputenc/latin.xdy"... Finished loading module "tex/inputenc/latin.xdy". Loading module "texindy.xdy"... Loading module "numeric-sort.xdy"... Finished loading module "numeric-sort.xdy". Loading module "latex.xdy"... Loading module "tex.xdy"... Finished loading module "tex.xdy". Finished loading module "latex.xdy". Loading module "latex-loc-fmts.xdy"... Finished loading module "latex-loc-fmts.xdy". Loading module "makeindex.xdy"... Finished loading module "makeindex.xdy". Loading module "latin-lettergroups.xdy"... Finished loading module "latin-lettergroups.xdy". Finished loading module "texindy.xdy". Loading module "page-ranges.xdy"... Finished loading module "page-ranges.xdy". Loading module "word-order.xdy"... Finished loading module "word-order.xdy". Finished loading module "/tmp/MrYbsflKXU". Finished reading indexstyle. Finalizing indexstyle... (done) Reading raw-index "/tmp/_2bCTAhoKH"... Finished reading raw-index. Processing index... [10%] [20%] [30%] [40%] [50%] [60%] [70%] [80%] [90%] [100%] Finished processing index. Writing markup... [10%] [20%] [30%] [40%] [50%] [60%] [70%] [80%] [90%] [100%] Markup written into file "./main.ind". + run_core_conversion + out_lang_tex + echo dvi + run_tex + out_lang_tex + echo dvi + tex=xelatex + test xlatex = xtexinfo + catcode_special=false + local cmd=xelatex + true + test set != set + cmd=xelatex --file-line-error + test -n + test -n + test -n + false + false + cmd=xelatex --file-line-error '\input' + func_dirname ./main.tex + dirname ./main.tex + cmd=xelatex --file-line-error '\input' './main.tex' + verbose /home/wybo/bin/texi2dvi: Running xelatex --file-line-error '\input' './main.tex' ... + true + echo /home/wybo/bin/texi2dvi: /home/wybo/bin/texi2dvi: Running xelatex --file-line-error '\input' './main.tex' ... /home/wybo/bin/texi2dvi: /home/wybo/bin/texi2dvi: Running xelatex --file-line-error '\input' './main.tex' ... + eval xelatex --file-line-error '\input' './main.tex' + xelatex --file-line-error \input ./main.tex This is XeTeX, Version 3.14159265-2.6-0.99991 (TeX Live 2014) (preloaded format=xelatex) restricted \write18 enabled. entering extended mode LaTeX2e <2014/05/01> Babel <3.9k> and hyphenation patterns for 79 languages loaded. (./main.tex (/usr/local/texlive/2014/texmf-dist/tex/latex/base/book.cls Document Class: book 2007/10/19 v1.4h Standard LaTeX document class (/usr/local/texlive/2014/texmf-dist/tex/latex/base/bk11.clo)) (/usr/local/texlive/2014/texmf-dist/tex/latex/fontspec/fontspec.sty (/usr/local/texlive/2014/texmf-dist/tex/latex/l3kernel/expl3.sty (/usr/local/texlive/2014/texmf-dist/tex/latex/l3kernel/expl3-code.tex (/usr/local/texlive/2014/texmf-dist/tex/latex/etex-pkg/etex.sty)) (/usr/local/texlive/2014/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def)) (/usr/local/texlive/2014/texmf-dist/tex/latex/l3packages/xparse/xparse.sty) (/usr/local/texlive/2014/texmf-dist/tex/latex/fontspec/fontspec-patches.sty ************************************************* * LaTeX warning: "xparse/redefine-command" * * Redefining document command \oldstylenums with arg. spec. 'm' on line 144. ************************************************* ) (/usr/local/texlive/2014/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty (/usr/local/texlive/2014/texmf-dist/tex/latex/base/fontenc.sty (/usr/local/texlive/2014/texmf-dist/tex/latex/euenc/eu1enc.def) (/usr/local/texlive/2014/texmf-dist/tex/latex/euenc/eu1lmr.fd)) (/usr/local/texlive/2014/texmf-dist/tex/xelatex/xunicode/xunicode.sty (/usr/local/texlive/2014/texmf-dist/tex/latex/tipa/t3enc.def (/usr/local/texlive/2014/texmf-dist/tex/latex/euenc/eu1lmss.fd)) (/usr/local/texlive/2014/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/local/texlive/2014/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/local/texlive/2014/texmf-dist/tex/latex/graphics/graphics.sty (/usr/local/texlive/2014/texmf-dist/tex/latex/graphics/trig.sty) (/usr/local/texlive/2014/texmf-dist/tex/latex/latexconfig/graphics.cfg) (/usr/local/texlive/2014/texmf-dist/tex/xelatex/xetex-def/xetex.def)))) (/usr/local/texlive/2014/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (/usr/local/texlive/2014/texmf-dist/tex/latex/kantlipsum/kantlipsum.sty) (/usr/local/texlive/2014/texmf-dist/tex/latex/base/makeidx.sty) Writing index file main.idx (./main.aux) (/usr/local/texlive/2014/texmf-dist/tex/latex/tipa/t3cmr.fd) [1] [2] (./main.toc) [3] [4] Chapter 1. (/usr/local/texlive/2014/texmf-dist/tex/latex/euenc/eu1lmtt.fd) [5] (./main.bbl [6]) (./main.ind [7] [8]) (./main.aux) ) Output written on main.pdf (8 pages). Transcript written on main.log. + move_to_dest main.dvi + return + xref_files_changed + grep Rerun to get main.log + grep biblatex.*(re)run main.log + generated_files_get main xref_file_p + local filter=true + test -n xref_file_p + filter=xref_file_p + test -f main.log + + sed -n file s,^\\openout.* = `\(.*\)'\.,\1,p main.log + read file + uniq + sort + echo main.idx + aux_file_p main.idx + test -f main.idx + xref_f 1 main.log + read file + + -fo main.aux + aux_file_p main.aux + test -f main.aux + return 0 + echosed 1q main.idx + sed s/^\(.*\)\.aux$/\1.bbl/ + return 0 + echo main.idx + read file + xref_file_p main.aux + test -f main.aux + echo main.aux + + sed 1q^\(.*\)\.aux$/\1.blg/ main.aux + return 0 + echo main.aux + read file + xref_file_p main.bbl + test -f main.bbl + echo main.aux + sed s/^\(.*\)\.aux$/\1.fls/ + sed 1q main.bbl + return 0 + echo main bbl + read main.toc file + aux_file_p main.toc+ + test -f main.toc test -f+ return 1 + read file + echo main.log + aux_file_p main.log + test -f main.log + return 1 + read file + sed 1q main.blg + return 1 + read file + xref_file_p main.fls + test -f main.fls + return 1 + read file + xref_file_p main.toc + test -f main.toc + sed 1q main.toc + return 0 + echo main.toc + read file + xref_file_p main.log + test -f main.log + sed 1q main.log + return 1 + read file + xref_files_new=main.aux main.bbl main.idx main.toc + verbose Original xref files = main.aux main.bbl main.idx main.toc + true + echo /home/wybo/bin/texi2dvi: Original xref files = main.aux main.bbl main.idx main.toc /home/wybo/bin/texi2dvi: Original xref files = main.aux main.bbl main.idx main.toc + verbose New xref files = main.aux main.bbl main.idx main.toc + true + echo /home/wybo/bin/texi2dvi: New xref files = main.aux main.bbl main.idx main.toc /home/wybo/bin/texi2dvi: New xref files = main.aux main.bbl main.idx main.toc + test xmain.aux main.bbl main.idx main.toc != xmain.aux main.bbl main.idx main.toc + echo main.aux + sed s|\./||g + verbose Comparing xref file main.aux ... + true + echo /home/wybo/bin/texi2dvi: Comparing xref file main.aux ... /home/wybo/bin/texi2dvi: Comparing xref file main.aux ... + cmp -s main.aux /home/wybo/hg/Bash/mk/test/main.t2d/dvi/bak/main.aux + : + echo main.bbl + sed s|\./||g + verbose Comparing xref file main.bbl ... + true + echo /home/wybo/bin/texi2dvi: Comparing xref file main.bbl ... /home/wybo/bin/texi2dvi: Comparing xref file main.bbl ... + cmp -s main.bbl /home/wybo/hg/Bash/mk/test/main.t2d/dvi/bak/main.bbl + : + echo main.idx + sed s|\./||g + verbose Comparing xref file main.idx ... + true + echo /home/wybo/bin/texi2dvi: Comparing xref file main.idx ... /home/wybo/bin/texi2dvi: Comparing xref file main.idx ... + cmp -s main.idx /home/wybo/hg/Bash/mk/test/main.t2d/dvi/bak/main.idx + : + echo main.toc + sed s|\./||g + verbose Comparing xref file main.toc ... + true + echo /home/wybo/bin/texi2dvi: Comparing xref file main.toc ... /home/wybo/bin/texi2dvi: Comparing xref file main.toc ... + cmp -s main.toc /home/wybo/hg/Bash/mk/test/main.t2d/dvi/bak/main.toc + : + return 1 + break + run_thumbpdf + out_lang_tex + echo dvi + test dvi = pdf + run_tex4ht + out_lang_tex + echo dvi + cd_orig + cd / + cd /home/wybo/hg/Bash/mk/test + cleanup + cd_orig + cd / + cd /home/wybo/hg/Bash/mk/test + remove /home/wybo/hg/Bash/mk/test/main.t2d + verbose Removing /home/wybo/hg/Bash/mk/test/main.t2d + true + echo /home/wybo/bin/texi2dvi: Removing /home/wybo/hg/Bash/mk/test/main.t2d /home/wybo/bin/texi2dvi: Removing /home/wybo/hg/Bash/mk/test/main.t2d + rm -rf /home/wybo/hg/Bash/mk/test/main.t2d verbose "done." + verbose done. + true + echo /home/wybo/bin/texi2dvi: done. /home/wybo/bin/texi2dvi: done. exit 0 # exit successfully, not however we ended the loop. + exit 0 + cleanup + cd_orig + cd / + cd /home/wybo/hg/Bash/mk/test + remove /home/wybo/hg/Bash/mk/test/main.t2d + verbose Removing /home/wybo/hg/Bash/mk/test/main.t2d + true + echo /home/wybo/bin/texi2dvi: Removing /home/wybo/hg/Bash/mk/test/main.t2d /home/wybo/bin/texi2dvi: Removing /home/wybo/hg/Bash/mk/test/main.t2d + rm -rf /home/wybo/hg/Bash/mk/test/main.t2d