Removed v850eq sanitization.
[deliverable/binutils-gdb.git] / opcodes / .Sanitize
CommitLineData
67c2d8c8 1# .Sanitize for devo/opcodes.
a4ccc310 2
e7c4e61c 3# Each directory to survive its way into a release will need a file
a4ccc310
SC
4# like this one called "./.Sanitize". All keyword lines must exist,
5# and must exist in the order specified by this file. Each directory
6# in the tree will be processed, top down, in the following order.
7
8# Hash started lines like this one are comments and will be deleted
9# before anything else is done. Blank lines will also be squashed
10# out.
11
12# The lines between the "Do-first:" line and the "Things-to-keep:"
13# line are executed as a /bin/sh shell script before anything else is
10f1b597 14# done in this directory.
a4ccc310
SC
15
16Do-first:
17
b2e3f844
MH
18d30v_files="d30v-dis.c d30v-opc.c"
19
20if ( echo $* | grep keep\-d30v > /dev/null ) ; then
21 keep_these_too="${d30v_files} ${keep_these_too}"
22else
23 lose_these_too="${d30v_files} ${lose_these_too}"
24fi
25
6357e7f6
FF
26tic80_files="tic80-opc.c tic80-dis.c"
27
28if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
29 keep_these_too="${tic80_files} ${keep_these_too}"
30else
31 lose_these_too="${tic80_files} ${lose_these_too}"
32fi
33
e1625ed2
FL
34if ( echo $* | grep keep\-v850 > /dev/null ) ; then
35 keep_these_too="v850-opc.c v850-dis.c ${keep_these_too}"
36else
37 lose_these_too="v850-opc.c v850-dis.c ${lose_these_too}"
38fi
39
6d1e1ee8 40
a4ccc310
SC
41# All files listed between the "Things-to-keep:" line and the
42# "Files-to-sed:" line will be kept. All other files will be removed.
43# Directories listed in this section will have their own Sanitize
44# called. Directories not listed will be removed in their entirety
45# with rm -rf.
46
47Things-to-keep:
87756e15 48
a4ccc310 49ChangeLog
1daed53f 50Makefile.am
add1fb05 51Makefile.in
1daed53f
ILT
52acconfig.h
53acinclude.m4
9b65d522 54aclocal.m4
5f8f6d56 55alpha-dis.c
96926bf0 56alpha-opc.c
2b0c643b
DE
57arc-dis.c
58arc-opc.c
ba08215a
KR
59arm-dis.c
60arm-opc.h
720b3aed 61a29k-dis.c
35855192
DE
62cgen-asm.c
63cgen-dis.c
64cgen-opc.c
50982f7f
KR
65config.in
66configure
fc984fdb 67configure.bat
add1fb05 68configure.in
a3c5b9a4
JW
69d10v-dis.c
70d10v-opc.c
f76db60b 71dep-in.sed
117733ad 72dis-buf.c
204c9148 73disassemble.c
3b4cc5ec 74h8300-dis.c
337110ea
SC
75h8500-dis.c
76h8500-opc.h
cfa8d061 77hppa-dis.c
c840244e 78i386-dis.c
720b3aed 79i960-dis.c
35855192
DE
80m32r-asm.c
81m32r-dis.c
82m32r-opc.c
83m32r-opc.h
c840244e 84m68k-dis.c
85093dca 85m68k-opc.c
a4c01299 86m88k-dis.c
03496c49 87makefile.vms
bf1dd2fd 88mips-dis.c
69135a69 89mips-opc.c
8d67dc30 90mips16-opc.c
28e8de41
ILT
91m10200-dis.c
92m10200-opc.c
93m10300-dis.c
94m10300-opc.c
7a4f107d 95mpw-config.in
077bd46a 96mpw-make.sed
2a097d73 97ns32k-dis.c
89221bd5
ILT
98ppc-dis.c
99ppc-opc.c
8679a71f
SC
100sh-opc.h
101sh-dis.c
117733ad 102sparc-dis.c
c3a1191a 103sparc-opc.c
1daed53f 104stamp-h.in
50982f7f 105sysdep.h
9f744f91
SC
106w65-dis.c
107w65-opc.h
add1fb05 108z8k-dis.c
a4ccc310 109z8k-opc.h
ea2598e4 110z8kgen.c
add1fb05 111
87756e15
RP
112Things-to-lose:
113
62ba1060
SC
114Do-last:
115
a3d2e13b 116d30v_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c"
b2e3f844
MH
117if ( echo $* | grep keep\-d30v > /dev/null ) ; then
118 for i in $d30v_files ; do
119 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
120 if [ -n "${verbose}" ] ; then
121 echo Keeping d30v stuff in $i
122 fi
123 fi
124 done
125else
126 for i in $d30v_files ; do
127 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
128 if [ -n "${verbose}" ] ; then
129 echo Removing traces of \"d30v\" from $i...
130 fi
131 cp $i new
132 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
133 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
134 if [ -n "${verbose}" ] ; then
135 echo Caching $i in .Recover...
136 fi
137 mv $i .Recover
138 fi
139 mv new $i
140 fi
141 done
142fi
143
f61b671d 144v850e_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c v850-opc.c v850-dis.c"
010916c2
NC
145
146if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
f61b671d 147 for i in $v850e_files ; do
010916c2 148 if test -f $i && (grep sanitize-v850eq $i > /dev/null) ; then
f61b671d 149 if [ -n "${verbose}" ] ; then
010916c2 150 echo Keeping v850eq stuff in $i
f61b671d
NC
151 fi
152 fi
153 done
010916c2 154else
f61b671d 155 for i in $v850e_files ; do
ab11a82c 156 if test -f $i && (grep sanitize-v850eq $i > /dev/null) ; then
f61b671d 157 if [ -n "${verbose}" ] ; then
ab11a82c 158 echo Removing traces of \"v850eq\" from $i...
f61b671d
NC
159 fi
160 cp $i new
ab11a82c 161 sed '/start\-sanitize\-v850eq/,/end\-sanitize\-v850eq/d' < $i > new
f61b671d
NC
162 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
163 if [ -n "${verbose}" ] ; then
164 echo Caching $i in .Recover...
165 fi
166 mv $i .Recover
167 fi
168 mv new $i
169 fi
170 done
010916c2
NC
171fi
172if ( echo $* | grep keep\-v850e > /dev/null ) ; then
f61b671d 173 for i in $v850e_files ; do
010916c2 174 if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then
f61b671d 175 if [ -n "${verbose}" ] ; then
010916c2 176 echo Keeping v850e stuff in $i
f61b671d
NC
177 fi
178 fi
179 done
010916c2
NC
180else
181 if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
182 true
183 else
f61b671d 184 for i in $v850e_files ; do
ab11a82c 185 if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then
f61b671d 186 if [ -n "${verbose}" ] ; then
010916c2 187 echo Removing traces of \"v850e\" from $i...
f61b671d
NC
188 fi
189 cp $i new
ab11a82c 190 sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new
f61b671d
NC
191 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
192 if [ -n "${verbose}" ] ; then
193 echo Caching $i in .Recover...
194 fi
195 mv $i .Recover
196 fi
197 mv new $i
198 fi
199 done
010916c2 200 fi
f61b671d
NC
201fi
202
ab11a82c 203
276c2d7d
GRK
204r5900_files="ChangeLog mips-opc.c"
205if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
206 for i in $r5900_files ; do
207 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
208 if [ -n "${verbose}" ] ; then
209 echo Keeping r5900 stuff in $i
210 fi
211 fi
212 done
213else
214 for i in $r5900_files ; do
215 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
216 if [ -n "${verbose}" ] ; then
217 echo Removing traces of \"r5900\" from $i...
218 fi
219 cp $i new
220 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
221 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
222 if [ -n "${verbose}" ] ; then
6d1e1ee8
C
223 echo Caching $i in .Recover...
224 fi
225 mv $i .Recover
226 fi
227 mv new $i
228 fi
229 done
230fi
231
d9a52316
GRK
232tx19_files="ChangeLog mips16-opc.c"
233if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
234 for i in $tx19_files ; do
235 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
236 if [ -n "${verbose}" ] ; then
237 echo Keeping tx19 stuff in $i
238 fi
239 fi
240 done
241else
242 for i in $tx19_files ; do
243 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
244 if [ -n "${verbose}" ] ; then
245 echo Removing traces of \"tx19\" from $i...
246 fi
247 cp $i new
248 sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new
249 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
250 if [ -n "${verbose}" ] ; then
251 echo Caching $i in .Recover...
252 fi
253 mv $i .Recover
254 fi
255 mv new $i
256 fi
257 done
258fi
259
a3d2e13b 260tic80_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c"
6357e7f6
FF
261if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
262 for i in $tic80_files ; do
263 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
264 if [ -n "${verbose}" ] ; then
265 echo Keeping tic80 stuff in $i
266 fi
267 fi
268 done
269else
270 for i in $tic80_files ; do
271 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
272 if [ -n "${verbose}" ] ; then
273 echo Removing traces of \"tic80\" from $i...
274 fi
275 cp $i new
276 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
277 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
278 if [ -n "${verbose}" ] ; then
279 echo Caching $i in .Recover...
280 fi
281 mv $i .Recover
282 fi
283 mv new $i
284 fi
285 done
286fi
287
3b12e2d3
C
288coldfire_files="ChangeLog m68k-opc.c"
289if ( echo $* | grep keep\-coldfire > /dev/null ) ; then
290 for i in $coldfire_files ; do
291 if test ! -d $i && (grep sanitize-coldfire $i > /dev/null) ; then
292 if [ -n "${verbose}" ] ; then
293 echo Keeping coldfire stuff in $i
294 fi
295 fi
296 done
297else
298 for i in $coldfire_files ; do
299 if test ! -d $i && (grep sanitize-coldfire $i > /dev/null) ; then
300 if [ -n "${verbose}" ] ; then
301 echo Removing traces of \"coldfire\" from $i...
302 fi
303 cp $i new
304 sed '/start\-sanitize\-coldfire/,/end-\sanitize\-coldfire/d' < $i > new
305 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
306 if [ -n "${verbose}" ] ; then
307 echo Caching $i in .Recover...
308 fi
309 mv $i .Recover
310 fi
311 mv new $i
312 fi
313 done
314fi
6d1e1ee8 315
bf5ac1b8
JR
316if [ -n "${verbose}" ] ; then
317 echo Processing \"sh4\"...
318fi
319
320sh4_files="ChangeLog sh-opc.h sh-dis.c"
321if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
322 for i in $sh4_files ; do
323 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
324 if [ -n "${verbose}" ] ; then
325 echo Keeping sh4 stuff in $i
326 fi
327 fi
328 done
329else
330 for i in $sh4_files ; do
331 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
332 if [ -n "${verbose}" ] ; then
333 echo Removing traces of \"sh4\" from $i...
334 fi
335 cp $i new
336 sed -e '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' -e 's/.*restore\-sanitize\-sh4//' < $i > new
337 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
338 if [ -n "${verbose}" ] ; then
339 echo Caching $i in .Recover...
340 fi
341 mv $i .Recover
342 fi
343 mv new $i
344 fi
345 done
346fi
347
5c680afd
MT
348for i in * ; do
349 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
350 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
351 fi
352done
353
a4ccc310 354# End of file.
This page took 0.23868 seconds and 4 git commands to generate.