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 | ||
9d48327c | 18 | gdbtk_files="README.GDBTK gdbtk.c gdbtcl gdbtcl2 gdbtk.tcl" |
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 | ||
bfe8f516 | 49 | gm_files="gmagic.c gmagic.h" |
cd10c7e3 SG |
50 | |
51 | if ( echo $* | grep keep\-gm > /dev/null ) ; then | |
52 | keep_these_too="${gm_files} ${keep_these_too}" | |
53 | if [ -n "${verbose}" ] ; then | |
54 | echo Keeping ${gm_files} | |
55 | fi | |
56 | else | |
57 | lose_these_too="${gm_files} ${lose_these_too}" | |
58 | if [ -n "${verbose}" ] ; then | |
59 | echo Deleting ${gm_files} | |
60 | fi | |
61 | fi | |
62 | ||
12967062 FF |
63 | tic80_files="tic80-tdep.c" |
64 | ||
65 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then | |
66 | keep_these_too="${tic80_files} ${keep_these_too}" | |
67 | if [ -n "${verbose}" ] ; then | |
68 | echo Keeping ${tic80_files} | |
69 | fi | |
70 | else | |
71 | lose_these_too="${tic80_files} ${lose_these_too}" | |
72 | if [ -n "${verbose}" ] ; then | |
73 | echo Deleting ${tic80_files} | |
74 | fi | |
75 | fi | |
76 | ||
45a70ed6 SG |
77 | d30v_files="d30v-tdep.c" |
78 | ||
79 | if ( echo $* | grep keep\-d30v > /dev/null ) ; then | |
80 | keep_these_too="${d30v_files} ${keep_these_too}" | |
81 | if [ -n "${verbose}" ] ; then | |
82 | echo Keeping ${d30v_files} | |
83 | fi | |
84 | else | |
85 | lose_these_too="${d30v_files} ${lose_these_too}" | |
86 | if [ -n "${verbose}" ] ; then | |
87 | echo Deleting ${d30v_files} | |
88 | fi | |
89 | fi | |
90 | ||
eeadf5c2 RP |
91 | # All files listed between the "Things-to-keep:" line and the |
92 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
93 | # Directories listed in this section will have their own Sanitize | |
94 | # called. Directories not listed will be removed in their entirety | |
95 | # with rm -rf. | |
96 | ||
97 | Things-to-keep: | |
98 | ||
a96c3444 | 99 | 29k-share |
eeadf5c2 RP |
100 | COPYING |
101 | ChangeLog | |
102 | ChangeLog-3.x | |
ee799e2a | 103 | ChangeLog-9091 |
5debf76d | 104 | ChangeLog-92 |
1ea8b1dc | 105 | ChangeLog-93 |
73cb6167 | 106 | ChangeLog-94 |
543a9fac | 107 | ChangeLog-95 |
c3dccb2a | 108 | ChangeLog-96 |
bdf3621b | 109 | Makefile.in |
ddce75e0 | 110 | NEWS |
eeadf5c2 RP |
111 | README |
112 | TODO | |
b4b0321b | 113 | a29k-tdep.c |
203a8d54 | 114 | a68v-nat.c |
7574859f | 115 | abug-rom.c |
5436fc65 | 116 | aclocal.m4 |
5d93d326 | 117 | acconfig.h |
cef4c2e7 PS |
118 | alpha-nat.c |
119 | alpha-tdep.c | |
203a8d54 | 120 | altos-xdep.c |
1c95d7ab JK |
121 | annotate.c |
122 | annotate.h | |
2bf15e13 | 123 | arc-tdep.c |
eeadf5c2 | 124 | arm-convert.s |
eeadf5c2 RP |
125 | arm-tdep.c |
126 | arm-xdep.c | |
dafd5ad4 FF |
127 | bcache.c |
128 | bcache.h | |
eeadf5c2 RP |
129 | blockframe.c |
130 | breakpoint.c | |
131 | breakpoint.h | |
2ce38c6d JG |
132 | buildsym.c |
133 | buildsym.h | |
56d921a8 | 134 | c-exp.y |
22e39759 FF |
135 | c-lang.c |
136 | c-lang.h | |
a8a69e63 FF |
137 | c-typeprint.c |
138 | c-valprint.c | |
be772100 | 139 | call-cmds.h |
3e19d545 | 140 | ch-exp.c |
b1086bf5 FF |
141 | ch-lang.c |
142 | ch-lang.h | |
143 | ch-typeprint.c | |
144 | ch-valprint.c | |
ead291d4 SG |
145 | coff-solib.c |
146 | coff-solib.h | |
eeadf5c2 RP |
147 | coffread.c |
148 | command.c | |
149 | command.h | |
51b80b00 FF |
150 | complaints.c |
151 | complaints.h | |
f187c3a4 | 152 | config |
18ea4416 | 153 | config.in |
5436fc65 | 154 | configure |
edda595e | 155 | configure.host |
eeadf5c2 | 156 | configure.in |
edda595e | 157 | configure.tgt |
eeadf5c2 RP |
158 | convex-tdep.c |
159 | convex-xdep.c | |
eeadf5c2 RP |
160 | copying.awk |
161 | copying.c | |
a1df8e78 FF |
162 | core-aout.c |
163 | core-regset.c | |
256533df | 164 | core-sol2.c |
1738bcd3 | 165 | corefile.c |
dfc82617 | 166 | corelow.c |
a8a69e63 | 167 | cp-valprint.c |
5de0c648 | 168 | cpu32bug-rom.c |
670a8e09 | 169 | cxux-nat.c |
a3c5b9a4 | 170 | d10v-tdep.c |
9ef70b29 | 171 | dbug-rom.c |
eeadf5c2 | 172 | dbxread.c |
755892d6 RP |
173 | dcache.c |
174 | dcache.h | |
4659e3b3 DP |
175 | debugify.h |
176 | debugify.c | |
eeadf5c2 | 177 | defs.h |
be0ed5bb | 178 | delta68-nat.c |
2dbde378 | 179 | demangle.c |
66df708b | 180 | dink32-rom.c |
eeadf5c2 | 181 | doc |
0a8f1742 | 182 | dpx2-nat.c |
1aa26557 | 183 | dsrec.c |
2d628281 JK |
184 | dst.h |
185 | dstread.c | |
bb5a10fe | 186 | dwarf2read.c |
6fccdaf4 FF |
187 | dwarfread.c |
188 | elfread.c | |
eeadf5c2 RP |
189 | environ.c |
190 | environ.h | |
191 | eval.c | |
192 | exec.c | |
ce0787ef | 193 | exc_request.defs |
eeadf5c2 | 194 | expprint.c |
eeadf5c2 | 195 | expression.h |
042bb079 SS |
196 | f-exp.y |
197 | f-lang.c | |
198 | f-lang.h | |
199 | f-typeprint.c | |
200 | f-valprint.c | |
eeadf5c2 | 201 | findvar.c |
e745abe5 | 202 | fork-child.c |
eeadf5c2 | 203 | frame.h |
2b576293 C |
204 | gdb_stat.h |
205 | gdb_string.h | |
ed7c0948 | 206 | gdb-stabs.h |
0857b46a | 207 | gdb.1 |
56b73ad2 | 208 | gdb.gdb |
dec525ce | 209 | gdba.el |
eeadf5c2 RP |
210 | gdbcmd.h |
211 | gdbcore.h | |
0cb7d01d | 212 | gdbinit.in |
463a71db | 213 | gdbserver |
fdfa3315 | 214 | gdbthread.h |
a1f596f4 FF |
215 | gdbtypes.c |
216 | gdbtypes.h | |
ce0787ef FF |
217 | gnu-nat.c |
218 | gnu-nat.h | |
f2cd3441 SS |
219 | gnu-regex.c |
220 | gnu-regex.h | |
ae0ea72e | 221 | go32-xdep.c |
0f1cf145 | 222 | gould-tdep.c |
eeadf5c2 | 223 | gould-xdep.c |
0a8ed751 | 224 | h8300-tdep.c |
5cd0940a | 225 | h8500-tdep.c |
b1de302a | 226 | hp300ux-nat.c |
66a1aa07 | 227 | hppa-tdep.c |
ca048722 | 228 | hppab-nat.c |
ca048722 | 229 | hppah-nat.c |
2d2959e8 | 230 | hppam3-nat.c |
2848f793 | 231 | hpread.c |
5621d991 | 232 | hpux-thread.c |
eeadf5c2 RP |
233 | i386-stub.c |
234 | i386-tdep.c | |
2c7ab4ca | 235 | i386aix-nat.c |
0e35d2f3 | 236 | i386b-nat.c |
ce0787ef | 237 | i386gnu-nat.c |
c458501e | 238 | i386ly-tdep.c |
c2d751d5 | 239 | i386m3-nat.c |
a113beac | 240 | i386mach-nat.c |
c7c94073 | 241 | i386v-nat.c |
4d0eabff | 242 | i386v4-nat.c |
56d921a8 | 243 | i387-tdep.c |
eeadf5c2 | 244 | i960-tdep.c |
eeadf5c2 RP |
245 | infcmd.c |
246 | inferior.h | |
247 | inflow.c | |
248 | infptrace.c | |
249 | infrun.c | |
eeadf5c2 | 250 | inftarg.c |
a70dc898 | 251 | irix4-nat.c |
a2f1e2e5 | 252 | irix5-nat.c |
4aadcb02 | 253 | isi-xdep.c |
166606b7 PB |
254 | jv-exp.y |
255 | jv-lang.c | |
256 | jv-lang.h | |
257 | jv-valprint.c | |
258 | jv-typeprint.c | |
eeadf5c2 | 259 | kdb-start.c |
56d921a8 JG |
260 | language.c |
261 | language.h | |
069e0566 | 262 | lynx-nat.c |
56d921a8 | 263 | m2-exp.y |
22e39759 FF |
264 | m2-lang.c |
265 | m2-lang.h | |
a8a69e63 FF |
266 | m2-typeprint.c |
267 | m2-valprint.c | |
c2d751d5 | 268 | m3-nat.c |
038e48cf DE |
269 | m32r-rom.c |
270 | m32r-stub.c | |
271 | m32r-tdep.c | |
eeadf5c2 RP |
272 | m68k-stub.c |
273 | m68k-tdep.c | |
b7f3b6d5 | 274 | m68knbsd-nat.c |
173a4f1b | 275 | m88k-nat.c |
eeadf5c2 | 276 | m88k-tdep.c |
49073be0 SS |
277 | mac-defs.h |
278 | mac-xdep.c | |
c24ce5e2 | 279 | mac-gdb.r |
2e81067b | 280 | mac-nat.c |
eeadf5c2 | 281 | main.c |
0239d9b3 | 282 | maint.c |
a2f1e2e5 | 283 | mdebugread.c |
eeadf5c2 | 284 | mem-break.c |
1111151a | 285 | minimon.h |
a1f596f4 | 286 | minsyms.c |
a70dc898 | 287 | mips-nat.c |
eeadf5c2 | 288 | mips-tdep.c |
c2d751d5 | 289 | mipsm3-nat.c |
2fe3b329 | 290 | mipsv4-nat.c |
eeadf5c2 | 291 | mipsread.c |
e385d6e0 | 292 | mn10200-tdep.c |
4c7be7ba | 293 | mn10300-tdep.c |
a4cf4e29 | 294 | mon960-rom.c |
2f1c04d1 | 295 | monitor.h |
25ca0dfc | 296 | monitor.c |
49073be0 | 297 | mpw-config.in |
c24ce5e2 | 298 | mpw-make.sed |
ce0787ef FF |
299 | msg.defs |
300 | msg_reply.defs | |
eeadf5c2 RP |
301 | news-xdep.c |
302 | nindy-share | |
303 | nindy-tdep.c | |
bbc34049 | 304 | nlm |
db85f523 | 305 | nlmread.c |
ce0787ef | 306 | notify.defs |
0f1cf145 | 307 | ns32k-tdep.c |
c2d751d5 | 308 | ns32km3-nat.c |
a1f596f4 | 309 | objfiles.c |
5e2e79f8 | 310 | objfiles.h |
9cf7f520 GN |
311 | ocd.c |
312 | ocd.h | |
25ca0dfc | 313 | op50-rom.c |
25200748 | 314 | os9kread.c |
7d44ab7f | 315 | osf-share |
cef4c2e7 | 316 | osfsolib.c |
56d921a8 JG |
317 | parse.c |
318 | parser-defs.h | |
7e258d18 | 319 | partial-stab.h |
2d777c7e | 320 | ppcbug-rom.c |
9cf7f520 | 321 | ppc-bdm.c |
eeadf5c2 | 322 | printcmd.c |
ce0787ef | 323 | process_reply.defs |
6fccdaf4 | 324 | procfs.c |
c6889f63 | 325 | ptx4-nat.c |
eeadf5c2 RP |
326 | pyr-tdep.c |
327 | pyr-xdep.c | |
1111151a | 328 | remote-adapt.c |
3e437fe6 | 329 | remote-array.c |
203a8d54 | 330 | remote-bug.c |
a0b28275 | 331 | remote-e7000.c |
eeadf5c2 | 332 | remote-eb.c |
91c87211 | 333 | remote-es.c |
93584146 | 334 | remote-est.c |
d93b79d9 | 335 | remote-hms.c |
c2a0f1cb | 336 | remote-mips.c |
1111151a | 337 | remote-mm.c |
eeadf5c2 | 338 | remote-nindy.c |
a55c3291 | 339 | remote-nrom.c |
25200748 | 340 | remote-os9k.c |
dedcc91d | 341 | remote-rdp.c |
23cb1bc1 | 342 | remote-sds.c |
ec25d19b | 343 | remote-sim.c |
91c87211 | 344 | remote-st.c |
e4dd52dd | 345 | remote-udi.c |
3283eab3 JK |
346 | remote-utils.c |
347 | remote-utils.h | |
eeadf5c2 | 348 | remote-vx.c |
456f6de6 | 349 | remote-vx29k.c |
44505113 DW |
350 | remote-vx68.c |
351 | remote-vx960.c | |
88890fb5 AMT |
352 | remote-vxmips.c |
353 | remote-vxsparc.c | |
eeadf5c2 | 354 | remote.c |
ce0787ef | 355 | reply_mig_hack.awk |
dc48694c | 356 | rs6000-nat.c |
6373dbe3 | 357 | rs6000-tdep.c |
fb9f8033 | 358 | rom68k-rom.c |
eeadf5c2 | 359 | saber.suppress |
3c02944a | 360 | scm-exp.c |
0e4ca328 | 361 | scm-lang.c |
5b4d668a PB |
362 | scm-lang.h |
363 | scm-tags.h | |
364 | scm-valprint.c | |
55679787 | 365 | ser-e7kpc.c |
ddce75e0 | 366 | ser-go32.c |
49073be0 | 367 | ser-mac.c |
9cf7f520 | 368 | ser-ocd.c |
4d551aa3 | 369 | ser-tcp.c |
e8a5f0ed SG |
370 | ser-unix.c |
371 | serial.c | |
ddce75e0 | 372 | serial.h |
8f5a8e2f | 373 | sh-stub.c |
9faacb92 | 374 | sh-tdep.c |
1480482a | 375 | sh3-rom.c |
eeadf5c2 | 376 | signals.h |
8fc2b417 | 377 | sol-thread.c |
eeadf5c2 | 378 | solib.c |
a1f596f4 | 379 | solib.h |
bfe2f12b | 380 | somread.c |
bb140953 JL |
381 | somsolib.c |
382 | somsolib.h | |
eeadf5c2 | 383 | source.c |
dfc82617 | 384 | sparc-nat.c |
c9715956 | 385 | sparc-stub.c |
eeadf5c2 | 386 | sparc-tdep.c |
2b14c195 KH |
387 | sparcl-stub.c |
388 | sparcl-tdep.c | |
012be3ce | 389 | sparclet-rom.c |
6b01dc65 | 390 | sparclet-stub.c |
5c8ba017 | 391 | srec.h |
d07734e3 FF |
392 | stabsread.c |
393 | stabsread.h | |
eeadf5c2 RP |
394 | stack.c |
395 | standalone.c | |
1e6f592d | 396 | stop-gdb.c |
eeadf5c2 | 397 | stuff.c |
dc48694c | 398 | sun3-nat.c |
61bbb1c2 | 399 | sun386-nat.c |
eeadf5c2 RP |
400 | symfile.c |
401 | symfile.h | |
d39d83c1 | 402 | symm-nat.c |
203a8d54 | 403 | symm-tdep.c |
eeadf5c2 RP |
404 | symmisc.c |
405 | symtab.c | |
406 | symtab.h | |
0f1cf145 | 407 | tahoe-tdep.c |
eeadf5c2 RP |
408 | target.c |
409 | target.h | |
eeadf5c2 | 410 | terminal.h |
a2df03aa | 411 | testsuite |
6a21c756 | 412 | thread.c |
172559ec JK |
413 | top.c |
414 | top.h | |
a8a69e63 FF |
415 | typeprint.c |
416 | typeprint.h | |
6bf98ac0 | 417 | ultra3-nat.c |
1111151a | 418 | ultra3-xdep.c |
eeadf5c2 RP |
419 | umax-xdep.c |
420 | utils.c | |
446df8b8 NC |
421 | v850-tdep.c |
422 | v850ice.c | |
eeadf5c2 RP |
423 | valarith.c |
424 | valops.c | |
425 | valprint.c | |
a8a69e63 | 426 | valprint.h |
eeadf5c2 RP |
427 | value.h |
428 | values.c | |
0f1cf145 | 429 | vax-tdep.c |
eeadf5c2 | 430 | vx-share |
d723ade7 | 431 | w65-tdep.c |
25ca0dfc | 432 | w89k-rom.c |
24e60978 | 433 | win32-nat.c |
6373dbe3 | 434 | xcoffread.c |
1eeba686 PB |
435 | xcoffsolib.c |
436 | xcoffsolib.h | |
5de0c648 SG |
437 | xmodem.c |
438 | xmodem.h | |
2aedd91e | 439 | z8k-tdep.c |
eeadf5c2 | 440 | |
f747d259 | 441 | # Things which are explicitly *not* kept, for now. |
f747d259 | 442 | |
87756e15 RP |
443 | Things-to-lose: |
444 | ||
62b1697e | 445 | HOW_TO_RELEASE |
446df8b8 | 446 | ser-go32-para.c |
87756e15 | 447 | |
eeadf5c2 RP |
448 | Do-last: |
449 | ||
d3d75ec9 SS |
450 | # Don't try to clean directories here, as the 'mv' command will fail. |
451 | # Also, grep fails on NFS mounted directories. | |
a06cde09 SS |
452 | if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then |
453 | echo Catering to RMS by removing traces of \"gdbtk\"... | |
d3d75ec9 SS |
454 | for i in * ; do |
455 | if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then | |
a06cde09 SS |
456 | echo Removing traces of \"gdbtk\" out of $i... |
457 | cp $i new | |
458 | sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new | |
459 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
460 | echo Caching $i in .Recover... | |
461 | mv $i .Recover | |
462 | fi | |
463 | mv new $i | |
d3d75ec9 SS |
464 | fi |
465 | done | |
466 | else | |
a06cde09 | 467 | echo Leaving \"gdbtk\" in the sources... |
d3d75ec9 SS |
468 | for i in * ; do |
469 | if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then | |
a06cde09 | 470 | echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines... |
d3d75ec9 | 471 | cp $i new |
a06cde09 | 472 | sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new |
d3d75ec9 SS |
473 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
474 | echo Caching $i in .Recover... | |
475 | mv $i .Recover | |
476 | fi | |
477 | mv new $i | |
478 | fi | |
479 | done | |
480 | fi | |
481 | ||
cd10c7e3 SG |
482 | if ( echo $* | grep keep\-gm > /dev/null ) ; then |
483 | for i in * ; do | |
484 | if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then | |
485 | if [ -n "${verbose}" ] ; then | |
486 | echo Keeping gm stuff in $i | |
487 | fi | |
488 | fi | |
489 | done | |
490 | else | |
491 | for i in * ; do | |
492 | if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then | |
493 | if [ -n "${verbose}" ] ; then | |
494 | echo Removing traces of \"gm\" from $i... | |
495 | fi | |
496 | cp $i new | |
497 | sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new | |
498 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
499 | if [ -n "${verbose}" ] ; then | |
500 | echo Caching $i in .Recover... | |
501 | fi | |
502 | mv $i .Recover | |
503 | fi | |
504 | mv new $i | |
505 | fi | |
3234b2e7 NC |
506 | done |
507 | fi | |
508 | ||
509 | if ( echo $* | grep keep\-v850e > /dev/null ) ; then | |
8b19233b | 510 | for i in * ; do |
3234b2e7 | 511 | if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then |
8b19233b | 512 | if [ -n "${verbose}" ] ; then |
3234b2e7 | 513 | echo Keeping v850e stuff in $i |
8b19233b SG |
514 | fi |
515 | fi | |
516 | done | |
517 | else | |
518 | for i in * ; do | |
3234b2e7 | 519 | if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then |
8b19233b | 520 | if [ -n "${verbose}" ] ; then |
3234b2e7 | 521 | echo Removing traces of \"v850e\" from $i... |
8b19233b SG |
522 | fi |
523 | cp $i new | |
3234b2e7 | 524 | sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new |
8b19233b SG |
525 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
526 | if [ -n "${verbose}" ] ; then | |
527 | echo Caching $i in .Recover... | |
528 | fi | |
529 | mv $i .Recover | |
530 | fi | |
531 | mv new $i | |
532 | fi | |
533 | done | |
534 | fi | |
535 | ||
73bb4886 FF |
536 | if ( echo $* | grep keep\-sh4 > /dev/null ) ; then |
537 | for i in * ; do | |
538 | if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then | |
539 | if [ -n "${verbose}" ] ; then | |
540 | echo Keeping sh4 stuff in $i | |
541 | fi | |
542 | fi | |
543 | done | |
544 | else | |
545 | for i in * ; do | |
546 | if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then | |
547 | if [ -n "${verbose}" ] ; then | |
548 | echo Removing traces of \"sh4\" from $i... | |
549 | fi | |
550 | cp $i new | |
551 | sed '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' < $i > new | |
552 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
553 | if [ -n "${verbose}" ] ; then | |
554 | echo Caching $i in .Recover... | |
555 | fi | |
556 | mv $i .Recover | |
557 | fi | |
558 | mv new $i | |
559 | fi | |
560 | done | |
561 | fi | |
562 | ||
276c2d7d GRK |
563 | if ( echo $* | grep keep\-r5900 > /dev/null ) ; then |
564 | for i in * ; do | |
565 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
566 | if [ -n "${verbose}" ] ; then | |
567 | echo Keeping r5900 stuff in $i | |
568 | fi | |
569 | fi | |
570 | done | |
571 | else | |
572 | for i in * ; do | |
573 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then | |
574 | if [ -n "${verbose}" ] ; then | |
575 | echo Removing traces of \"r5900\" from $i... | |
576 | fi | |
577 | cp $i new | |
578 | sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new | |
579 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
580 | if [ -n "${verbose}" ] ; then | |
581 | echo Caching $i in .Recover... | |
582 | fi | |
583 | mv $i .Recover | |
584 | fi | |
585 | mv new $i | |
586 | fi | |
587 | done | |
588 | fi | |
589 | ||
899c4021 MA |
590 | if ( echo $* | grep keep\-tx19 > /dev/null ) ; then |
591 | for i in * ; do | |
592 | if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then | |
593 | if [ -n "${verbose}" ] ; then | |
594 | echo Keeping tx19 stuff in $i | |
595 | fi | |
596 | fi | |
597 | done | |
598 | else | |
599 | for i in * ; do | |
600 | if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then | |
601 | if [ -n "${verbose}" ] ; then | |
602 | echo Removing traces of \"tx19\" from $i... | |
603 | fi | |
604 | cp $i new | |
605 | sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new | |
606 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
607 | if [ -n "${verbose}" ] ; then | |
608 | echo Caching $i in .Recover... | |
609 | fi | |
610 | mv $i .Recover | |
611 | fi | |
612 | mv new $i | |
613 | fi | |
614 | done | |
615 | fi | |
616 | ||
00e40d11 | 617 | if ( echo $* | grep keep\-tx39 > /dev/null ) ; then |
3d400c09 | 618 | for i in * ; do |
00e40d11 | 619 | if test ! -d $i && (grep sanitize-tx39 $i > /dev/null) ; then |
3d400c09 | 620 | if [ -n "${verbose}" ] ; then |
00e40d11 | 621 | echo Keeping tx39 stuff in $i |
3d400c09 MS |
622 | fi |
623 | fi | |
624 | done | |
625 | else | |
626 | for i in * ; do | |
00e40d11 | 627 | if test ! -d $i && (grep sanitize-tx39 $i > /dev/null) ; then |
3d400c09 | 628 | if [ -n "${verbose}" ] ; then |
00e40d11 | 629 | echo Removing traces of \"tx39\" from $i... |
3d400c09 MS |
630 | fi |
631 | cp $i new | |
00e40d11 | 632 | sed '/start\-sanitize\-tx39/,/end-\sanitize\-tx39/d' < $i > new |
3d400c09 MS |
633 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
634 | if [ -n "${verbose}" ] ; then | |
635 | echo Caching $i in .Recover... | |
636 | fi | |
637 | mv $i .Recover | |
638 | fi | |
639 | mv new $i | |
640 | fi | |
641 | done | |
642 | fi | |
643 | ||
12967062 FF |
644 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then |
645 | for i in * ; do | |
646 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
647 | if [ -n "${verbose}" ] ; then | |
648 | echo Keeping tic80 stuff in $i | |
649 | fi | |
650 | fi | |
651 | done | |
652 | else | |
653 | for i in * ; do | |
654 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then | |
655 | if [ -n "${verbose}" ] ; then | |
656 | echo Removing traces of \"tic80\" from $i... | |
657 | fi | |
658 | cp $i new | |
659 | sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new | |
660 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
661 | if [ -n "${verbose}" ] ; then | |
662 | echo Caching $i in .Recover... | |
663 | fi | |
664 | mv $i .Recover | |
665 | fi | |
666 | mv new $i | |
667 | fi | |
668 | done | |
669 | fi | |
670 | ||
45a70ed6 SG |
671 | if ( echo $* | grep keep\-d30v > /dev/null ) ; then |
672 | for i in * ; do | |
673 | if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then | |
674 | if [ -n "${verbose}" ] ; then | |
675 | echo Keeping d30v stuff in $i | |
676 | fi | |
677 | fi | |
678 | done | |
679 | else | |
680 | for i in * ; do | |
681 | if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then | |
682 | if [ -n "${verbose}" ] ; then | |
683 | echo Removing traces of \"d30v\" from $i... | |
684 | fi | |
685 | cp $i new | |
686 | sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new | |
687 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
688 | if [ -n "${verbose}" ] ; then | |
689 | echo Caching $i in .Recover... | |
690 | fi | |
691 | mv $i .Recover | |
692 | fi | |
693 | mv new $i | |
694 | fi | |
695 | done | |
696 | fi | |
697 | ||
03c4ce2f MT |
698 | for i in * ; do |
699 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then | |
700 | echo '***' Some mentions of Sanitize are still left in $i! 1>&2 | |
701 | fi | |
702 | done | |
703 | ||
704 | # | |
eeadf5c2 | 705 | # End of file. |