EditedFiles revision 7c478bd95313f5f23a4c958a745db2134aa03244
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
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "%Z%%M% %I% %E% SMI"
#
# This script takes a file mapping CSV file as input (see flist_5.8.4_on10.csv
# for an example), a perl build directory and a ON workspace and reports files
# that are different in the build and ON directories. This show up any manual
# edits that have been made during the integration process, useful for
# identifying files that need to be preserved during future reintegrations.
# Run with the '-d' option to produce a diff file suitable for applying with
# gpatch.
use strict;
use warnings;
#
# Compare two files, return 0 for different, 1 for the same.
#
sub file_cmp
{
# Quick check - they must exist and be the same size.
# Open the files.
# Compare.
while (1) {
$len1 = -1;
$len2 = -2;
last;
}
}
}
#
# Main.
#
# Basic sanity checks.
# Work out perl version.
my ($r, $v, $s);
}
# Work out directory locations.
# Read in the mapping file.
my %file;
;
}
my @field;
m{["']([^"'\\]*(?:\\.[^"'\\]*)*)["'],?|([^,]+),?|,}g;
push(@field, undef) if (substr($line, -1, 1) eq ',');
my $p = shift(@field);
my $f = shift(@field);
# We just want the s10 column.
}
close($fh);
# Process the mappings.
foreach my $p (sort(keys(%file))) {
foreach my $f (sort(keys(%{$file{$p}}))) {
my $d = $file{$p}{$f};
# If it has gone into the distrib directory.
if ($d eq 'distrib') {
# If it has gone into the arch directory.
} elsif ($d eq 'arch') {
# If it is to be copied forwards from the last version.
} elsif ($d eq 'fwd') {
}
# Short forms of the filenames.
if ($src) {
$ssrc =~ s{[^/]+/\.\./}{}g;
}
if ($dst) {
$sdst =~ s{[^/]+/\.\./}{}g;
}
# New files.
if (! $opt_d) {
}
# Modified files.
if ($opt_d) {
"-e 's!$dst!$sdst!g'");
} else {
}
}
}
}