>>>> "Hrv" == Hrvoje Niksic
<hniksic(a)iskon.hr> writes:
Hrv> I've noticed this difference between the repository version of
Hrv> byte-compiler-tests and my own:
Hrv> I'm sure I didn't write the additional code -- I patched it from a
Hrv> message on xemacs-beta, which might have come from Jan. Does anyone
Hrv> remember what these tests were supposed to do, and why they weren't
Hrv> applied?
They're not from me.
Here's a little perl that shows you which files in your workspace are
modified:
: #-*- Perl -*-
eval 'exec perl -w -S $0 ${1+"$@"}' # Portability kludge
if 0; # Author: Martin Buchholz
# This program is in the public domain
use strict;
use File::stat;
(my $myName = $0) =~ s@.*/@@; my $usage="
Usage: $myName [-v]
Finds all modified CVS files within the current directory tree.
";
my $verbose = 0;
for (@ARGV) {
my $arg = pop @ARGV;
if ($arg eq "-v") { $verbose = 1; }
else { die $usage; }
}
die "Not a CVS directory tree.\n" unless -d "CVS";
open(FIND, "find . -type d -print |") or die "$!";
while (<FIND>) {
chomp (my $dir = $_);
my $entries = "$dir/CVS/Entries";
next unless -r "$entries";
open (ENTRIES, "$entries") or die "$!";
while (<ENTRIES>) {
next unless m:^/:;
my ($name, $revision, $timestamp) = (split('/'))[1,2,3];
my $file = "$dir/$name";
$file =~ s:^\./::;
if (! -e $file) {
print "Removed: " if $verbose;
print "$file\n";
} else {
my $file_timestamp = scalar gmtime (stat($file)->mtime);
next if $timestamp eq $file_timestamp; # Unchanged
print "Modified: " if $verbose;
print "$file\n";
}
}
}