| 1 | # .Sanitize for devo/gdb. |
| 2 | |
| 3 | # Each directory to survive its way into a release will need a file |
| 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 |
| 14 | # done in this directory. |
| 15 | |
| 16 | Do-first: |
| 17 | |
| 18 | gdbtk_files="ChangeLog-gdbtk README.GDBTK gdbtk.c gdbtcl2 gdb.rc gdbtool.ico" |
| 19 | |
| 20 | if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then |
| 21 | lose_these_too="${gdbtk_files} ${lose_these_too}" |
| 22 | if [ -n "${verbose}" ] ; then |
| 23 | echo Deleting ${gdbtk_files} |
| 24 | fi |
| 25 | else |
| 26 | keep_these_too="${gdbtk_files} ${keep_these_too}" |
| 27 | if [ -n "${verbose}" ] ; then |
| 28 | echo Keeping ${gdbtk_files} |
| 29 | fi |
| 30 | fi |
| 31 | |
| 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 | |
| 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 | |
| 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 | |
| 77 | sky_files="txvu-tdep.c" |
| 78 | |
| 79 | if ( echo $* | grep keep\-sky > /dev/null ) ; then |
| 80 | keep_these_too="${sky_files} ${keep_these_too}" |
| 81 | if [ -n "${verbose}" ] ; then |
| 82 | echo Keeping ${sky_files} |
| 83 | fi |
| 84 | else |
| 85 | lose_these_too="${sky_files} ${lose_these_too}" |
| 86 | if [ -n "${verbose}" ] ; then |
| 87 | echo Deleting ${sky_files} |
| 88 | fi |
| 89 | fi |
| 90 | |
| 91 | java_files="jv-exp.y jv-lang.c jv-lang.h jv-typeprint.c jv-valprint.c" |
| 92 | |
| 93 | if ( echo $* | grep keep\-java > /dev/null ) ; then |
| 94 | keep_these_too="${java_files} ${keep_these_too}" |
| 95 | if [ -n "${verbose}" ] ; then |
| 96 | echo Keeping ${java_files} |
| 97 | fi |
| 98 | else |
| 99 | lose_these_too="${java_files} ${lose_these_too}" |
| 100 | if [ -n "${verbose}" ] ; then |
| 101 | echo Deleting ${java_files} |
| 102 | fi |
| 103 | fi |
| 104 | |
| 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 | |
| 113 | 29k-share |
| 114 | COPYING |
| 115 | ChangeLog |
| 116 | ChangeLog-3.x |
| 117 | ChangeLog-9091 |
| 118 | ChangeLog-92 |
| 119 | ChangeLog-93 |
| 120 | ChangeLog-94 |
| 121 | ChangeLog-95 |
| 122 | ChangeLog-96 |
| 123 | ChangeLog-97 |
| 124 | Makefile.in |
| 125 | NEWS |
| 126 | README |
| 127 | TODO |
| 128 | a29k-tdep.c |
| 129 | a68v-nat.c |
| 130 | abug-rom.c |
| 131 | acconfig.h |
| 132 | aclocal.m4 |
| 133 | alpha-nat.c |
| 134 | alpha-tdep.c |
| 135 | altos-xdep.c |
| 136 | annotate.c |
| 137 | annotate.h |
| 138 | arc-tdep.c |
| 139 | arm-convert.s |
| 140 | arm-tdep.c |
| 141 | arm-xdep.c |
| 142 | bcache.c |
| 143 | bcache.h |
| 144 | blockframe.c |
| 145 | breakpoint.c |
| 146 | breakpoint.h |
| 147 | buildsym.c |
| 148 | buildsym.h |
| 149 | c-exp.y |
| 150 | c-lang.c |
| 151 | c-lang.h |
| 152 | c-typeprint.c |
| 153 | c-valprint.c |
| 154 | call-cmds.h |
| 155 | ch-exp.c |
| 156 | ch-lang.c |
| 157 | ch-lang.h |
| 158 | ch-typeprint.c |
| 159 | ch-valprint.c |
| 160 | coff-solib.c |
| 161 | coff-solib.h |
| 162 | coffread.c |
| 163 | command.c |
| 164 | command.h |
| 165 | complaints.c |
| 166 | complaints.h |
| 167 | config |
| 168 | config.in |
| 169 | configure |
| 170 | configure.host |
| 171 | configure.in |
| 172 | configure.tgt |
| 173 | convex-tdep.c |
| 174 | convex-xdep.c |
| 175 | copying.awk |
| 176 | copying.c |
| 177 | core-aout.c |
| 178 | core-regset.c |
| 179 | core-sol2.c |
| 180 | corefile.c |
| 181 | corelow.c |
| 182 | cp-valprint.c |
| 183 | cpu32bug-rom.c |
| 184 | cxux-nat.c |
| 185 | d10v-tdep.c |
| 186 | dbug-rom.c |
| 187 | dbxread.c |
| 188 | dcache.c |
| 189 | dcache.h |
| 190 | debugify.c |
| 191 | debugify.h |
| 192 | defs.h |
| 193 | delta68-nat.c |
| 194 | demangle.c |
| 195 | dink32-rom.c |
| 196 | doc |
| 197 | dpx2-nat.c |
| 198 | dsrec.c |
| 199 | dst.h |
| 200 | dstread.c |
| 201 | dve3900-rom.c |
| 202 | dwarf2read.c |
| 203 | dwarfread.c |
| 204 | elfread.c |
| 205 | environ.c |
| 206 | environ.h |
| 207 | eval.c |
| 208 | exc_request.defs |
| 209 | exec.c |
| 210 | expprint.c |
| 211 | expression.h |
| 212 | f-exp.y |
| 213 | f-lang.c |
| 214 | f-lang.h |
| 215 | f-typeprint.c |
| 216 | f-valprint.c |
| 217 | findvar.c |
| 218 | fork-child.c |
| 219 | frame.h |
| 220 | gdb-stabs.h |
| 221 | gdb.1 |
| 222 | gdb.gdb |
| 223 | gdb_stat.h |
| 224 | gdb_string.h |
| 225 | gdba.el |
| 226 | gdbcmd.h |
| 227 | gdbcore.h |
| 228 | gdbinit.in |
| 229 | gdbserver |
| 230 | gdbthread.h |
| 231 | gdbtypes.c |
| 232 | gdbtypes.h |
| 233 | gnu-nat.c |
| 234 | gnu-nat.h |
| 235 | gnu-regex.c |
| 236 | gnu-regex.h |
| 237 | go32-xdep.c |
| 238 | gould-tdep.c |
| 239 | gould-xdep.c |
| 240 | h8300-tdep.c |
| 241 | h8500-tdep.c |
| 242 | hp300ux-nat.c |
| 243 | hppa-tdep.c |
| 244 | hppab-nat.c |
| 245 | hppah-nat.c |
| 246 | hppam3-nat.c |
| 247 | hpread.c |
| 248 | hpux-thread.c |
| 249 | i386-stub.c |
| 250 | i386-tdep.c |
| 251 | i386aix-nat.c |
| 252 | i386b-nat.c |
| 253 | i386gnu-nat.c |
| 254 | i386ly-tdep.c |
| 255 | i386m3-nat.c |
| 256 | i386mach-nat.c |
| 257 | i386v-nat.c |
| 258 | i386v4-nat.c |
| 259 | i387-tdep.c |
| 260 | i960-tdep.c |
| 261 | infcmd.c |
| 262 | inferior.h |
| 263 | inflow.c |
| 264 | infptrace.c |
| 265 | infrun.c |
| 266 | inftarg.c |
| 267 | irix4-nat.c |
| 268 | irix5-nat.c |
| 269 | isi-xdep.c |
| 270 | kdb-start.c |
| 271 | language.c |
| 272 | language.h |
| 273 | lynx-nat.c |
| 274 | m2-exp.y |
| 275 | m2-lang.c |
| 276 | m2-lang.h |
| 277 | m2-typeprint.c |
| 278 | m2-valprint.c |
| 279 | m3-nat.c |
| 280 | m32r-rom.c |
| 281 | m32r-stub.c |
| 282 | m32r-tdep.c |
| 283 | m68k-stub.c |
| 284 | m68k-tdep.c |
| 285 | m68knbsd-nat.c |
| 286 | m88k-nat.c |
| 287 | m88k-tdep.c |
| 288 | mac-defs.h |
| 289 | mac-gdb.r |
| 290 | mac-nat.c |
| 291 | mac-xdep.c |
| 292 | main.c |
| 293 | maint.c |
| 294 | mdebugread.c |
| 295 | mem-break.c |
| 296 | minimon.h |
| 297 | minsyms.c |
| 298 | mips-nat.c |
| 299 | mips-tdep.c |
| 300 | mipsm3-nat.c |
| 301 | mipsread.c |
| 302 | mipsv4-nat.c |
| 303 | mn10200-tdep.c |
| 304 | mn10300-tdep.c |
| 305 | mon960-rom.c |
| 306 | monitor.c |
| 307 | monitor.h |
| 308 | mpw-config.in |
| 309 | mpw-make.sed |
| 310 | msg.defs |
| 311 | msg_reply.defs |
| 312 | news-xdep.c |
| 313 | nindy-share |
| 314 | nindy-tdep.c |
| 315 | nlm |
| 316 | nlmread.c |
| 317 | notify.defs |
| 318 | ns32k-tdep.c |
| 319 | ns32km3-nat.c |
| 320 | ns32knbsd-nat.c |
| 321 | objfiles.c |
| 322 | objfiles.h |
| 323 | ocd.c |
| 324 | ocd.h |
| 325 | op50-rom.c |
| 326 | os9kread.c |
| 327 | osf-share |
| 328 | osfsolib.c |
| 329 | parse.c |
| 330 | parser-defs.h |
| 331 | partial-stab.h |
| 332 | ppc-bdm.c |
| 333 | ppcbug-rom.c |
| 334 | printcmd.c |
| 335 | process_reply.defs |
| 336 | procfs.c |
| 337 | ptx4-nat.c |
| 338 | pyr-tdep.c |
| 339 | pyr-xdep.c |
| 340 | rdi-share |
| 341 | remote-adapt.c |
| 342 | remote-array.c |
| 343 | remote-bug.c |
| 344 | remote-d10v.c |
| 345 | remote-e7000.c |
| 346 | remote-eb.c |
| 347 | remote-es.c |
| 348 | remote-est.c |
| 349 | remote-hms.c |
| 350 | remote-mips.c |
| 351 | remote-mm.c |
| 352 | remote-nindy.c |
| 353 | remote-nrom.c |
| 354 | remote-os9k.c |
| 355 | remote-rdi.c |
| 356 | remote-rdp.c |
| 357 | remote-sds.c |
| 358 | remote-sim.c |
| 359 | remote-st.c |
| 360 | remote-udi.c |
| 361 | remote-utils.c |
| 362 | remote-utils.h |
| 363 | remote-vx.c |
| 364 | remote-vx29k.c |
| 365 | remote-vx68.c |
| 366 | remote-vx960.c |
| 367 | remote-vxmips.c |
| 368 | remote-vxsparc.c |
| 369 | remote.c |
| 370 | reply_mig_hack.awk |
| 371 | rom68k-rom.c |
| 372 | rs6000-nat.c |
| 373 | rs6000-tdep.c |
| 374 | saber.suppress |
| 375 | scm-exp.c |
| 376 | scm-lang.c |
| 377 | scm-lang.h |
| 378 | scm-tags.h |
| 379 | scm-valprint.c |
| 380 | ser-e7kpc.c |
| 381 | ser-go32.c |
| 382 | ser-mac.c |
| 383 | ser-ocd.c |
| 384 | ser-tcp.c |
| 385 | ser-unix.c |
| 386 | serial.c |
| 387 | serial.h |
| 388 | sh-stub.c |
| 389 | sh-tdep.c |
| 390 | sh3-rom.c |
| 391 | signals.h |
| 392 | sol-thread.c |
| 393 | solib.c |
| 394 | solib.h |
| 395 | somread.c |
| 396 | somsolib.c |
| 397 | somsolib.h |
| 398 | source.c |
| 399 | sparc-nat.c |
| 400 | sparc-stub.c |
| 401 | sparc-tdep.c |
| 402 | sparcl-stub.c |
| 403 | sparcl-tdep.c |
| 404 | sparclet-rom.c |
| 405 | sparclet-stub.c |
| 406 | srec.h |
| 407 | stabsread.c |
| 408 | stabsread.h |
| 409 | stack.c |
| 410 | standalone.c |
| 411 | stop-gdb.c |
| 412 | stuff.c |
| 413 | sun3-nat.c |
| 414 | sun386-nat.c |
| 415 | symfile.c |
| 416 | symfile.h |
| 417 | symm-nat.c |
| 418 | symm-tdep.c |
| 419 | symmisc.c |
| 420 | symtab.c |
| 421 | symtab.h |
| 422 | tahoe-tdep.c |
| 423 | target.c |
| 424 | target.h |
| 425 | terminal.h |
| 426 | testsuite |
| 427 | thread.c |
| 428 | top.c |
| 429 | top.h |
| 430 | tracepoint.c |
| 431 | tracepoint.h |
| 432 | typeprint.c |
| 433 | typeprint.h |
| 434 | ultra3-nat.c |
| 435 | ultra3-xdep.c |
| 436 | umax-xdep.c |
| 437 | utils.c |
| 438 | v850-tdep.c |
| 439 | v850ice.c |
| 440 | valarith.c |
| 441 | valops.c |
| 442 | valprint.c |
| 443 | valprint.h |
| 444 | value.h |
| 445 | values.c |
| 446 | vax-tdep.c |
| 447 | vx-share |
| 448 | w65-tdep.c |
| 449 | w89k-rom.c |
| 450 | win32-nat.c |
| 451 | xcoffread.c |
| 452 | xcoffsolib.c |
| 453 | xcoffsolib.h |
| 454 | xmodem.c |
| 455 | xmodem.h |
| 456 | z8k-tdep.c |
| 457 | |
| 458 | # Things which are explicitly *not* kept, for now. |
| 459 | |
| 460 | Things-to-lose: |
| 461 | |
| 462 | HOW_TO_RELEASE |
| 463 | gdbcfgxref |
| 464 | |
| 465 | Do-last: |
| 466 | |
| 467 | # Don't try to clean directories here, as the 'mv' command will fail. |
| 468 | # Also, grep fails on NFS mounted directories. |
| 469 | if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then |
| 470 | echo Catering to RMS by removing traces of \"gdbtk\"... |
| 471 | for i in * ; do |
| 472 | if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then |
| 473 | echo Removing traces of \"gdbtk\" out of $i... |
| 474 | cp $i new |
| 475 | sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new |
| 476 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 477 | echo Caching $i in .Recover... |
| 478 | mv $i .Recover |
| 479 | fi |
| 480 | mv new $i |
| 481 | fi |
| 482 | done |
| 483 | else |
| 484 | echo Leaving \"gdbtk\" in the sources... |
| 485 | for i in * ; do |
| 486 | if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then |
| 487 | echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines... |
| 488 | cp $i new |
| 489 | sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new |
| 490 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 491 | echo Caching $i in .Recover... |
| 492 | mv $i .Recover |
| 493 | fi |
| 494 | mv new $i |
| 495 | fi |
| 496 | done |
| 497 | fi |
| 498 | |
| 499 | if ( echo $* | grep keep\-v850e > /dev/null ) ; then |
| 500 | for i in * ; do |
| 501 | if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then |
| 502 | if [ -n "${verbose}" ] ; then |
| 503 | echo Keeping v850e stuff in $i |
| 504 | fi |
| 505 | fi |
| 506 | done |
| 507 | else |
| 508 | for i in * ; do |
| 509 | if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then |
| 510 | if [ -n "${verbose}" ] ; then |
| 511 | echo Removing traces of \"v850e\" from $i... |
| 512 | fi |
| 513 | cp $i new |
| 514 | sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new |
| 515 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 516 | if [ -n "${verbose}" ] ; then |
| 517 | echo Caching $i in .Recover... |
| 518 | fi |
| 519 | mv $i .Recover |
| 520 | fi |
| 521 | mv new $i |
| 522 | fi |
| 523 | done |
| 524 | fi |
| 525 | |
| 526 | if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then |
| 527 | for i in * ; do |
| 528 | if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then |
| 529 | if [ -n "${verbose}" ] ; then |
| 530 | echo Keeping vr4320 stuff in $i |
| 531 | fi |
| 532 | fi |
| 533 | done |
| 534 | else |
| 535 | for i in * ; do |
| 536 | if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then |
| 537 | if [ -n "${verbose}" ] ; then |
| 538 | echo Removing traces of \"vr4320\" from $i... |
| 539 | fi |
| 540 | cp $i new |
| 541 | sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/d' < $i > new |
| 542 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 543 | if [ -n "${verbose}" ] ; then |
| 544 | echo Caching $i in .Recover... |
| 545 | fi |
| 546 | mv $i .Recover |
| 547 | fi |
| 548 | mv new $i |
| 549 | fi |
| 550 | done |
| 551 | fi |
| 552 | |
| 553 | if ( echo $* | grep keep\-r5900 > /dev/null ) ; then |
| 554 | for i in * ; do |
| 555 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then |
| 556 | if [ -n "${verbose}" ] ; then |
| 557 | echo Keeping r5900 stuff in $i |
| 558 | fi |
| 559 | fi |
| 560 | done |
| 561 | else |
| 562 | for i in * ; do |
| 563 | if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then |
| 564 | if [ -n "${verbose}" ] ; then |
| 565 | echo Removing traces of \"r5900\" from $i... |
| 566 | fi |
| 567 | cp $i new |
| 568 | sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new |
| 569 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 570 | if [ -n "${verbose}" ] ; then |
| 571 | echo Caching $i in .Recover... |
| 572 | fi |
| 573 | mv $i .Recover |
| 574 | fi |
| 575 | mv new $i |
| 576 | fi |
| 577 | done |
| 578 | fi |
| 579 | |
| 580 | if ( echo $* | grep keep\-tx19 > /dev/null ) ; then |
| 581 | for i in * ; do |
| 582 | if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then |
| 583 | if [ -n "${verbose}" ] ; then |
| 584 | echo Keeping tx19 stuff in $i |
| 585 | fi |
| 586 | fi |
| 587 | done |
| 588 | else |
| 589 | for i in * ; do |
| 590 | if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then |
| 591 | if [ -n "${verbose}" ] ; then |
| 592 | echo Removing traces of \"tx19\" from $i... |
| 593 | fi |
| 594 | cp $i new |
| 595 | sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new |
| 596 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 597 | if [ -n "${verbose}" ] ; then |
| 598 | echo Caching $i in .Recover... |
| 599 | fi |
| 600 | mv $i .Recover |
| 601 | fi |
| 602 | mv new $i |
| 603 | fi |
| 604 | done |
| 605 | fi |
| 606 | |
| 607 | if ( echo $* | grep keep\-tx39 > /dev/null ) ; then |
| 608 | for i in * ; do |
| 609 | if test ! -d $i && (grep sanitize-tx39 $i > /dev/null) ; then |
| 610 | if [ -n "${verbose}" ] ; then |
| 611 | echo Keeping tx39 stuff in $i |
| 612 | fi |
| 613 | fi |
| 614 | done |
| 615 | else |
| 616 | for i in * ; do |
| 617 | if test ! -d $i && (grep sanitize-tx39 $i > /dev/null) ; then |
| 618 | if [ -n "${verbose}" ] ; then |
| 619 | echo Removing traces of \"tx39\" from $i... |
| 620 | fi |
| 621 | cp $i new |
| 622 | sed '/start\-sanitize\-tx39/,/end-\sanitize\-tx39/d' < $i > new |
| 623 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 624 | if [ -n "${verbose}" ] ; then |
| 625 | echo Caching $i in .Recover... |
| 626 | fi |
| 627 | mv $i .Recover |
| 628 | fi |
| 629 | mv new $i |
| 630 | fi |
| 631 | done |
| 632 | fi |
| 633 | |
| 634 | if ( echo $* | grep keep\-tx49 > /dev/null ) ; then |
| 635 | for i in * ; do |
| 636 | if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then |
| 637 | if [ -n "${verbose}" ] ; then |
| 638 | echo Keeping tx49 stuff in $i |
| 639 | fi |
| 640 | fi |
| 641 | done |
| 642 | else |
| 643 | for i in * ; do |
| 644 | if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then |
| 645 | if [ -n "${verbose}" ] ; then |
| 646 | echo Removing traces of \"tx49\" from $i... |
| 647 | fi |
| 648 | cp $i new |
| 649 | sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new |
| 650 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 651 | if [ -n "${verbose}" ] ; then |
| 652 | echo Caching $i in .Recover... |
| 653 | fi |
| 654 | mv $i .Recover |
| 655 | fi |
| 656 | mv new $i |
| 657 | fi |
| 658 | done |
| 659 | fi |
| 660 | |
| 661 | if ( echo $* | grep keep\-sky > /dev/null ) ; then |
| 662 | for i in * ; do |
| 663 | if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then |
| 664 | if [ -n "${verbose}" ] ; then |
| 665 | echo Keeping sky stuff in $i |
| 666 | fi |
| 667 | fi |
| 668 | done |
| 669 | else |
| 670 | for i in * ; do |
| 671 | if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then |
| 672 | if [ -n "${verbose}" ] ; then |
| 673 | echo Removing traces of \"sky\" from $i... |
| 674 | fi |
| 675 | cp $i new |
| 676 | sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new |
| 677 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 678 | if [ -n "${verbose}" ] ; then |
| 679 | echo Caching $i in .Recover... |
| 680 | fi |
| 681 | mv $i .Recover |
| 682 | fi |
| 683 | mv new $i |
| 684 | fi |
| 685 | done |
| 686 | fi |
| 687 | |
| 688 | if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then |
| 689 | for i in * ; do |
| 690 | if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then |
| 691 | if [ -n "${verbose}" ] ; then |
| 692 | echo Keeping vr5400 stuff in $i |
| 693 | fi |
| 694 | fi |
| 695 | done |
| 696 | else |
| 697 | for i in * ; do |
| 698 | if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then |
| 699 | if [ -n "${verbose}" ] ; then |
| 700 | echo Removing traces of \"vr5400\" from $i... |
| 701 | fi |
| 702 | cp $i new |
| 703 | sed '/start\-sanitize\-vr5400/,/end-\sanitize\-vr5400/d' < $i > new |
| 704 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 705 | if [ -n "${verbose}" ] ; then |
| 706 | echo Caching $i in .Recover... |
| 707 | fi |
| 708 | mv $i .Recover |
| 709 | fi |
| 710 | mv new $i |
| 711 | fi |
| 712 | done |
| 713 | fi |
| 714 | |
| 715 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then |
| 716 | for i in * ; do |
| 717 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then |
| 718 | if [ -n "${verbose}" ] ; then |
| 719 | echo Keeping tic80 stuff in $i |
| 720 | fi |
| 721 | fi |
| 722 | done |
| 723 | else |
| 724 | for i in * ; do |
| 725 | if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then |
| 726 | if [ -n "${verbose}" ] ; then |
| 727 | echo Removing traces of \"tic80\" from $i... |
| 728 | fi |
| 729 | cp $i new |
| 730 | sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new |
| 731 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 732 | if [ -n "${verbose}" ] ; then |
| 733 | echo Caching $i in .Recover... |
| 734 | fi |
| 735 | mv $i .Recover |
| 736 | fi |
| 737 | mv new $i |
| 738 | fi |
| 739 | done |
| 740 | fi |
| 741 | |
| 742 | if ( echo $* | grep keep\-d30v > /dev/null ) ; then |
| 743 | for i in * ; do |
| 744 | if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then |
| 745 | if [ -n "${verbose}" ] ; then |
| 746 | echo Keeping d30v stuff in $i |
| 747 | fi |
| 748 | fi |
| 749 | done |
| 750 | else |
| 751 | for i in * ; do |
| 752 | if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then |
| 753 | if [ -n "${verbose}" ] ; then |
| 754 | echo Removing traces of \"d30v\" from $i... |
| 755 | fi |
| 756 | cp $i new |
| 757 | sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new |
| 758 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 759 | if [ -n "${verbose}" ] ; then |
| 760 | echo Caching $i in .Recover... |
| 761 | fi |
| 762 | mv $i .Recover |
| 763 | fi |
| 764 | mv new $i |
| 765 | fi |
| 766 | done |
| 767 | fi |
| 768 | |
| 769 | if ( echo $* | grep keep\-ide > /dev/null ) ; then |
| 770 | for i in * ; do |
| 771 | if test ! -d $i && (grep sanitize-ide $i > /dev/null) ; then |
| 772 | if [ -n "${verbose}" ] ; then |
| 773 | echo Keeping ide stuff in $i |
| 774 | fi |
| 775 | fi |
| 776 | done |
| 777 | else |
| 778 | for i in * ; do |
| 779 | if test ! -d $i && (grep sanitize-ide $i > /dev/null) ; then |
| 780 | if [ -n "${verbose}" ] ; then |
| 781 | echo Removing traces of \"ide\" from $i... |
| 782 | fi |
| 783 | cp $i new |
| 784 | sed '/start\-sanitize\-ide/,/end-\sanitize\-ide/d' < $i > new |
| 785 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 786 | if [ -n "${verbose}" ] ; then |
| 787 | echo Caching $i in .Recover... |
| 788 | fi |
| 789 | mv $i .Recover |
| 790 | fi |
| 791 | mv new $i |
| 792 | fi |
| 793 | done |
| 794 | fi |
| 795 | |
| 796 | if ( echo $* | grep keep\-mswin > /dev/null ) ; then |
| 797 | for i in * ; do |
| 798 | if test ! -d $i && (grep sanitize-mswin $i > /dev/null) ; then |
| 799 | if [ -n "${verbose}" ] ; then |
| 800 | echo Keeping mswin stuff in $i |
| 801 | fi |
| 802 | fi |
| 803 | done |
| 804 | else |
| 805 | for i in * ; do |
| 806 | if test ! -d $i && (grep sanitize-mswin $i > /dev/null) ; then |
| 807 | if [ -n "${verbose}" ] ; then |
| 808 | echo Removing traces of \"mswin\" from $i... |
| 809 | fi |
| 810 | cp $i new |
| 811 | sed '/start\-sanitize\-mswin/,/end-\sanitize\-mswin/d' < $i > new |
| 812 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 813 | if [ -n "${verbose}" ] ; then |
| 814 | echo Caching $i in .Recover... |
| 815 | fi |
| 816 | mv $i .Recover |
| 817 | fi |
| 818 | mv new $i |
| 819 | fi |
| 820 | done |
| 821 | fi |
| 822 | |
| 823 | if ( echo $* | grep keep\-java > /dev/null ) ; then |
| 824 | for i in * ; do |
| 825 | if test ! -d $i && (grep sanitize-java $i > /dev/null) ; then |
| 826 | if [ -n "${verbose}" ] ; then |
| 827 | echo Keeping java stuff in $i |
| 828 | fi |
| 829 | fi |
| 830 | done |
| 831 | else |
| 832 | for i in * ; do |
| 833 | if test ! -d $i && (grep sanitize-java $i > /dev/null) ; then |
| 834 | if [ -n "${verbose}" ] ; then |
| 835 | echo Removing traces of \"java\" from $i... |
| 836 | fi |
| 837 | cp $i new |
| 838 | sed '/start\-sanitize\-java/,/end-\sanitize\-java/d' < $i > new |
| 839 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 840 | if [ -n "${verbose}" ] ; then |
| 841 | echo Caching $i in .Recover... |
| 842 | fi |
| 843 | mv $i .Recover |
| 844 | fi |
| 845 | mv new $i |
| 846 | fi |
| 847 | done |
| 848 | fi |
| 849 | |
| 850 | for i in * ; do |
| 851 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then |
| 852 | echo '***' Some mentions of Sanitize are still left in $i! 1>&2 |
| 853 | fi |
| 854 | done |
| 855 | |
| 856 | # |
| 857 | # End of file. |