Commit | Line | Data |
---|---|---|
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 | |
16 | Do-first: | |
17 | ||
ab0bd049 | 18 | cygnus_files="cgen.sh cgen-asm.in cgen-dis.in cgen-opc.in" |
bfc10abe DE |
19 | |
20 | if ( echo $* | grep keep\-cygnus > /dev/null ) ; then | |
21 | keep_these_too="${cygnus_files} ${keep_these_too}" | |
22 | else | |
23 | lose_these_too="${cygnus_files} ${lose_these_too}" | |
24 | fi | |
25 | ||
6357e7f6 FF |
26 | tic80_files="tic80-opc.c tic80-dis.c" |
27 | ||
28 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then | |
29 | keep_these_too="${tic80_files} ${keep_these_too}" | |
30 | else | |
31 | lose_these_too="${tic80_files} ${lose_these_too}" | |
32 | fi | |
33 | ||
37130f11 | 34 | sky_files="dvp-opc.c dvp-dis.c" |
54cc8ed4 DE |
35 | |
36 | if ( echo $* | grep keep\-sky > /dev/null ) ; then | |
37 | keep_these_too="${sky_files} ${keep_these_too}" | |
38 | else | |
39 | lose_these_too="${sky_files} ${lose_these_too}" | |
40 | fi | |
41 | ||
a4ccc310 SC |
42 | # All files listed between the "Things-to-keep:" line and the |
43 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
44 | # Directories listed in this section will have their own Sanitize | |
45 | # called. Directories not listed will be removed in their entirety | |
46 | # with rm -rf. | |
47 | ||
48 | Things-to-keep: | |
87756e15 | 49 | |
a4ccc310 | 50 | ChangeLog |
1daed53f | 51 | Makefile.am |
add1fb05 | 52 | Makefile.in |
1daed53f ILT |
53 | acconfig.h |
54 | acinclude.m4 | |
9b65d522 | 55 | aclocal.m4 |
5f8f6d56 | 56 | alpha-dis.c |
96926bf0 | 57 | alpha-opc.c |
2b0c643b DE |
58 | arc-dis.c |
59 | arc-opc.c | |
ba08215a KR |
60 | arm-dis.c |
61 | arm-opc.h | |
720b3aed | 62 | a29k-dis.c |
35855192 DE |
63 | cgen-asm.c |
64 | cgen-dis.c | |
65 | cgen-opc.c | |
50982f7f KR |
66 | config.in |
67 | configure | |
fc984fdb | 68 | configure.bat |
add1fb05 | 69 | configure.in |
a3c5b9a4 JW |
70 | d10v-dis.c |
71 | d10v-opc.c | |
faec70d6 ILT |
72 | d30v-dis.c |
73 | d30v-opc.c | |
f76db60b | 74 | dep-in.sed |
117733ad | 75 | dis-buf.c |
204c9148 | 76 | disassemble.c |
21b2e62f DE |
77 | fr30-asm.c |
78 | fr30-dis.c | |
79 | fr30-opc.c | |
80 | fr30-opc.h | |
3b4cc5ec | 81 | h8300-dis.c |
337110ea SC |
82 | h8500-dis.c |
83 | h8500-opc.h | |
cfa8d061 | 84 | hppa-dis.c |
c840244e | 85 | i386-dis.c |
720b3aed | 86 | i960-dis.c |
10cb538e JW |
87 | i960c-asm.c |
88 | i960c-dis.c | |
89 | i960c-opc.c | |
90 | i960c-opc.h | |
35855192 DE |
91 | m32r-asm.c |
92 | m32r-dis.c | |
93 | m32r-opc.c | |
94 | m32r-opc.h | |
c840244e | 95 | m68k-dis.c |
85093dca | 96 | m68k-opc.c |
a4c01299 | 97 | m88k-dis.c |
03496c49 | 98 | makefile.vms |
bf1dd2fd | 99 | mips-dis.c |
69135a69 | 100 | mips-opc.c |
8d67dc30 | 101 | mips16-opc.c |
28e8de41 ILT |
102 | m10200-dis.c |
103 | m10200-opc.c | |
104 | m10300-dis.c | |
105 | m10300-opc.c | |
7a4f107d | 106 | mpw-config.in |
077bd46a | 107 | mpw-make.sed |
2a097d73 | 108 | ns32k-dis.c |
4139b063 | 109 | opintl.h |
f7934c1a | 110 | po |
89221bd5 ILT |
111 | ppc-dis.c |
112 | ppc-opc.c | |
8679a71f SC |
113 | sh-opc.h |
114 | sh-dis.c | |
117733ad | 115 | sparc-dis.c |
c3a1191a | 116 | sparc-opc.c |
1daed53f | 117 | stamp-h.in |
50982f7f | 118 | sysdep.h |
53487a7b | 119 | tic30-dis.c |
69ad8cac | 120 | vax-dis.c |
9f744f91 SC |
121 | w65-dis.c |
122 | w65-opc.h | |
d345d883 NC |
123 | v850-opc.c |
124 | v850-dis.c | |
add1fb05 | 125 | z8k-dis.c |
a4ccc310 | 126 | z8k-opc.h |
ea2598e4 | 127 | z8kgen.c |
add1fb05 | 128 | |
87756e15 RP |
129 | Things-to-lose: |
130 | ||
62ba1060 | 131 | Do-last: |
c80fb0d3 FL |
132 | never_files="Makefile.am Makefile.in" |
133 | for i in $never_files ; do | |
134 | if test ! -d $i && (grep sanitize-cygnus-never $i > /dev/null) ; then | |
135 | if [ -n "${verbose}" ] ; then | |
136 | echo Removing traces of \"cygnus-never\" from $i... | |
137 | fi | |
138 | cp $i new | |
139 | sed '/start\-sanitize\-cygnus-never/,/end\-sanitize\-cygnus-never/d' < $i > new | |
140 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
141 | if [ -n "${verbose}" ] ; then | |
142 | echo Caching $i in .Recover... | |
143 | fi | |
144 | mv $i .Recover | |
145 | fi | |
146 | mv new $i | |
147 | fi | |
148 | done | |
62ba1060 | 149 | |
bfc10abe DE |
150 | cygnus_files="ChangeLog Makefile.am Makefile.in configure.in configure" |
151 | if ( echo $* | grep keep\-cygnus > /dev/null ) ; then | |
152 | for i in $cygnus_files ; do | |
153 | if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then | |
154 | if [ -n "${verbose}" ] ; then | |
155 | echo Keeping cygnus stuff in $i | |
156 | fi | |
157 | fi | |
158 | done | |
159 | else | |
160 | for i in $cygnus_files ; do | |
161 | if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then | |
162 | if [ -n "${verbose}" ] ; then | |
163 | echo Removing traces of \"cygnus\" from $i... | |
164 | fi | |
165 | cp $i new | |
166 | sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new | |
167 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
168 | if [ -n "${verbose}" ] ; then | |
169 | echo Caching $i in .Recover... | |
9eb61c7c JL |
170 | fi |
171 | mv $i .Recover | |
172 | fi | |
173 | mv new $i | |
174 | fi | |
175 | done | |
176 | fi | |
177 | ||
c29d7797 | 178 | am33_files="ChangeLog m10300-opc.c m10300-dis.c" |
9eb61c7c JL |
179 | if ( echo $* | grep keep\-am33 > /dev/null ) ; then |
180 | for i in $am33_files ; do | |
181 | if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then | |
182 | if [ -n "${verbose}" ] ; then | |
183 | echo Keeping am33 stuff in $i | |
184 | fi | |
185 | fi | |
186 | done | |
187 | else | |
d845999e | 188 | for i in $am33_files ; do |
9eb61c7c JL |
189 | if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then |
190 | if [ -n "${verbose}" ] ; then | |
191 | echo Removing traces of \"am33\" from $i... | |
192 | fi | |
193 | cp $i new | |
194 | sed '/start\-sanitize\-am33/,/end-\sanitize\-am33/d' < $i > new | |
195 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
196 | if [ -n "${verbose}" ] ; then | |
197 | echo Caching $i in .Recover... | |
bfc10abe DE |
198 | fi |
199 | mv $i .Recover | |
200 | fi | |
201 | mv new $i | |
202 | fi | |
203 | done | |
204 | fi | |
205 | ||
0ff7faaf | 206 | |
f61b671d | 207 | v850e_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c v850-opc.c v850-dis.c" |
010916c2 | 208 | if ( echo $* | grep keep\-v850e > /dev/null ) ; then |
f61b671d | 209 | for i in $v850e_files ; do |
010916c2 | 210 | if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then |
f61b671d | 211 | if [ -n "${verbose}" ] ; then |
010916c2 | 212 | echo Keeping v850e stuff in $i |
f61b671d NC |
213 | fi |
214 | fi | |
215 | done | |
010916c2 | 216 | else |
f61b671d | 217 | for i in $v850e_files ; do |
ab11a82c | 218 | if test -f $i && (grep sanitize-v850e $i > /dev/null) ; then |
f61b671d | 219 | if [ -n "${verbose}" ] ; then |
010916c2 | 220 | echo Removing traces of \"v850e\" from $i... |
f61b671d NC |
221 | fi |
222 | cp $i new | |
ab11a82c | 223 | sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new |
f61b671d NC |
224 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
225 | if [ -n "${verbose}" ] ; then | |
226 | echo Caching $i in .Recover... | |
227 | fi | |
228 | mv $i .Recover | |
229 | fi | |
230 | mv new $i | |
231 | fi | |
232 | done | |
233 | fi | |
234 | ||
ab11a82c | 235 | |
ffee80df | 236 | r5900_files="ChangeLog mips-opc.c mips-dis.c Makefile.am Makefile.in" |
276c2d7d GRK |
237 | if ( echo $* | grep keep\-r5900 > /dev/null ) ; then |
238 | for i in $r5900_files ; do | |
239 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
240 | if [ -n "${verbose}" ] ; then | |
241 | echo Keeping r5900 stuff in $i | |
242 | fi | |
243 | fi | |
244 | done | |
245 | else | |
246 | for i in $r5900_files ; do | |
247 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
248 | if [ -n "${verbose}" ] ; then | |
249 | echo Removing traces of \"r5900\" from $i... | |
250 | fi | |
251 | cp $i new | |
252 | sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new | |
253 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
254 | if [ -n "${verbose}" ] ; then | |
6d1e1ee8 C |
255 | echo Caching $i in .Recover... |
256 | fi | |
257 | mv $i .Recover | |
258 | fi | |
259 | mv new $i | |
260 | fi | |
261 | done | |
262 | fi | |
263 | ||
779b65bf GRK |
264 | vr4320_files="ChangeLog mips-opc.c mips-dis.c" |
265 | if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then | |
266 | for i in $vr4320_files ; do | |
267 | if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then | |
268 | if [ -n "${verbose}" ] ; then | |
269 | echo Keeping vr4320 stuff in $i | |
270 | fi | |
271 | fi | |
272 | done | |
273 | else | |
274 | for i in $vr4320_files ; do | |
275 | if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then | |
276 | if [ -n "${verbose}" ] ; then | |
277 | echo Removing traces of \"vr4320\" from $i... | |
278 | fi | |
279 | cp $i new | |
280 | sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/d' < $i > new | |
281 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
282 | if [ -n "${verbose}" ] ; then | |
f14397f0 GRK |
283 | echo Caching $i in .Recover... |
284 | fi | |
285 | mv $i .Recover | |
286 | fi | |
287 | mv new $i | |
288 | fi | |
289 | done | |
290 | fi | |
291 | ||
292 | vr4xxx_files="ChangeLog mips-opc.c mips-dis.c" | |
293 | if ( echo $* | grep keep\-vr4xxx > /dev/null ) ; then | |
294 | for i in $vr4xxx_files ; do | |
295 | if test ! -d $i && (grep sanitize-vr4xxx $i > /dev/null) ; then | |
296 | if [ -n "${verbose}" ] ; then | |
297 | echo Keeping vr4xxx stuff in $i | |
298 | fi | |
299 | fi | |
300 | done | |
301 | else | |
302 | for i in $vr4xxx_files ; do | |
303 | if test ! -d $i && (grep sanitize-vr4xxx $i > /dev/null) ; then | |
304 | if [ -n "${verbose}" ] ; then | |
305 | echo Removing traces of \"vr4xxx\" from $i... | |
306 | fi | |
307 | cp $i new | |
308 | sed '/start\-sanitize\-vr4xxx/,/end-\sanitize\-vr4xxx/d' < $i > new | |
309 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
310 | if [ -n "${verbose}" ] ; then | |
779b65bf GRK |
311 | echo Caching $i in .Recover... |
312 | fi | |
313 | mv $i .Recover | |
314 | fi | |
315 | mv new $i | |
316 | fi | |
317 | done | |
318 | fi | |
319 | ||
3d759c53 KR |
320 | cygnus_files="ChangeLog mips-opc.c mips-dis.c" |
321 | if ( echo $* | grep keep\-cygnus > /dev/null ) ; then | |
322 | for i in $cygnus_files ; do | |
323 | if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then | |
a3066d9a | 324 | if [ -n "${verbose}" ] ; then |
3d759c53 | 325 | echo Keeping cygnus stuff in $i |
a3066d9a KR |
326 | fi |
327 | fi | |
328 | done | |
329 | else | |
3d759c53 KR |
330 | for i in $cygnus_files ; do |
331 | if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then | |
a3066d9a | 332 | if [ -n "${verbose}" ] ; then |
3d759c53 | 333 | echo Removing traces of \"cygnus\" from $i... |
a3066d9a KR |
334 | fi |
335 | cp $i new | |
3d759c53 | 336 | sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new |
a3066d9a KR |
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 | |
346 | fi | |
347 | ||
83af2335 | 348 | tx19_files="ChangeLog mips16-opc.c mips-dis.c" |
d9a52316 GRK |
349 | if ( echo $* | grep keep\-tx19 > /dev/null ) ; then |
350 | for i in $tx19_files ; do | |
351 | if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then | |
352 | if [ -n "${verbose}" ] ; then | |
353 | echo Keeping tx19 stuff in $i | |
354 | fi | |
355 | fi | |
356 | done | |
357 | else | |
358 | for i in $tx19_files ; do | |
359 | if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then | |
360 | if [ -n "${verbose}" ] ; then | |
361 | echo Removing traces of \"tx19\" from $i... | |
362 | fi | |
363 | cp $i new | |
364 | sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new | |
365 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
366 | if [ -n "${verbose}" ] ; then | |
367 | echo Caching $i in .Recover... | |
368 | fi | |
369 | mv $i .Recover | |
370 | fi | |
371 | mv new $i | |
372 | fi | |
373 | done | |
374 | fi | |
375 | ||
83af2335 | 376 | tx49_files="ChangeLog mips-opc.c mips-dis.c" |
0cca41d4 GRK |
377 | if ( echo $* | grep keep\-tx49 > /dev/null ) ; then |
378 | for i in $tx49_files ; do | |
379 | if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then | |
380 | if [ -n "${verbose}" ] ; then | |
381 | echo Keeping tx49 stuff in $i | |
382 | fi | |
383 | fi | |
384 | done | |
385 | else | |
386 | for i in $tx49_files ; do | |
387 | if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then | |
388 | if [ -n "${verbose}" ] ; then | |
389 | echo Removing traces of \"tx49\" from $i... | |
390 | fi | |
391 | cp $i new | |
392 | sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new | |
393 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
394 | if [ -n "${verbose}" ] ; then | |
395 | echo Caching $i in .Recover... | |
396 | fi | |
397 | mv $i .Recover | |
398 | fi | |
399 | mv new $i | |
400 | fi | |
401 | done | |
402 | fi | |
403 | ||
a3d2e13b | 404 | tic80_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c" |
6357e7f6 FF |
405 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then |
406 | for i in $tic80_files ; do | |
407 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
408 | if [ -n "${verbose}" ] ; then | |
409 | echo Keeping tic80 stuff in $i | |
410 | fi | |
411 | fi | |
412 | done | |
413 | else | |
414 | for i in $tic80_files ; do | |
415 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
416 | if [ -n "${verbose}" ] ; then | |
417 | echo Removing traces of \"tic80\" from $i... | |
418 | fi | |
419 | cp $i new | |
420 | sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new | |
421 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
422 | if [ -n "${verbose}" ] ; then | |
423 | echo Caching $i in .Recover... | |
424 | fi | |
425 | mv $i .Recover | |
426 | fi | |
427 | mv new $i | |
428 | fi | |
429 | done | |
430 | fi | |
431 | ||
3b12e2d3 C |
432 | coldfire_files="ChangeLog m68k-opc.c" |
433 | if ( echo $* | grep keep\-coldfire > /dev/null ) ; then | |
434 | for i in $coldfire_files ; do | |
435 | if test ! -d $i && (grep sanitize-coldfire $i > /dev/null) ; then | |
436 | if [ -n "${verbose}" ] ; then | |
437 | echo Keeping coldfire stuff in $i | |
438 | fi | |
439 | fi | |
440 | done | |
441 | else | |
442 | for i in $coldfire_files ; do | |
443 | if test ! -d $i && (grep sanitize-coldfire $i > /dev/null) ; then | |
444 | if [ -n "${verbose}" ] ; then | |
445 | echo Removing traces of \"coldfire\" from $i... | |
446 | fi | |
447 | cp $i new | |
448 | sed '/start\-sanitize\-coldfire/,/end-\sanitize\-coldfire/d' < $i > new | |
449 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
450 | if [ -n "${verbose}" ] ; then | |
451 | echo Caching $i in .Recover... | |
452 | fi | |
453 | mv $i .Recover | |
454 | fi | |
455 | mv new $i | |
456 | fi | |
457 | done | |
458 | fi | |
6d1e1ee8 | 459 | |
37130f11 | 460 | sky_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c mips-dis.c" |
80c396f6 DE |
461 | if ( echo $* | grep keep\-sky > /dev/null ) ; then |
462 | for i in $sky_files ; do | |
463 | if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then | |
464 | if [ -n "${verbose}" ] ; then | |
465 | echo Keeping sky stuff in $i | |
466 | fi | |
467 | fi | |
468 | done | |
469 | else | |
470 | for i in $sky_files ; do | |
471 | if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then | |
472 | if [ -n "${verbose}" ] ; then | |
473 | echo Removing traces of \"sky\" from $i... | |
474 | fi | |
475 | cp $i new | |
476 | sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new | |
477 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
478 | if [ -n "${verbose}" ] ; then | |
479 | echo Caching $i in .Recover... | |
480 | fi | |
481 | mv $i .Recover | |
482 | fi | |
483 | mv new $i | |
484 | fi | |
485 | done | |
486 | fi | |
487 | ||
c62448bf NC |
488 | m32rx_files="ChangeLog m32r-opc.c m32r-opc.h m32r-dis.c m32r-asm.c" |
489 | if ( echo $* | grep keep\-m32rx > /dev/null ) ; then | |
490 | for i in $m32rx_files ; do | |
491 | if test -f $i && (grep sanitize-m32rx $i > /dev/null) ; then | |
492 | if [ -n "${verbose}" ] ; then | |
493 | echo Keeping m32rx stuff in $i | |
494 | fi | |
495 | fi | |
496 | done | |
497 | else | |
498 | for i in $m32rx_files ; do | |
499 | if test -f $i && (grep sanitize-m32rx $i > /dev/null) ; then | |
500 | if [ -n "${verbose}" ] ; then | |
501 | echo Removing traces of \"m32rx\" from $i... | |
502 | fi | |
503 | cp $i new | |
0a7fed0d DE |
504 | # The PIPE sanitization will be much cleaner with redact. |
505 | sed -e '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/d' \ | |
506 | -e 's/, PIPE_[A-Z]*//g' < $i > new | |
c62448bf NC |
507 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
508 | if [ -n "${verbose}" ] ; then | |
509 | echo Caching $i in .Recover... | |
510 | fi | |
511 | mv $i .Recover | |
512 | fi | |
513 | mv new $i | |
514 | fi | |
515 | done | |
516 | fi | |
517 | ||
52ce74dc MM |
518 | nortel_ppc750_files="ChangeLog ppc-opc.c" |
519 | if ( echo $* | grep keep\-nortel-ppc750 > /dev/null ) ; then | |
520 | for i in $nortel_ppc750_files ; do | |
521 | if test -f $i && (grep sanitize-nortel-ppc750 $i > /dev/null) ; then | |
522 | if [ -n "${verbose}" ] ; then | |
290ca45a | 523 | echo Keeping nortel-ppc750 stuff in $i |
52ce74dc MM |
524 | fi |
525 | fi | |
526 | done | |
527 | else | |
528 | for i in $nortel_ppc750_files ; do | |
529 | if test -f $i && (grep sanitize-nortel-ppc750 $i > /dev/null) ; then | |
530 | if [ -n "${verbose}" ] ; then | |
290ca45a | 531 | echo Removing traces of \"nortel-ppc750\" from $i... |
52ce74dc MM |
532 | fi |
533 | cp $i new | |
534 | # The PIPE sanitization will be much cleaner with redact. | |
535 | sed -e '/start\-sanitize\-nortel-ppc750/,/end\-sanitize\-nortel-ppc750/d' \ | |
536 | -e 's/, PIPE_[A-Z]*//g' < $i > new | |
537 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
538 | if [ -n "${verbose}" ] ; then | |
539 | echo Caching $i in .Recover... | |
540 | fi | |
541 | mv $i .Recover | |
542 | fi | |
543 | mv new $i | |
544 | fi | |
545 | done | |
546 | fi | |
547 | ||
53438a7b ILT |
548 | for i in *; do |
549 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then | |
550 | echo '***' Some mentions of Sanitize are still left in opcodes/$i! 1>&2 | |
551 | fi | |
552 | done | |
553 | ||
554 | for lost in .. $lose_these_too; do | |
555 | if test $lost != ..; then | |
556 | for i in Makefile.am Makefile.in configure.in configure; do | |
557 | if fgrep $lost $i >/dev/null 2>&1; then | |
558 | echo '***' File $lost was sanitized out but is still mentioned in opcodes/$i 1>&2 | |
559 | fi | |
560 | done | |
561 | fi | |
5c680afd MT |
562 | done |
563 | ||
8a660fab NC |
564 | # This must come after all other sanitizations. Re-sanitize the .pot |
565 | # file. | |
566 | if [ -n "${verbose}" ]; then | |
567 | echo Re-computing files for gettext ... | |
568 | fi | |
569 | ||
570 | if [ -n "${safe}" -a ! -f po/.Recover/POTFILES.in ]; then | |
571 | if [ -n "${verbose}" ]; then | |
572 | echo Caching po/POTFILES.in in .Recover... | |
573 | fi | |
574 | mv po/POTFILES.in po/.Recover | |
575 | fi | |
576 | ||
c2400a02 | 577 | ls -1 *.[ch] cg*.in 2>/dev/null | sed -e 's,^\./,,' > po/POTFILES.in |
8a660fab NC |
578 | |
579 | if [ -n "${safe}" -a ! -f po/.Recover/opcodes.pot ]; then | |
580 | if [ -n "${verbose}" ]; then | |
581 | echo Caching po/opcodes.pot in .Recover... | |
582 | fi | |
583 | mv po/opcodes.pot po/.Recover | |
584 | fi | |
585 | ||
586 | # If this fails, Sanitization must fail. | |
6711d1ef | 587 | xgettext -C -c -k_ -kN_ -f po/POTFILES.in -o po/opcodes.pot || exit 1 |
8a660fab | 588 | |
a4ccc310 | 589 | # End of file. |