blob: 4c0e37a44f0461be4647d554d5bc02dc7f1d031a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
|
!/usr/bin/perl
use File::Basename;
sub usage()
{
print "Usage:\n";
print " $0 [ <filename > | <filename> <rev> | \n" .
" M +<digits> -<digits> <filename <rev> ]\n";
print "\n";
exit 5;
}
my $filename;
my $argc = scalar @ARGV;
if ($argc > 0 and $argc < 3 ) {
$filename = $ARGV[0];
$cvsversion= dirname($0) . "/cvsversion";
$version=`$cvsversion $filename`;
chomp $version;
$version=$ARGV[1] if ($argc > 1 and $ARGV[1] =~ /^[\d\.]{3,}$/);
} elsif ($argc == 5) {
$filename=$ARGV[3] if (-f $ARGV[3]);
$version=$ARGV[4] if ($ARGV[4] =~ /^[\d\.]{3,}$/);
} else {
&usage();
}
die "$0: filename expected" if(!length($filename));
die "$filename: $!\n" if (! -f $filename);
my $vold = $version;
my $vnew = $version;
if ($version=~/^.*\.1$/) {
$vold = $1 if ($version=~/^(\d+\.\d+(?:\.\d+\.\d+)*)\.\d+\.1$/);
}
else {
if ($version=~/^(.*)\.([^.]*)$/) { $v1 = $1; $v2 = $2 }
$v2old = ${v2}-1;
$vold = $v1 . '.' . $v2old;
}
my $base = basename($filename);
my $dir = dirname($filename);
my $cmd = "cd $dir; cvs -f log -N -r$vnew $base";
print "$cmd\n";
system("$cmd");
my $whitespace = "";
$whitespace = "-b" unless (defined $ENV{"CVSLASTCHANGE_KEEP_WHITESPACE"});
$cmd = "cd $dir; cvs -f diff -kk $whitespace -p -u -r$vold -r$vnew $base";
print "$cmd\n";
!/usr/bin/perl
use File::Basename;
sub usage()
{
print "Usage:\n";
print " $0 [ <filename > | <filename> <rev> | \n" .
" M +<digits> -<digits> <filename <rev> ]\n";
print "\n";
exit 5;
}
my $filename;
my $argc = scalar @ARGV;
if ($argc > 0 and $argc < 3 ) {
$filename = $ARGV[0];
$cvsversion= dirname($0) . "/cvsversion";
$version=`$cvsversion $filename`;
chomp $version;
$version=$ARGV[1] if ($argc > 1 and $ARGV[1] =~ /^[\d\.]{3,}$/);
} elsif ($argc == 5) {
$filename=$ARGV[3] if (-f $ARGV[3]);
$version=$ARGV[4] if ($ARGV[4] =~ /^[\d\.]{3,}$/);
} else {
&usage();
}
die "$0: filename expected" if(!length($filename));
die "$filename: $!\n" if (! -f $filename);
my $vold = $version;
my $vnew = $version;
if ($version=~/^.*\.1$/) {
$vold = $1 if ($version=~/^(\d+\.\d+(?:\.\d+\.\d+)*)\.\d+\.1$/);
}
else {
if ($version=~/^(.*)\.([^.]*)$/) { $v1 = $1; $v2 = $2 }
$v2old = ${v2}-1;
$vold = $v1 . '.' . $v2old;
}
my $base = basename($filename);
my $dir = dirname($filename);
my $cmd = "cd $dir; cvs -f log -N -r$vnew $base";
print "$cmd\n";
system("$cmd");
my $whitespace = "";
$whitespace = "-b" unless (defined $ENV{"CVSLASTCHANGE_KEEP_WHITESPACE"});
$cmd = "cd $dir; cvs -f diff -kk $whitespace -p -u -r$vold -r$vnew $base";
print "$cmd\n";
sy
!/usr/bin/perl
use File::Basename;
sub usage()
{
print "Usage:\n";
print " $0 [ <filename > | <filename> <rev> | \n" .
" M +<digits> -<digits> <filename <rev> ]\n";
print "\n";
exit 5;
}
my $filename;
my $argc = scalar @ARGV;
if ($argc > 0 and $argc < 3 ) {
$filename = $ARGV[0];
$cvsversion= dirname($0) . "/cvsversion";
$version=`$cvsversion $filename`;
chomp $version;
$version=$ARGV[1] if ($argc > 1 and $ARGV[1] =~ /^[\d\.]{3,}$/);
} elsif ($argc == 5) {
$filename=$ARGV[3] if (-f $ARGV[3]);
$version=$ARGV[4] if ($ARGV[4] =~ /^[\d\.]{3,}$/);
} else {
&usage();
}
die "$0: filename expected" if(!length($filename));
die "$filename: $!\n" if (! -f $filename);
my $vold = $version;
my $vnew = $version;
if ($version=~/^.*\.1$/) {
$vold = $1 if ($version=~/^(\d+\.\d+(?:\.\d+\.\d+)*)\.\d+\.1$/);
}
else {
if ($version=~/^(.*)\.([^.]*)$/) { $v1 = $1; $v2 = $2 }
$v2old = ${v2}-1;
$vold = $v1 . '.' . $v2old;
}
my $base = basename($filename);
my $dir = dirname($filename);
my $cmd = "cd $dir; cvs -f log -N -r$vnew $base";
print "$cmd\n";
system("$cmd");
my $whitespace = "";
$whitespace = "-b" unless (defined $ENV{"CVSLASTCHANGE_KEEP_WHITESPACE"});
$cmd = "cd $dir; cvs -f diff -kk $whitespace -p -u -r$vold -r$vnew $base";
print "$cmd\n";
system("$cmd");
|