summaryrefslogtreecommitdiff
path: root/Master/texmf
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2009-07-01 05:15:09 +0000
committerNorbert Preining <preining@logic.at>2009-07-01 05:15:09 +0000
commitae9ec747ab13e48ba02b4cc23893f0acdc430505 (patch)
tree64001286f666b001a696f5d58a0300d94a938665 /Master/texmf
parent6435f0b267d4bc786b93e0f180edc13b39d56781 (diff)
add tlcmp from tlpkg/bin/cmp_textfiles to TLUtils, use it instead of
the call to external diff in tlmgr check runfiles, do the runfile test if tlmgr check all is done git-svn-id: svn://tug.org/texlive/trunk@14045 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf')
-rwxr-xr-xMaster/texmf/scripts/texlive/tlmgr.pl9
1 files changed, 3 insertions, 6 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl
index 979ac2c373b..8f9b43358af 100755
--- a/Master/texmf/scripts/texlive/tlmgr.pl
+++ b/Master/texmf/scripts/texlive/tlmgr.pl
@@ -73,7 +73,7 @@ use TeXLive::TLPOBJ;
use TeXLive::TLUtils;
use TeXLive::TLWinGoo;
TeXLive::TLUtils->import(qw(member info give_ctan_mirror win32 dirname
- mkdirhier copy log debug));
+ mkdirhier copy log debug tlcmp));
use TeXLive::TLPaper;
@@ -2483,7 +2483,7 @@ sub action_check {
$ret ||= check_files($tltree);
$ret ||= check_depends();
$ret ||= check_executes();
- # we do NOT automatically run the runfiles check when called with "all"
+ $ret ||= check_runfiles();
} elsif ($what =~ m/^files/i) {
my $tltree = init_tltree($svn);
$ret ||= check_files($tltree);
@@ -2662,8 +2662,7 @@ sub check_runfiles {
# if all copies are identical, ok, else, complain
my $diff = 0;
for (my $i = 1; $i < scalar(@copies); $i++) {
- if ($diff = system ("diff -q --strip-trailing-cr "
- . "$Master/$copies[$i-1] $Master/$copies[$i] >/dev/null")) {
+ if ($diff = tlcmp("$Master/$copies[$i-1]", "$Master/$copies[$i]")) {
print "# $f\ndiff $Master/$copies[$i-1] $Master/$copies[$i]\n";
last;
}
@@ -3653,8 +3652,6 @@ Live Database are present.
=item B<runfiles>
List those filenames that are occurring more than one time in the runfiles.
-This test needs the C<diff> utility and so is not executed when C<check>
-is called without or with the C<all> argument.
=back