-
Notifications
You must be signed in to change notification settings - Fork 8
/
untar-2.0.sh
executable file
·177 lines (152 loc) · 3.25 KB
/
untar-2.0.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
#!/bin/bash
BRANCH=2.0
FROM=$(pwd)/binaries
if [ ! -d unpack ]; then
echo run from wrong dir.
exit
else
cd unpack
fi
untar()
{
echo Unpacking $1
tar zxf $FROM/$BRANCH/linux-$1.tar.gz
mv linux linux-$1
}
untar 2.0
for i in $(seq 1 30)
do
untar 2.0.$i
done
# 2.0.31pre
for i in $(seq 1 10)
do
echo Patching to 2.0.31pre$i
cp -rl linux-2.0.30 linux-2.0.31pre$i
cd linux-2.0.31pre$i
zcat $FROM/2.0/patch-2.0.31-pre$i.gz | patch -p1 -s
cd ..
done
untar 2.0.31
# 2.0.32pre
echo Patching to 2.0.32pre1
cp -rl linux-2.0.31 linux-2.0.32pre1
cd linux-2.0.32pre1
zcat $FROM/2.0/patch-2.0.32-pre1.gz | patch -p1 -s
cd ..
echo Patching to 2.0.32pre2
cp -rl linux-2.0.31 linux-2.0.32pre2
cd linux-2.0.32pre2
zcat $FROM/2.0/patch-2.0.32-pre2.gz | patch -p1 -s
cd ..
# MISSING: 2.0.32pre3 2.0.32pre4
echo Patching to 2.0.32pre5
cp -rl linux-2.0.31 linux-2.0.32pre5
cd linux-2.0.32pre5
zcat $FROM/2.0/patch-2.0.32-pre5.gz | patch -p1 -s
cd ..
echo Patching to 2.0.32pre6
cp -rl linux-2.0.31 linux-2.0.32pre6
cd linux-2.0.32pre6
zcat $FROM/2.0/patch-2.0.32-pre6.gz | patch -p1 -s
cd ..
untar 2.0.32
# 2.0.33
for i in $(seq 1 3)
do
echo Patching to 2.0.33pre$i
cp -rl linux-2.0.32 linux-2.0.33pre$i
cd linux-2.0.33pre$i
zcat $FROM/2.0/patch-2.0.33-pre$i.gz | patch -p1 -s
cd ..
done
untar 2.0.33
# 2.0.34
# MISSING: 2.0.34-pre1
echo Patching to 2.0.34pre2
cp -rl linux-2.0.33 linux-2.0.34pre2
cd linux-2.0.34pre2
zcat $FROM/2.0/patch-2.0.34-pre2.gz | patch -p1 -s
cd ..
echo Patching to 2.0.34pre3
cp -rl linux-2.0.33 linux-2.0.34pre3
cd linux-2.0.34pre3
zcat $FROM/2.0/patch-2.0.34-pre3.gz | patch -p1 -s
cd ..
# MISSING: pre12
# BROKEN: pre13 and 14 don't apply.
for i in $(seq 4 10) 11b $(seq 15 16)
do
echo Patching to 2.0.34pre$i
cp -rl linux-2.0.33 linux-2.0.34pre$i
cd linux-2.0.34pre$i
zcat $FROM/2.0/patch-2.0.34pre$i.gz | patch -p1 -s
cd ..
done
untar 2.0.34
# 2.0.35
for i in $(seq 1 9)
do
echo Patching to 2.0.35pre$i
cp -rl linux-2.0.34 linux-2.0.35pre$i
cd linux-2.0.35pre$i
zcat $FROM/2.0/2.0.35-pre-patch-$i.gz | patch -p1 -s
cd ..
done
untar 2.0.35
# 2.0.36
for i in $(seq 1 22)
do
echo Patching to 2.0.36pre$i
cp -rl linux-2.0.35 linux-2.0.36pre$i
cd linux-2.0.36pre$i
zcat $FROM/2.0/2.0.36-pre-patch-$i.gz | patch -p1 -s
cd ..
done
untar 2.0.36
# 2.0.37
for i in $(seq 1 12)
do
echo Patching to 2.0.37pre$i
cp -rl linux-2.0.36 linux-2.0.37pre$i
cd linux-2.0.37pre$i
zcat $FROM/2.0/patch-2.0.37-pre$i.gz | patch -p1 -s
cd ..
done
untar 2.0.37
# 2.0.38
echo Patching to 2.0.38pre1
cp -rl linux-2.0.37 linux-2.0.38pre1
cd linux-2.0.38pre1
zcat $FROM/2.0/patch-2.0.38-pre1.gz | patch -p1 -s
cd ..
untar 2.0.38
# 2.0.39
for i in $(seq 1 8)
do
echo Patching to 2.0.39pre$i
cp -rl linux-2.0.38 linux-2.0.39pre$i
cd linux-2.0.39pre$i
zcat $FROM/2.0/patch-2.0.39-pre$i.gz | patch -p1 -s
cd ..
done
untar 2.0.39
# 2.0.40
for i in $(seq 1 3)
do
echo Patching to 2.0.40pre$i
cp -rl linux-2.0.39 linux-2.0.40pre$i
cd linux-2.0.40pre$i
zcat $FROM/2.0/patch-2.0.40-pre$i.gz | patch -p1 -s
cd ..
done
for i in $(seq 1 8)
do
echo Patching to 2.0.40-rc$i
cp -rl linux-2.0.39 linux-2.0.40-rc$i
cd linux-2.0.40-rc$i
zcat $FROM/2.0/patch-2.0.40-rc$i.gz | patch -p1 -s
cd ..
done
echo Unpacking 2.0.40
tar zxf $FROM/2.0/linux-2.0.40.tar.gz