sorted_index_files` for f in $xref_files_new $secondary_xref_files ; do if test -f "$rel$in_dir/$f" ; then remove $rel$in_dir/$f fi done fi } # xref_files_changed - Return success if the xref files have changed # since the previous run. xref_files_changed () { xref_files_new=`generated_files_get` # LaTeX (and the package changebar) report in the LOG file if it # should be rerun. This is needed for files included from # subdirs, since texi2dvi does not try to compare xref files in # subdirs. Performing xref files test is still good since LaTeX # does not report changes in xref files. if grep "Rerun to get" "$in_noext.log" >&6 2>&1; then return 0 fi # Similarly, check for biblatex report of whether rerunning is needed. if grep "biblatex.*(re)run" "$in_noext.log" >&6 2>&1; then return 0 fi # If old and new lists don't have the same file list, # then something has definitely changed. verbose "Original xref files = $xref_files_orig" verbose "New xref files = $xref_files_new" if test "x$xref_files_orig" != "x$xref_files_new"; then return 0 fi # Compare each file until we find a difference. for this_file in $xref_files_new; do verbose "Comparing xref file `echo $this_file | $SED 's|\./||g'` ..." # cmp -s returns nonzero exit status if files differ. if cmp -s "$this_file" "$rel$work_bak/$this_file"; then :; else verbose "xref file `echo $this_file | $SED 's|\./||g'` differed ..." if $debug; then diff -u "$rel$work_bak/$this_file" "$this_file" fi return 0 fi done secondary_xref_files=`sorted_index_files` verbose "Secondary xref files = $secondary_xref_files" for this_file in $secondary_xref_files; do if test -f $this_file; then :; else verbose "$this_file missing ..." return 0 fi done # No change. return 1 } #