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