-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmake-diffs-2.3.sh
executable file
·292 lines (271 loc) · 6.41 KB
/
make-diffs-2.3.sh
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
#!/bin/sh
# now do 2.3
diffseries()
{
for i in $(seq $1 $2)
do
if [ ! -d linux-2.3.$(($i-1)) ]; then
echo eek! no linux-2.3.$(($i-1))
exit
fi
if [ ! -d linux-2.3.$i ]; then
echo eek! no linux-2.3.$i
exit
fi
echo diffing 2.3.$i
#echo cmd: diff -urN linux-2.3.$(($i-1)) linux-2.3.$i \>linux-2.3.$i.diff
diff -urN linux-2.3.$(($i-1)) linux-2.3.$i >linux-2.3.$i.diff
done
}
onepre()
{
if [ ! -d linux-2.3.$(($1-1)) ]; then
echo eek! no linux-2.3.$(($1-1))
exit
fi
if [ ! -d linux-2.3.$1pre1 ]; then
echo eek! no linux-2.3.$1
exit
fi
echo diffing 2.3.$1pre1
diff -urN linux-2.3.$(($1-1)) linux-2.3.$1pre1 >linux-2.3.$1pre1.diff
echo diffing 2.3.$1
diff -urN linux-2.3.$1pre1 linux-2.3.$1 >linux-2.3.$1.diff
}
preseries()
{
if [ ! -d linux-2.3.$(($1-1)) ]; then
echo eek! no linux-2.3.$(($1-1))
exit
fi
if [ ! -d linux-2.3.$1 ]; then
echo eek! no linux-2.3.$1
exit
fi
echo diffing 2.3.$1pre1
diff -urN linux-2.3.$(($1-1)) linux-2.3.$1pre1 >linux-2.3.$1pre1.diff
for i in $(seq 2 $2)
do
echo diffing 2.3.$1pre$i
diff -urN linux-2.3.$1pre$(($i-1)) linux-2.3.$1pre$i >linux-2.3.$1pre$i.diff
done
}
finaldiff()
{
echo diffing 2.3.$1
diff -urN linux-2.3.$1pre$2 linux-2.3.$1 >linux-2.3.$1.diff
}
echo diffing 2.3.0
diff -urN linux-2.2.8 linux-2.3.0 >linux-2.3.0.diff
preseries 1 4
finaldiff 1 4
diffseries 2 3
preseries 4 3
finaldiff 4 3
diffseries 5 5
preseries 6 2
finaldiff 6 2
preseries 7 9
finaldiff 7 9
preseries 8 3
finaldiff 8 3
preseries 9 5
echo diffing 2.3.9pre7
diff -urN linux-2.3.9pre5 linux-2.3.9pre7 >linux-2.3.9pre7.diff
echo diffing 2.3.9pre8
diff -urN linux-2.3.9pre7 linux-2.3.9pre8 >linux-2.3.9pre8.diff
finaldiff 9 8
preseries 10 5
finaldiff 10 5
preseries 11 1
echo diffing 2.3.11pre3
diff -urN linux-2.3.11pre1 linux-2.3.11pre3 >linux-2.3.11pre3.diff
for i in $(seq 4 8)
do
echo diffing 2.3.11pre$i
diff -urN linux-2.3.11pre$(($i-1)) linux-2.3.11pre$i >linux-2.3.11pre$i.diff
done
finaldiff 11 8
preseries 12 9
finaldiff 12 9
preseries 13 8
finaldiff 13 8
preseries 14 2
finaldiff 14 2
preseries 15 3
finaldiff 15 3
onepre 16
onepre 17
preseries 18 2
finaldiff 18 2
preseries 19 2
finaldiff 19 2
preseries 20 2
finaldiff 20 2
onepre 21
preseries 22 3
finaldiff 22 3
preseries 23 6
finaldiff 23 6
preseries 24 3
finaldiff 24 3
preseries 25 3
finaldiff 25 3
preseries 26 3
finaldiff 26 3
preseries 27 6
finaldiff 27 6
diffseries 28 28
preseries 29 3
finaldiff 29 3
preseries 30 7
finaldiff 30 7
onepre 31
preseries 32 4
finaldiff 32 4
diffseries 33 33
preseries 34 3
finaldiff 34 3
preseries 35 4
echo diffing 2.3.35pre6
diff -urN linux-2.3.35pre4 linux-2.3.35pre6 >linux-2.3.35pre6.diff
finaldiff 35 6
preseries 36 3
echo diffing 2.3.36pre5
diff -urN linux-2.3.36pre3 linux-2.3.36pre5 >linux-2.3.36pre5.diff
echo diffing 2.3.36pre6
diff -urN linux-2.3.36pre5 linux-2.3.36pre6 >linux-2.3.36pre6.diff
finaldiff 36 6
diffseries 37 37
onepre 38
preseries 39 2
finaldiff 39 2
preseries 40 6
finaldiff 40 6
preseries 41 4
finaldiff 41 4
onepre 42
preseries 43 8
finaldiff 43 8
preseries 44 10
finaldiff 44 10
preseries 45 2
finaldiff 45 2
preseries 46 5
finaldiff 46 5
preseries 47 8
finaldiff 47 8
preseries 48 4
finaldiff 48 4
preseries 49 2
finaldiff 49 2
preseries 50 3
finaldiff 50 3
preseries 51 3
finaldiff 51 3
echo diffing 2.3.52pre1
diff -urN linux-2.3.51 linux-2.3.52pre1 >linux-2.3.52pre1.diff
echo diffing 2.3.52pre2
diff -urN linux-2.3.52pre1 linux-2.3.52pre2 >linux-2.3.52pre2.diff
echo diffing 2.3.52pre3
diff -urN linux-2.3.52pre2 linux-2.3.52pre3 >linux-2.3.52pre3.diff
echo diffing 2.3.99-pre1
diff -urN linux-2.3.52pre3 linux-2.3.99-pre1 >linux-2.3.99pre1.diff
pre99series()
{
if [ ! -d linux-2.3.99-pre$(($1-1)) ]; then
echo eek! no linux-2.3.99-pre$(($1-1))
exit
fi
if [ ! -d linux-2.3.99-pre$1-1 ]; then
echo eek! no linux-2.3.99-pre$1-1
exit
fi
echo diffing 2.3.99-pre$1-1
diff -urN linux-2.3.99-pre$(($1-1)) linux-2.3.99-pre$1-1 >linux-2.3.99pre$1-1.diff
for i in $(seq 2 $2)
do
if [ ! -d linux-2.3.99-pre$1-$(($i-1)) ]; then
echo eek! no linux-2.3.99-pre$1-$(($i-1))
exit
fi
if [ ! -d linux-2.3.99-pre$1-$i ]; then
echo eek! no linux-2.3.99-pre$1-$i
exit
fi
echo diffing 2.3.99-pre$1-$i
diff -urN linux-2.3.99-pre$1-$(($i-1)) linux-2.3.99-pre$1-$i >linux-2.3.99pre$1-$i.diff
done
if [ ! -d linux-2.3.99-pre$1 ]; then
echo eek! no linux-2.3.99-pre$1
exit
fi
echo diffing 2.3.99-pre$1
diff -urN linux-2.3.99-pre$1-$i linux-2.3.99-pre$1 >linux-2.3.99pre$1.diff
}
pre99series 2 5
pre99series 3 8
pre99series 4 5
echo diffing 2.3.99-pre5
diff -urN linux-2.3.99-pre4 linux-2.3.99-pre5 >linux-2.3.99pre5.diff
pre99series 6 7
pre99series 7 9
echo diffing 2.3.99-pre8
diff -urN linux-2.3.99-pre7 linux-2.3.99-pre8 >linux-2.3.99pre8.diff
pre99series 9 5
echo diffing 2.3.99-pre10-1
diff -urN linux-2.3.99-pre9 linux-2.3.99-pre10-1 >linux-2.3.99pre10-1.diff
echo diffing 2.3.99-pre10-2
diff -urN linux-2.3.99-pre10-1 linux-2.3.99-pre10-2 >linux-2.3.99pre10-2.diff
echo diffing 2.3.99-pre10-3
diff -urN linux-2.3.99-pre10-2 linux-2.3.99-pre10-3 >linux-2.3.99pre10-3.diff
echo diffing 2.4.0-test1
diff -urN linux-2.3.99-pre10-3 linux-2.4.0-test1 >linux-2.4.0-test1.diff
testseries()
{
if [ ! -d linux-2.4.0-test$1 ]; then
echo eek! no linux-2.4.0-test$1
exit
fi
if [ ! -d linux-2.4.0-test$1pre1 ]; then
echo eek! no linux-2.4.0-test$1pre1
exit
fi
echo diffing 2.4.0-test$1-1
diff -urN linux-2.4.0-test$(($1-1)) linux-2.4.0-test$1pre1 >linux-2.4.0-test$1pre1.diff
for i in $(seq 2 $2)
do
if [ ! -d linux-2.4.0-test$1pre$(($i-1)) ]; then
echo eek! no linux-2.4.0-test$1pre$(($i-1))
exit
fi
if [ ! -d linux-2.4.0-test$1pre$i ]; then
echo eek! no linux-2.4.0-test$1pre$i
exit
fi
echo diffing 2.4.0-test$1-$i
diff -urN linux-2.4.0-test$1pre$(($i-1)) linux-2.4.0-test$1pre$i >linux-2.4.0-test$1pre$i.diff
done
echo diffing 2.4.0-test$1
diff -urN linux-2.4.0-test$1pre$i linux-2.4.0-test$1 >linux-2.4.0-test$1.diff
}
testseries 2 12
testseries 3 9
testseries 4 6
testseries 5 6
testseries 6 10
testseries 7 7
testseries 8 6
testseries 9 9
testseries 10 7
testseries 11 7
testseries 12 8
echo diffing 2.4.0-test13pre1
diff -urN linux-2.4.0-test12 linux-2.4.0-test13pre1 >linux-2.4.0-test13pre1.diff
for i in $(seq 2 7)
do
echo diffing 2.4.0-test13-$i
diff -urN linux-2.4.0-test13pre$(($i-1)) linux-2.4.0-test13pre$i >linux-2.4.0-test13pre$i.diff
done
echo diffing 2.4.0-prerelease
diff -urN linux-2.4.0-test13pre7 linux-2.4.0-prerelease >linux-2.4.0-prerelease.diff