]>
Commit | Line | Data |
---|---|---|
f4240b08 | 1 | # .Sanitize for devo/gdb. |
eeadf5c2 | 2 | |
d1bcda67 | 3 | # Each directory to survive its way into a release will need a file |
eeadf5c2 RP |
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 | |
d1bcda67 | 14 | # done in this directory. |
eeadf5c2 RP |
15 | |
16 | Do-first: | |
17 | ||
f3b86a30 | 18 | gdbtk_files="ChangeLog-gdbtk README.GDBTK gdbtk.c gdbtk.h gdbtk-cmds.c gdbtk-hooks.c gdbtcl2 gdb.rc gdbtool.ico" |
d3d75ec9 | 19 | |
6e9cac5f SS |
20 | if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then |
21 | lose_these_too="${gdbtk_files} ${lose_these_too}" | |
d3d75ec9 | 22 | if [ -n "${verbose}" ] ; then |
6e9cac5f | 23 | echo Deleting ${gdbtk_files} |
d3d75ec9 SS |
24 | fi |
25 | else | |
6e9cac5f | 26 | keep_these_too="${gdbtk_files} ${keep_these_too}" |
d3d75ec9 | 27 | if [ -n "${verbose}" ] ; then |
6e9cac5f | 28 | echo Keeping ${gdbtk_files} |
d3d75ec9 SS |
29 | fi |
30 | fi | |
31 | ||
a68e7120 FN |
32 | kod_files="kod.c kodecosdll.c" |
33 | ||
34 | if ( echo $* | grep keep\-kod > /dev/null ) ; then | |
35 | keep_these_too="${kod_files} ${keep_these_too}" | |
36 | if [ -n "${verbose}" ] ; then | |
37 | echo Keeping ${kod_files} | |
38 | fi | |
39 | else | |
40 | lose_these_too="${kod_files} ${lose_these_too}" | |
41 | if [ -n "${verbose}" ] ; then | |
42 | echo Deleting ${kod_files} | |
43 | fi | |
44 | fi | |
45 | ||
12967062 FF |
46 | tic80_files="tic80-tdep.c" |
47 | ||
48 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then | |
49 | keep_these_too="${tic80_files} ${keep_these_too}" | |
50 | if [ -n "${verbose}" ] ; then | |
51 | echo Keeping ${tic80_files} | |
52 | fi | |
53 | else | |
54 | lose_these_too="${tic80_files} ${lose_these_too}" | |
55 | if [ -n "${verbose}" ] ; then | |
56 | echo Deleting ${tic80_files} | |
57 | fi | |
58 | fi | |
59 | ||
64708c01 RU |
60 | sky_files="txvu-tdep.c" |
61 | ||
62 | if ( echo $* | grep keep\-sky > /dev/null ) ; then | |
63 | keep_these_too="${sky_files} ${keep_these_too}" | |
64 | if [ -n "${verbose}" ] ; then | |
65 | echo Keeping ${sky_files} | |
66 | fi | |
67 | else | |
68 | lose_these_too="${sky_files} ${lose_these_too}" | |
69 | if [ -n "${verbose}" ] ; then | |
70 | echo Deleting ${sky_files} | |
71 | fi | |
72 | fi | |
73 | ||
6e8bee16 SG |
74 | java_files="jv-exp.y jv-lang.c jv-lang.h jv-typeprint.c jv-valprint.c" |
75 | ||
76 | if ( echo $* | grep keep\-java > /dev/null ) ; then | |
77 | keep_these_too="${java_files} ${keep_these_too}" | |
78 | if [ -n "${verbose}" ] ; then | |
79 | echo Keeping ${java_files} | |
80 | fi | |
81 | else | |
82 | lose_these_too="${java_files} ${lose_these_too}" | |
83 | if [ -n "${verbose}" ] ; then | |
84 | echo Deleting ${java_files} | |
85 | fi | |
86 | fi | |
87 | ||
17a56e13 JM |
88 | vr4111_files="nec4102rom.c" |
89 | ||
90 | if ( echo $* | grep keep\-vr4111 > /dev/null ) ; then | |
91 | keep_these_too="${vr4111_files} ${keep_these_too}" | |
92 | if [ -n "${verbose}" ] ; then | |
93 | echo Keeping ${vr4111_files} | |
94 | fi | |
95 | else | |
96 | lose_these_too="${vr4111_files} ${lose_these_too}" | |
97 | if [ -n "${verbose}" ] ; then | |
98 | echo Deleting ${vr4111_files} | |
99 | fi | |
100 | fi | |
101 | ||
24615880 | 102 | carp_files="carp-tdep.c" |
875f23a1 AC |
103 | |
104 | if ( echo $* | grep keep\-carp > /dev/null ) ; then | |
105 | keep_these_too="${carp_files} ${keep_these_too}" | |
106 | if [ -n "${verbose}" ] ; then | |
107 | echo Keeping ${carp_files} | |
108 | fi | |
109 | else | |
110 | lose_these_too="${carp_files} ${lose_these_too}" | |
111 | if [ -n "${verbose}" ] ; then | |
112 | echo Deleting ${carp_files} | |
113 | fi | |
114 | fi | |
115 | ||
eeadf5c2 RP |
116 | # All files listed between the "Things-to-keep:" line and the |
117 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
118 | # Directories listed in this section will have their own Sanitize | |
119 | # called. Directories not listed will be removed in their entirety | |
120 | # with rm -rf. | |
121 | ||
122 | Things-to-keep: | |
123 | ||
a96c3444 | 124 | 29k-share |
eeadf5c2 RP |
125 | COPYING |
126 | ChangeLog | |
127 | ChangeLog-3.x | |
ee799e2a | 128 | ChangeLog-9091 |
5debf76d | 129 | ChangeLog-92 |
1ea8b1dc | 130 | ChangeLog-93 |
73cb6167 | 131 | ChangeLog-94 |
543a9fac | 132 | ChangeLog-95 |
c3dccb2a | 133 | ChangeLog-96 |
045380f8 | 134 | ChangeLog-97 |
ee7ae7ae | 135 | ChangeLog-98 |
bdf3621b | 136 | Makefile.in |
ddce75e0 | 137 | NEWS |
eeadf5c2 RP |
138 | README |
139 | TODO | |
b4b0321b | 140 | a29k-tdep.c |
203a8d54 | 141 | a68v-nat.c |
7574859f | 142 | abug-rom.c |
5d93d326 | 143 | acconfig.h |
9f792942 | 144 | acinclude.m4 |
5c17c67d | 145 | aclocal.m4 |
cef4c2e7 PS |
146 | alpha-nat.c |
147 | alpha-tdep.c | |
203a8d54 | 148 | altos-xdep.c |
1c95d7ab JK |
149 | annotate.c |
150 | annotate.h | |
2bf15e13 | 151 | arc-tdep.c |
eeadf5c2 | 152 | arm-convert.s |
eeadf5c2 RP |
153 | arm-tdep.c |
154 | arm-xdep.c | |
27cd90b2 | 155 | ax-gdb.c |
156 | ax-gdb.h | |
157 | ax-general.c | |
158 | ax.h | |
dafd5ad4 FF |
159 | bcache.c |
160 | bcache.h | |
eeadf5c2 RP |
161 | blockframe.c |
162 | breakpoint.c | |
163 | breakpoint.h | |
2ce38c6d JG |
164 | buildsym.c |
165 | buildsym.h | |
56d921a8 | 166 | c-exp.y |
22e39759 FF |
167 | c-lang.c |
168 | c-lang.h | |
a8a69e63 FF |
169 | c-typeprint.c |
170 | c-valprint.c | |
be772100 | 171 | call-cmds.h |
3e19d545 | 172 | ch-exp.c |
b1086bf5 FF |
173 | ch-lang.c |
174 | ch-lang.h | |
175 | ch-typeprint.c | |
176 | ch-valprint.c | |
ead291d4 SG |
177 | coff-solib.c |
178 | coff-solib.h | |
eeadf5c2 RP |
179 | coffread.c |
180 | command.c | |
181 | command.h | |
51b80b00 FF |
182 | complaints.c |
183 | complaints.h | |
f187c3a4 | 184 | config |
18ea4416 | 185 | config.in |
5436fc65 | 186 | configure |
edda595e | 187 | configure.host |
eeadf5c2 | 188 | configure.in |
edda595e | 189 | configure.tgt |
eeadf5c2 RP |
190 | convex-tdep.c |
191 | convex-xdep.c | |
eeadf5c2 RP |
192 | copying.awk |
193 | copying.c | |
a1df8e78 FF |
194 | core-aout.c |
195 | core-regset.c | |
256533df | 196 | core-sol2.c |
1738bcd3 | 197 | corefile.c |
dfc82617 | 198 | corelow.c |
a8a69e63 | 199 | cp-valprint.c |
5de0c648 | 200 | cpu32bug-rom.c |
670a8e09 | 201 | cxux-nat.c |
a3c5b9a4 | 202 | d10v-tdep.c |
2c9fd4b1 | 203 | d30v-tdep.c |
9ef70b29 | 204 | dbug-rom.c |
eeadf5c2 | 205 | dbxread.c |
755892d6 RP |
206 | dcache.c |
207 | dcache.h | |
4659e3b3 | 208 | debugify.c |
5c17c67d | 209 | debugify.h |
eeadf5c2 | 210 | defs.h |
be0ed5bb | 211 | delta68-nat.c |
2dbde378 | 212 | demangle.c |
66df708b | 213 | dink32-rom.c |
eeadf5c2 | 214 | doc |
0a8f1742 | 215 | dpx2-nat.c |
1aa26557 | 216 | dsrec.c |
2d628281 JK |
217 | dst.h |
218 | dstread.c | |
d8d77c08 | 219 | dve3900-rom.c |
bb5a10fe | 220 | dwarf2read.c |
6fccdaf4 FF |
221 | dwarfread.c |
222 | elfread.c | |
eeadf5c2 RP |
223 | environ.c |
224 | environ.h | |
225 | eval.c | |
ce0787ef | 226 | exc_request.defs |
5c17c67d | 227 | exec.c |
eeadf5c2 | 228 | expprint.c |
eeadf5c2 | 229 | expression.h |
042bb079 SS |
230 | f-exp.y |
231 | f-lang.c | |
232 | f-lang.h | |
233 | f-typeprint.c | |
234 | f-valprint.c | |
eeadf5c2 | 235 | findvar.c |
e745abe5 | 236 | fork-child.c |
e2086086 | 237 | fr30-tdep.c |
eeadf5c2 | 238 | frame.h |
ed7c0948 | 239 | gdb-stabs.h |
0857b46a | 240 | gdb.1 |
56b73ad2 | 241 | gdb.gdb |
5c17c67d JM |
242 | gdb_stat.h |
243 | gdb_string.h | |
dec525ce | 244 | gdba.el |
f7e85b1b AC |
245 | gdbarch.c |
246 | gdbarch.h | |
eeadf5c2 RP |
247 | gdbcmd.h |
248 | gdbcore.h | |
0cb7d01d | 249 | gdbinit.in |
463a71db | 250 | gdbserver |
fdfa3315 | 251 | gdbthread.h |
a1f596f4 FF |
252 | gdbtypes.c |
253 | gdbtypes.h | |
ce0787ef FF |
254 | gnu-nat.c |
255 | gnu-nat.h | |
f2cd3441 SS |
256 | gnu-regex.c |
257 | gnu-regex.h | |
ae0ea72e | 258 | go32-xdep.c |
0f1cf145 | 259 | gould-tdep.c |
eeadf5c2 | 260 | gould-xdep.c |
0a8ed751 | 261 | h8300-tdep.c |
5cd0940a | 262 | h8500-tdep.c |
65b07ddc DT |
263 | hp-psymtab-read.c |
264 | hp-symtab-read.c | |
b1de302a | 265 | hp300ux-nat.c |
66a1aa07 | 266 | hppa-tdep.c |
ca048722 | 267 | hppab-nat.c |
ca048722 | 268 | hppah-nat.c |
2d2959e8 | 269 | hppam3-nat.c |
2848f793 | 270 | hpread.c |
65b07ddc | 271 | hpread.h |
5621d991 | 272 | hpux-thread.c |
eeadf5c2 RP |
273 | i386-stub.c |
274 | i386-tdep.c | |
2c7ab4ca | 275 | i386aix-nat.c |
0e35d2f3 | 276 | i386b-nat.c |
ce0787ef | 277 | i386gnu-nat.c |
c458501e | 278 | i386ly-tdep.c |
c2d751d5 | 279 | i386m3-nat.c |
a113beac | 280 | i386mach-nat.c |
c7c94073 | 281 | i386v-nat.c |
4d0eabff | 282 | i386v4-nat.c |
56d921a8 | 283 | i387-tdep.c |
eeadf5c2 | 284 | i960-tdep.c |
eeadf5c2 RP |
285 | infcmd.c |
286 | inferior.h | |
287 | inflow.c | |
288 | infptrace.c | |
289 | infrun.c | |
eeadf5c2 | 290 | inftarg.c |
65b07ddc | 291 | infttrace.c |
a70dc898 | 292 | irix4-nat.c |
a2f1e2e5 | 293 | irix5-nat.c |
4aadcb02 | 294 | isi-xdep.c |
eeadf5c2 | 295 | kdb-start.c |
56d921a8 JG |
296 | language.c |
297 | language.h | |
069e0566 | 298 | lynx-nat.c |
56d921a8 | 299 | m2-exp.y |
22e39759 FF |
300 | m2-lang.c |
301 | m2-lang.h | |
a8a69e63 FF |
302 | m2-typeprint.c |
303 | m2-valprint.c | |
c2d751d5 | 304 | m3-nat.c |
038e48cf DE |
305 | m32r-rom.c |
306 | m32r-stub.c | |
307 | m32r-tdep.c | |
eeadf5c2 RP |
308 | m68k-stub.c |
309 | m68k-tdep.c | |
9f792942 | 310 | m68klinux-nat.c |
b7f3b6d5 | 311 | m68knbsd-nat.c |
173a4f1b | 312 | m88k-nat.c |
eeadf5c2 | 313 | m88k-tdep.c |
49073be0 | 314 | mac-defs.h |
c24ce5e2 | 315 | mac-gdb.r |
2e81067b | 316 | mac-nat.c |
5c17c67d | 317 | mac-xdep.c |
eeadf5c2 | 318 | main.c |
0239d9b3 | 319 | maint.c |
a2f1e2e5 | 320 | mdebugread.c |
eeadf5c2 | 321 | mem-break.c |
1111151a | 322 | minimon.h |
a1f596f4 | 323 | minsyms.c |
a70dc898 | 324 | mips-nat.c |
eeadf5c2 | 325 | mips-tdep.c |
c2d751d5 | 326 | mipsm3-nat.c |
eeadf5c2 | 327 | mipsread.c |
5c17c67d | 328 | mipsv4-nat.c |
e385d6e0 | 329 | mn10200-tdep.c |
4c7be7ba | 330 | mn10300-tdep.c |
a4cf4e29 | 331 | mon960-rom.c |
25ca0dfc | 332 | monitor.c |
5c17c67d | 333 | monitor.h |
49073be0 | 334 | mpw-config.in |
c24ce5e2 | 335 | mpw-make.sed |
ce0787ef FF |
336 | msg.defs |
337 | msg_reply.defs | |
eeadf5c2 RP |
338 | news-xdep.c |
339 | nindy-share | |
340 | nindy-tdep.c | |
bbc34049 | 341 | nlm |
db85f523 | 342 | nlmread.c |
ce0787ef | 343 | notify.defs |
0f1cf145 | 344 | ns32k-tdep.c |
c2d751d5 | 345 | ns32km3-nat.c |
5c17c67d | 346 | ns32knbsd-nat.c |
a1f596f4 | 347 | objfiles.c |
5e2e79f8 | 348 | objfiles.h |
9cf7f520 GN |
349 | ocd.c |
350 | ocd.h | |
25ca0dfc | 351 | op50-rom.c |
25200748 | 352 | os9kread.c |
7d44ab7f | 353 | osf-share |
cef4c2e7 | 354 | osfsolib.c |
56d921a8 JG |
355 | parse.c |
356 | parser-defs.h | |
7e258d18 | 357 | partial-stab.h |
9cf7f520 | 358 | ppc-bdm.c |
5c17c67d | 359 | ppcbug-rom.c |
eeadf5c2 | 360 | printcmd.c |
ce0787ef | 361 | process_reply.defs |
6fccdaf4 | 362 | procfs.c |
c6889f63 | 363 | ptx4-nat.c |
eeadf5c2 RP |
364 | pyr-tdep.c |
365 | pyr-xdep.c | |
ef40809d | 366 | rdi-share |
1111151a | 367 | remote-adapt.c |
3e437fe6 | 368 | remote-array.c |
203a8d54 | 369 | remote-bug.c |
0c3ab0a1 | 370 | remote-d10v.c |
a0b28275 | 371 | remote-e7000.c |
eeadf5c2 | 372 | remote-eb.c |
91c87211 | 373 | remote-es.c |
93584146 | 374 | remote-est.c |
d93b79d9 | 375 | remote-hms.c |
c2a0f1cb | 376 | remote-mips.c |
1111151a | 377 | remote-mm.c |
eeadf5c2 | 378 | remote-nindy.c |
a55c3291 | 379 | remote-nrom.c |
25200748 | 380 | remote-os9k.c |
ef40809d | 381 | remote-rdi.c |
dedcc91d | 382 | remote-rdp.c |
23cb1bc1 | 383 | remote-sds.c |
ec25d19b | 384 | remote-sim.c |
91c87211 | 385 | remote-st.c |
e4dd52dd | 386 | remote-udi.c |
3283eab3 JK |
387 | remote-utils.c |
388 | remote-utils.h | |
eeadf5c2 | 389 | remote-vx.c |
456f6de6 | 390 | remote-vx29k.c |
44505113 DW |
391 | remote-vx68.c |
392 | remote-vx960.c | |
88890fb5 AMT |
393 | remote-vxmips.c |
394 | remote-vxsparc.c | |
eeadf5c2 | 395 | remote.c |
ce0787ef | 396 | reply_mig_hack.awk |
5c17c67d | 397 | rom68k-rom.c |
dc48694c | 398 | rs6000-nat.c |
6373dbe3 | 399 | rs6000-tdep.c |
eeadf5c2 | 400 | saber.suppress |
3c02944a | 401 | scm-exp.c |
0e4ca328 | 402 | scm-lang.c |
5b4d668a PB |
403 | scm-lang.h |
404 | scm-tags.h | |
405 | scm-valprint.c | |
55679787 | 406 | ser-e7kpc.c |
ddce75e0 | 407 | ser-go32.c |
49073be0 | 408 | ser-mac.c |
9cf7f520 | 409 | ser-ocd.c |
4d551aa3 | 410 | ser-tcp.c |
e8a5f0ed SG |
411 | ser-unix.c |
412 | serial.c | |
ddce75e0 | 413 | serial.h |
8f5a8e2f | 414 | sh-stub.c |
9faacb92 | 415 | sh-tdep.c |
1480482a | 416 | sh3-rom.c |
eeadf5c2 | 417 | signals.h |
8fc2b417 | 418 | sol-thread.c |
eeadf5c2 | 419 | solib.c |
a1f596f4 | 420 | solib.h |
bfe2f12b | 421 | somread.c |
bb140953 JL |
422 | somsolib.c |
423 | somsolib.h | |
eeadf5c2 | 424 | source.c |
dfc82617 | 425 | sparc-nat.c |
c9715956 | 426 | sparc-stub.c |
eeadf5c2 | 427 | sparc-tdep.c |
2b14c195 KH |
428 | sparcl-stub.c |
429 | sparcl-tdep.c | |
012be3ce | 430 | sparclet-rom.c |
6b01dc65 | 431 | sparclet-stub.c |
5c8ba017 | 432 | srec.h |
d07734e3 FF |
433 | stabsread.c |
434 | stabsread.h | |
eeadf5c2 RP |
435 | stack.c |
436 | standalone.c | |
1e6f592d | 437 | stop-gdb.c |
eeadf5c2 | 438 | stuff.c |
dc48694c | 439 | sun3-nat.c |
61bbb1c2 | 440 | sun386-nat.c |
eeadf5c2 RP |
441 | symfile.c |
442 | symfile.h | |
d39d83c1 | 443 | symm-nat.c |
203a8d54 | 444 | symm-tdep.c |
eeadf5c2 RP |
445 | symmisc.c |
446 | symtab.c | |
447 | symtab.h | |
0f1cf145 | 448 | tahoe-tdep.c |
eeadf5c2 RP |
449 | target.c |
450 | target.h | |
eeadf5c2 | 451 | terminal.h |
a2df03aa | 452 | testsuite |
6a21c756 | 453 | thread.c |
172559ec JK |
454 | top.c |
455 | top.h | |
3de294af KS |
456 | tracepoint.c |
457 | tracepoint.h | |
65b07ddc | 458 | tui |
a8a69e63 FF |
459 | typeprint.c |
460 | typeprint.h | |
6bf98ac0 | 461 | ultra3-nat.c |
1111151a | 462 | ultra3-xdep.c |
eeadf5c2 RP |
463 | umax-xdep.c |
464 | utils.c | |
446df8b8 NC |
465 | v850-tdep.c |
466 | v850ice.c | |
eeadf5c2 RP |
467 | valarith.c |
468 | valops.c | |
469 | valprint.c | |
a8a69e63 | 470 | valprint.h |
eeadf5c2 RP |
471 | value.h |
472 | values.c | |
0f1cf145 | 473 | vax-tdep.c |
eeadf5c2 | 474 | vx-share |
d723ade7 | 475 | w65-tdep.c |
25ca0dfc | 476 | w89k-rom.c |
24e60978 | 477 | win32-nat.c |
6373dbe3 | 478 | xcoffread.c |
1eeba686 PB |
479 | xcoffsolib.c |
480 | xcoffsolib.h | |
5de0c648 SG |
481 | xmodem.c |
482 | xmodem.h | |
2aedd91e | 483 | z8k-tdep.c |
eeadf5c2 | 484 | |
f747d259 | 485 | # Things which are explicitly *not* kept, for now. |
f747d259 | 486 | |
87756e15 RP |
487 | Things-to-lose: |
488 | ||
d36b927c | 489 | GDB-HACK-RULES |
6a02d201 | 490 | HOW_TO_RELEASE |
a4a9241f | 491 | gdbcfgxref |
87756e15 | 492 | |
eeadf5c2 RP |
493 | Do-last: |
494 | ||
d3d75ec9 SS |
495 | # Don't try to clean directories here, as the 'mv' command will fail. |
496 | # Also, grep fails on NFS mounted directories. | |
a06cde09 SS |
497 | if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then |
498 | echo Catering to RMS by removing traces of \"gdbtk\"... | |
d3d75ec9 SS |
499 | for i in * ; do |
500 | if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then | |
a06cde09 SS |
501 | echo Removing traces of \"gdbtk\" out of $i... |
502 | cp $i new | |
503 | sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new | |
504 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
505 | echo Caching $i in .Recover... | |
506 | mv $i .Recover | |
507 | fi | |
508 | mv new $i | |
d3d75ec9 SS |
509 | fi |
510 | done | |
511 | else | |
a06cde09 | 512 | echo Leaving \"gdbtk\" in the sources... |
d3d75ec9 SS |
513 | for i in * ; do |
514 | if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then | |
a06cde09 | 515 | echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines... |
d3d75ec9 | 516 | cp $i new |
a06cde09 | 517 | sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new |
d3d75ec9 SS |
518 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
519 | echo Caching $i in .Recover... | |
520 | mv $i .Recover | |
521 | fi | |
522 | mv new $i | |
523 | fi | |
524 | done | |
525 | fi | |
526 | ||
3234b2e7 | 527 | if ( echo $* | grep keep\-v850e > /dev/null ) ; then |
8b19233b | 528 | for i in * ; do |
3234b2e7 | 529 | if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then |
8b19233b | 530 | if [ -n "${verbose}" ] ; then |
3234b2e7 | 531 | echo Keeping v850e stuff in $i |
8b19233b SG |
532 | fi |
533 | fi | |
534 | done | |
535 | else | |
536 | for i in * ; do | |
3234b2e7 | 537 | if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then |
8b19233b | 538 | if [ -n "${verbose}" ] ; then |
3234b2e7 | 539 | echo Removing traces of \"v850e\" from $i... |
8b19233b SG |
540 | fi |
541 | cp $i new | |
3234b2e7 | 542 | sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new |
8b19233b | 543 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
f8c41900 GRK |
544 | if [ -n "${verbose}" ] ; then |
545 | echo Caching $i in .Recover... | |
546 | fi | |
547 | mv $i .Recover | |
548 | fi | |
549 | mv new $i | |
550 | fi | |
551 | done | |
552 | fi | |
553 | ||
554 | if ( echo $* | grep keep\-vr4xxx > /dev/null ) ; then | |
555 | for i in * ; do | |
556 | if test ! -d $i && (grep sanitize-vr4xxx $i > /dev/null) ; then | |
557 | if [ -n "${verbose}" ] ; then | |
558 | echo Keeping vr4xxx stuff in $i | |
559 | fi | |
560 | fi | |
561 | done | |
562 | else | |
563 | for i in * ; do | |
564 | if test ! -d $i && (grep sanitize-vr4xxx $i > /dev/null) ; then | |
565 | if [ -n "${verbose}" ] ; then | |
566 | echo Removing traces of \"vr4xxx\" from $i... | |
567 | fi | |
568 | cp $i new | |
569 | sed '/start\-sanitize\-vr4xxx/,/end-\sanitize\-vr4xxx/d' < $i > new | |
570 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
8b19233b SG |
571 | if [ -n "${verbose}" ] ; then |
572 | echo Caching $i in .Recover... | |
573 | fi | |
574 | mv $i .Recover | |
575 | fi | |
576 | mv new $i | |
577 | fi | |
578 | done | |
579 | fi | |
580 | ||
e4e30cdc GRK |
581 | if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then |
582 | for i in * ; do | |
583 | if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then | |
584 | if [ -n "${verbose}" ] ; then | |
585 | echo Keeping vr4320 stuff in $i | |
586 | fi | |
587 | fi | |
588 | done | |
589 | else | |
590 | for i in * ; do | |
591 | if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then | |
592 | if [ -n "${verbose}" ] ; then | |
593 | echo Removing traces of \"vr4320\" from $i... | |
594 | fi | |
595 | cp $i new | |
596 | sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/d' < $i > new | |
597 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
598 | if [ -n "${verbose}" ] ; then | |
599 | echo Caching $i in .Recover... | |
600 | fi | |
601 | mv $i .Recover | |
602 | fi | |
603 | mv new $i | |
604 | fi | |
605 | done | |
606 | fi | |
607 | ||
276c2d7d GRK |
608 | if ( echo $* | grep keep\-r5900 > /dev/null ) ; then |
609 | for i in * ; do | |
610 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
611 | if [ -n "${verbose}" ] ; then | |
612 | echo Keeping r5900 stuff in $i | |
613 | fi | |
614 | fi | |
615 | done | |
616 | else | |
617 | for i in * ; do | |
618 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
619 | if [ -n "${verbose}" ] ; then | |
620 | echo Removing traces of \"r5900\" from $i... | |
621 | fi | |
622 | cp $i new | |
623 | sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new | |
624 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
625 | if [ -n "${verbose}" ] ; then | |
626 | echo Caching $i in .Recover... | |
627 | fi | |
628 | mv $i .Recover | |
629 | fi | |
630 | mv new $i | |
631 | fi | |
632 | done | |
633 | fi | |
634 | ||
899c4021 MA |
635 | if ( echo $* | grep keep\-tx19 > /dev/null ) ; then |
636 | for i in * ; do | |
637 | if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then | |
638 | if [ -n "${verbose}" ] ; then | |
639 | echo Keeping tx19 stuff in $i | |
640 | fi | |
641 | fi | |
642 | done | |
643 | else | |
644 | for i in * ; do | |
645 | if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then | |
646 | if [ -n "${verbose}" ] ; then | |
647 | echo Removing traces of \"tx19\" from $i... | |
648 | fi | |
649 | cp $i new | |
650 | sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new | |
651 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
652 | if [ -n "${verbose}" ] ; then | |
653 | echo Caching $i in .Recover... | |
3d400c09 MS |
654 | fi |
655 | mv $i .Recover | |
656 | fi | |
657 | mv new $i | |
658 | fi | |
659 | done | |
660 | fi | |
661 | ||
a50b45f3 GRK |
662 | if ( echo $* | grep keep\-tx49 > /dev/null ) ; then |
663 | for i in * ; do | |
664 | if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then | |
665 | if [ -n "${verbose}" ] ; then | |
666 | echo Keeping tx49 stuff in $i | |
667 | fi | |
668 | fi | |
669 | done | |
670 | else | |
671 | for i in * ; do | |
672 | if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then | |
673 | if [ -n "${verbose}" ] ; then | |
674 | echo Removing traces of \"tx49\" from $i... | |
675 | fi | |
676 | cp $i new | |
677 | sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new | |
678 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
679 | if [ -n "${verbose}" ] ; then | |
680 | echo Caching $i in .Recover... | |
681 | fi | |
682 | mv $i .Recover | |
683 | fi | |
684 | mv new $i | |
685 | fi | |
686 | done | |
687 | fi | |
688 | ||
64708c01 RU |
689 | if ( echo $* | grep keep\-sky > /dev/null ) ; then |
690 | for i in * ; do | |
691 | if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then | |
692 | if [ -n "${verbose}" ] ; then | |
693 | echo Keeping sky stuff in $i | |
694 | fi | |
695 | fi | |
696 | done | |
697 | else | |
698 | for i in * ; do | |
699 | if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then | |
700 | if [ -n "${verbose}" ] ; then | |
701 | echo Removing traces of \"sky\" from $i... | |
702 | fi | |
703 | cp $i new | |
704 | sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new | |
705 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
706 | if [ -n "${verbose}" ] ; then | |
707 | echo Caching $i in .Recover... | |
708 | fi | |
709 | mv $i .Recover | |
710 | fi | |
711 | mv new $i | |
712 | fi | |
713 | done | |
714 | fi | |
715 | ||
3d759c53 | 716 | if ( echo $* | grep keep\-cygnus > /dev/null ) ; then |
4251ff49 | 717 | for i in * ; do |
3d759c53 | 718 | if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then |
4251ff49 | 719 | if [ -n "${verbose}" ] ; then |
3d759c53 | 720 | echo Keeping cygnus stuff in $i |
4251ff49 AC |
721 | fi |
722 | fi | |
723 | done | |
724 | else | |
725 | for i in * ; do | |
3d759c53 | 726 | if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then |
4251ff49 | 727 | if [ -n "${verbose}" ] ; then |
3d759c53 | 728 | echo Removing traces of \"cygnus\" from $i... |
4251ff49 AC |
729 | fi |
730 | cp $i new | |
3d759c53 | 731 | sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new |
4251ff49 AC |
732 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
733 | if [ -n "${verbose}" ] ; then | |
734 | echo Caching $i in .Recover... | |
735 | fi | |
736 | mv $i .Recover | |
737 | fi | |
738 | mv new $i | |
739 | fi | |
740 | done | |
741 | fi | |
742 | ||
12967062 FF |
743 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then |
744 | for i in * ; do | |
745 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
746 | if [ -n "${verbose}" ] ; then | |
747 | echo Keeping tic80 stuff in $i | |
748 | fi | |
749 | fi | |
750 | done | |
751 | else | |
752 | for i in * ; do | |
753 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
754 | if [ -n "${verbose}" ] ; then | |
755 | echo Removing traces of \"tic80\" from $i... | |
756 | fi | |
757 | cp $i new | |
758 | sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new | |
759 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
760 | if [ -n "${verbose}" ] ; then | |
761 | echo Caching $i in .Recover... | |
762 | fi | |
763 | mv $i .Recover | |
764 | fi | |
765 | mv new $i | |
766 | fi | |
767 | done | |
768 | fi | |
769 | ||
17a56e13 JM |
770 | if ( echo $* | grep keep\-vr4111 > /dev/null ) ; then |
771 | for i in * ; do | |
772 | if test ! -d $i && (grep sanitize-vr4111 $i > /dev/null) ; then | |
773 | if [ -n "${verbose}" ] ; then | |
774 | echo Keeping vr4111 stuff in $i | |
775 | fi | |
776 | fi | |
777 | done | |
778 | else | |
779 | for i in * ; do | |
780 | if test ! -d $i && (grep sanitize-vr4111 $i > /dev/null) ; then | |
781 | if [ -n "${verbose}" ] ; then | |
782 | echo Removing traces of \"vr4111\" from $i... | |
783 | fi | |
784 | cp $i new | |
785 | sed '/start\-sanitize\-vr4111/,/end-\sanitize\-vr4111/d' < $i > new | |
786 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
787 | if [ -n "${verbose}" ] ; then | |
788 | echo Caching $i in .Recover... | |
789 | fi | |
790 | mv $i .Recover | |
791 | fi | |
792 | mv new $i | |
793 | fi | |
794 | done | |
795 | fi | |
796 | ||
e454c400 FF |
797 | if ( echo $* | grep keep\-ide > /dev/null ) ; then |
798 | for i in * ; do | |
799 | if test ! -d $i && (grep sanitize-ide $i > /dev/null) ; then | |
800 | if [ -n "${verbose}" ] ; then | |
801 | echo Keeping ide stuff in $i | |
802 | fi | |
803 | fi | |
804 | done | |
805 | else | |
806 | for i in * ; do | |
807 | if test ! -d $i && (grep sanitize-ide $i > /dev/null) ; then | |
808 | if [ -n "${verbose}" ] ; then | |
809 | echo Removing traces of \"ide\" from $i... | |
810 | fi | |
811 | cp $i new | |
812 | sed '/start\-sanitize\-ide/,/end-\sanitize\-ide/d' < $i > new | |
813 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
814 | if [ -n "${verbose}" ] ; then | |
815 | echo Caching $i in .Recover... | |
816 | fi | |
817 | mv $i .Recover | |
818 | fi | |
819 | mv new $i | |
820 | fi | |
821 | done | |
822 | fi | |
ed70a335 | 823 | |
a68e7120 FN |
824 | if ( echo $* | grep keep\-kod > /dev/null ) ; then |
825 | for i in * ; do | |
826 | if test ! -d $i && (grep sanitize-kod $i > /dev/null) ; then | |
827 | if [ -n "${verbose}" ] ; then | |
828 | echo Keeping kod stuff in $i | |
829 | fi | |
830 | fi | |
831 | done | |
832 | else | |
833 | for i in * ; do | |
834 | if test ! -d $i && (grep sanitize-kod $i > /dev/null) ; then | |
835 | if [ -n "${verbose}" ] ; then | |
836 | echo Removing traces of \"kod\" from $i... | |
837 | fi | |
838 | cp $i new | |
839 | sed '/start\-sanitize\-kod/,/end-\sanitize\-kod/d' < $i > new | |
840 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
841 | if [ -n "${verbose}" ] ; then | |
842 | echo Caching $i in .Recover... | |
843 | fi | |
844 | mv $i .Recover | |
845 | fi | |
846 | mv new $i | |
847 | fi | |
848 | done | |
849 | fi | |
850 | ||
51c5a136 JI |
851 | # This is a temporary measure to sanitize out references to the |
852 | # startup code need by the TclPro debugger. When that goes out | |
853 | # of alpha, we can remove this. | |
854 | ||
855 | if ( echo $* | grep keep\-tclpro > /dev/null ) ; then | |
856 | for i in * ; do | |
857 | if test ! -d $i && (grep sanitize-tclpro $i > /dev/null) ; then | |
858 | echo Keeping \"tclpro\" stuff in $i, but editing out sanitize lines... | |
859 | cp $i new | |
860 | sed -e '/start\-sanitize\-tclpro/d' -e '/end\-sanitize\-tclpro/d' < $i > new | |
861 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
862 | echo Caching $i in .Recover... | |
863 | mv $i .Recover | |
864 | fi | |
865 | mv new $i | |
866 | fi | |
867 | done | |
868 | else | |
869 | for i in * ; do | |
870 | if test ! -d $i && (grep sanitize-tclpro $i > /dev/null) ; then | |
871 | if [ -n "${verbose}" ] ; then | |
872 | echo Removing traces of \"tclpro\" from $i... | |
873 | fi | |
874 | cp $i new | |
875 | sed '/start\-sanitize\-tclpro/,/end-\sanitize\-tclpro/d' < $i > new | |
876 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
877 | if [ -n "${verbose}" ] ; then | |
878 | echo Caching $i in .Recover... | |
879 | fi | |
880 | mv $i .Recover | |
881 | fi | |
882 | mv new $i | |
883 | fi | |
884 | done | |
885 | fi | |
886 | ||
6e8bee16 SG |
887 | if ( echo $* | grep keep\-java > /dev/null ) ; then |
888 | for i in * ; do | |
889 | if test ! -d $i && (grep sanitize-java $i > /dev/null) ; then | |
890 | if [ -n "${verbose}" ] ; then | |
891 | echo Keeping java stuff in $i | |
892 | fi | |
893 | fi | |
894 | done | |
895 | else | |
896 | for i in * ; do | |
897 | if test ! -d $i && (grep sanitize-java $i > /dev/null) ; then | |
898 | if [ -n "${verbose}" ] ; then | |
899 | echo Removing traces of \"java\" from $i... | |
900 | fi | |
901 | cp $i new | |
902 | sed '/start\-sanitize\-java/,/end-\sanitize\-java/d' < $i > new | |
903 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
904 | if [ -n "${verbose}" ] ; then | |
905 | echo Caching $i in .Recover... | |
906 | fi | |
907 | mv $i .Recover | |
908 | fi | |
909 | mv new $i | |
910 | fi | |
911 | done | |
912 | fi | |
913 | ||
875f23a1 AC |
914 | if ( echo $* | grep keep\-carp > /dev/null ) ; then |
915 | for i in * ; do | |
916 | if test ! -d $i && (grep sanitize-carp $i > /dev/null) ; then | |
917 | if [ -n "${verbose}" ] ; then | |
918 | echo Keeping carp stuff in $i | |
919 | fi | |
920 | fi | |
921 | done | |
922 | else | |
923 | for i in * ; do | |
924 | if test ! -d $i && (grep sanitize-carp $i > /dev/null) ; then | |
925 | if [ -n "${verbose}" ] ; then | |
926 | echo Removing traces of \"carp\" from $i... | |
927 | fi | |
928 | cp $i new | |
929 | sed '/start\-sanitize\-carp/,/end-\sanitize\-carp/d' < $i > new | |
930 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
931 | if [ -n "${verbose}" ] ; then | |
932 | echo Caching $i in .Recover... | |
933 | fi | |
934 | mv $i .Recover | |
935 | fi | |
936 | mv new $i | |
937 | fi | |
938 | done | |
939 | fi | |
940 | ||
03c4ce2f MT |
941 | for i in * ; do |
942 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then | |
943 | echo '***' Some mentions of Sanitize are still left in $i! 1>&2 | |
944 | fi | |
945 | done | |
946 | ||
947 | # | |
eeadf5c2 | 948 | # End of file. |