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