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