| 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 | # mswin gdb is not really gdbtk, but is close enough for now. |
| 19 | |
| 20 | gdbtk_files="gdbtk.c gdbtk.tcl mswin" |
| 21 | |
| 22 | if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then |
| 23 | lose_these_too="${gdbtk_files} ${lose_these_too}" |
| 24 | if [ -n "${verbose}" ] ; then |
| 25 | echo Deleting ${gdbtk_files} |
| 26 | fi |
| 27 | else |
| 28 | keep_these_too="${gdbtk_files} ${keep_these_too}" |
| 29 | if [ -n "${verbose}" ] ; then |
| 30 | echo Keeping ${gdbtk_files} |
| 31 | fi |
| 32 | fi |
| 33 | |
| 34 | # All files listed between the "Things-to-keep:" line and the |
| 35 | # "Files-to-sed:" line will be kept. All other files will be removed. |
| 36 | # Directories listed in this section will have their own Sanitize |
| 37 | # called. Directories not listed will be removed in their entirety |
| 38 | # with rm -rf. |
| 39 | |
| 40 | Things-to-keep: |
| 41 | |
| 42 | .gdbinit |
| 43 | 29k-share |
| 44 | COPYING |
| 45 | ChangeLog |
| 46 | ChangeLog-3.x |
| 47 | ChangeLog-9091 |
| 48 | ChangeLog-92 |
| 49 | ChangeLog-93 |
| 50 | ChangeLog-94 |
| 51 | Makefile.in |
| 52 | NEWS |
| 53 | README |
| 54 | TODO |
| 55 | a29k-tdep.c |
| 56 | a68v-nat.c |
| 57 | alpha-nat.c |
| 58 | alpha-tdep.c |
| 59 | altos-xdep.c |
| 60 | annotate.c |
| 61 | annotate.h |
| 62 | arm-convert.s |
| 63 | arm-tdep.c |
| 64 | arm-xdep.c |
| 65 | array-rom.c |
| 66 | blockframe.c |
| 67 | breakpoint.c |
| 68 | breakpoint.h |
| 69 | buildsym.c |
| 70 | buildsym.h |
| 71 | c-exp.y |
| 72 | c-lang.c |
| 73 | c-lang.h |
| 74 | c-typeprint.c |
| 75 | c-valprint.c |
| 76 | call-cmds.h |
| 77 | ch-exp.y |
| 78 | ch-lang.c |
| 79 | ch-lang.h |
| 80 | ch-typeprint.c |
| 81 | ch-valprint.c |
| 82 | coff-solib.c |
| 83 | coff-solib.h |
| 84 | coffread.c |
| 85 | command.c |
| 86 | command.h |
| 87 | complaints.c |
| 88 | complaints.h |
| 89 | config |
| 90 | configure.in |
| 91 | convex-tdep.c |
| 92 | convex-xdep.c |
| 93 | copying.awk |
| 94 | copying.c |
| 95 | core-sol2.c |
| 96 | core-svr4.c |
| 97 | core.c |
| 98 | coredep.c |
| 99 | corelow.c |
| 100 | cp-valprint.c |
| 101 | cxux-nat.c |
| 102 | dbxread.c |
| 103 | dcache.c |
| 104 | dcache.h |
| 105 | defs.h |
| 106 | delta68-nat.c |
| 107 | demangle.c |
| 108 | doc |
| 109 | dpx2-nat.c |
| 110 | dst.h |
| 111 | dstread.c |
| 112 | dwarfread.c |
| 113 | elfread.c |
| 114 | environ.c |
| 115 | environ.h |
| 116 | eval.c |
| 117 | exec.c |
| 118 | expprint.c |
| 119 | expression.h |
| 120 | f-exp.y |
| 121 | f-lang.c |
| 122 | f-lang.h |
| 123 | f-typeprint.c |
| 124 | f-valprint.c |
| 125 | findvar.c |
| 126 | fork-child.c |
| 127 | frame.h |
| 128 | gcc.patch |
| 129 | gdb-stabs.h |
| 130 | gdb.1 |
| 131 | gdba.el |
| 132 | gdbcmd.h |
| 133 | gdbcore.h |
| 134 | gdbserver |
| 135 | gdbtypes.c |
| 136 | gdbtypes.h |
| 137 | go32-xdep.c |
| 138 | gould-tdep.c |
| 139 | gould-xdep.c |
| 140 | h8300-tdep.c |
| 141 | h8500-tdep.c |
| 142 | hp300ux-nat.c |
| 143 | hppa-tdep.c |
| 144 | hppab-nat.c |
| 145 | hppah-nat.c |
| 146 | hpread.c |
| 147 | i386-stub.c |
| 148 | i386-tdep.c |
| 149 | i386aix-nat.c |
| 150 | i386b-nat.c |
| 151 | i386ly-tdep.c |
| 152 | i386m3-nat.c |
| 153 | i386mach-nat.c |
| 154 | i386v-nat.c |
| 155 | i386v4-nat.c |
| 156 | i387-tdep.c |
| 157 | i960-tdep.c |
| 158 | infcmd.c |
| 159 | inferior.h |
| 160 | inflow.c |
| 161 | infptrace.c |
| 162 | infrun.c |
| 163 | inftarg.c |
| 164 | irix4-nat.c |
| 165 | irix5-nat.c |
| 166 | isi-xdep.c |
| 167 | kdb-start.c |
| 168 | language.c |
| 169 | language.h |
| 170 | lynx-nat.c |
| 171 | m2-exp.y |
| 172 | m2-lang.c |
| 173 | m2-lang.h |
| 174 | m2-typeprint.c |
| 175 | m2-valprint.c |
| 176 | m3-nat.c |
| 177 | m68k-stub.c |
| 178 | m68k-tdep.c |
| 179 | m88k-nat.c |
| 180 | m88k-tdep.c |
| 181 | mac-defs.h |
| 182 | mac-xdep.c |
| 183 | macgdb.r |
| 184 | main.c |
| 185 | maint.c |
| 186 | mdebugread.c |
| 187 | mem-break.c |
| 188 | minimon.h |
| 189 | minsyms.c |
| 190 | mips-nat.c |
| 191 | mips-tdep.c |
| 192 | mipsm3-nat.c |
| 193 | mipsv4-nat.c |
| 194 | mipsread.c |
| 195 | monitor.h |
| 196 | monitor.c |
| 197 | mpw-config.in |
| 198 | mpw-make.in |
| 199 | news-xdep.c |
| 200 | nindy-share |
| 201 | nindy-tdep.c |
| 202 | nlm |
| 203 | nlmread.c |
| 204 | ns32k-tdep.c |
| 205 | ns32km3-nat.c |
| 206 | objfiles.c |
| 207 | objfiles.h |
| 208 | op50-rom.c |
| 209 | os9kread.c |
| 210 | osfsolib.c |
| 211 | parse.c |
| 212 | parser-defs.h |
| 213 | partial-stab.h |
| 214 | printcmd.c |
| 215 | procfs.c |
| 216 | ptx4-nat.c |
| 217 | pyr-tdep.c |
| 218 | pyr-xdep.c |
| 219 | regex.c |
| 220 | regex.h |
| 221 | rem-multi.shar |
| 222 | remote-adapt.c |
| 223 | remote-bug.c |
| 224 | remote-e7000.c |
| 225 | remote-eb.c |
| 226 | remote-es.c |
| 227 | remote-est.c |
| 228 | remote-hms.c |
| 229 | remote-mips.c |
| 230 | remote-mm.c |
| 231 | remote-nindy.c |
| 232 | remote-os9k.c |
| 233 | remote-pa.c |
| 234 | remote-sim.c |
| 235 | remote-sim.h |
| 236 | remote-st.c |
| 237 | remote-udi.c |
| 238 | remote-utils.c |
| 239 | remote-utils.h |
| 240 | remote-vx.c |
| 241 | remote-vx29k.c |
| 242 | remote-vx68.c |
| 243 | remote-vx960.c |
| 244 | remote-z8k.c |
| 245 | remote.c |
| 246 | rs6000-nat.c |
| 247 | rs6000-tdep.c |
| 248 | rom68k-rom.c |
| 249 | saber.suppress |
| 250 | ser-e7kpc.c |
| 251 | ser-go32.c |
| 252 | ser-mac.c |
| 253 | ser-tcp.c |
| 254 | ser-unix.c |
| 255 | serial.c |
| 256 | serial.h |
| 257 | sh-tdep.c |
| 258 | signals.h |
| 259 | solib.c |
| 260 | solib.h |
| 261 | somread.c |
| 262 | somsolib.c |
| 263 | somsolib.h |
| 264 | source.c |
| 265 | sparc-nat.c |
| 266 | sparc-stub.c |
| 267 | sparc-tdep.c |
| 268 | sparcl-stub.c |
| 269 | sparcl-tdep.c |
| 270 | sparclite |
| 271 | stabsread.c |
| 272 | stabsread.h |
| 273 | stack.c |
| 274 | standalone.c |
| 275 | stop-gdb.c |
| 276 | stuff.c |
| 277 | sun3-nat.c |
| 278 | sun386-nat.c |
| 279 | symfile.c |
| 280 | symfile.h |
| 281 | symm-nat.c |
| 282 | symm-tdep.c |
| 283 | symmisc.c |
| 284 | symtab.c |
| 285 | symtab.h |
| 286 | tahoe-tdep.c |
| 287 | target.c |
| 288 | target.h |
| 289 | terminal.h |
| 290 | testsuite |
| 291 | thread.c |
| 292 | thread.h |
| 293 | top.c |
| 294 | top.h |
| 295 | typeprint.c |
| 296 | typeprint.h |
| 297 | ultra3-nat.c |
| 298 | ultra3-xdep.c |
| 299 | umax-xdep.c |
| 300 | utils.c |
| 301 | valarith.c |
| 302 | valops.c |
| 303 | valprint.c |
| 304 | valprint.h |
| 305 | value.h |
| 306 | values.c |
| 307 | vax-tdep.c |
| 308 | vx-share |
| 309 | w65-tdep.c |
| 310 | w89k-rom.c |
| 311 | xcoffread.c |
| 312 | xcoffsolib.c |
| 313 | xcoffsolib.h |
| 314 | z8k-tdep.c |
| 315 | |
| 316 | |
| 317 | # Things which are explicitly *not* kept, for now. |
| 318 | # energize - Part of Lucid support. |
| 319 | # energize-patches - Part of Lucid support. |
| 320 | # energize.c - Part of Lucid support. |
| 321 | # energize.h - Part of Lucid support. |
| 322 | # remote-sa.sparc.c - Remote target for a standalone SPARC, using |
| 323 | # the FORTH console ROMs. We never got the paperwork |
| 324 | # straight, since Sun's lawyers messed with the |
| 325 | # FSF contract and RMS didn't accept the changes. |
| 326 | # Written at SunLabs. |
| 327 | # state.c - Not used at the moment, keep for reference (fnf) |
| 328 | # state.h - Not used at the moment, keep for reference (fnf) |
| 329 | |
| 330 | Things-to-lose: |
| 331 | |
| 332 | energize |
| 333 | energize-patches |
| 334 | energize.c |
| 335 | energize.h |
| 336 | remote-mon.c |
| 337 | remote-sa.sparc.c |
| 338 | ser-go32-para.c |
| 339 | state.c |
| 340 | state.h |
| 341 | arc-tdep.c |
| 342 | remote-arc.c |
| 343 | |
| 344 | Do-last: |
| 345 | |
| 346 | echo Catering to RMS by removing traces of \"gdbtk\"... |
| 347 | |
| 348 | # Don't try to clean directories here, as the 'mv' command will fail. |
| 349 | # Also, grep fails on NFS mounted directories. |
| 350 | if ( echo $* | grep keep\-gdbtk > /dev/null ) ; then |
| 351 | for i in * ; do |
| 352 | if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then |
| 353 | echo Keeping gdbtk stuff in $i |
| 354 | fi |
| 355 | done |
| 356 | else |
| 357 | for i in * ; do |
| 358 | if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then |
| 359 | echo Removing traces of \"gdbtk\" out of $i... |
| 360 | cp $i new |
| 361 | sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new |
| 362 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 363 | echo Caching $i in .Recover... |
| 364 | mv $i .Recover |
| 365 | fi |
| 366 | mv new $i |
| 367 | fi |
| 368 | done |
| 369 | fi |
| 370 | |
| 371 | r16_files="configure.in" |
| 372 | |
| 373 | if ( echo $* | grep keep\-r16 > /dev/null ) ; then |
| 374 | for i in $r16_files ; do |
| 375 | if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then |
| 376 | if [ -n "${verbose}" ] ; then |
| 377 | echo Keeping r16 stuff in $i |
| 378 | fi |
| 379 | fi |
| 380 | done |
| 381 | else |
| 382 | for i in $r16_files ; do |
| 383 | if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then |
| 384 | if [ -n "${verbose}" ] ; then |
| 385 | echo Removing traces of \"r16\" from $i... |
| 386 | fi |
| 387 | cp $i new |
| 388 | sed '/start\-sanitize\-r16/,/end-\sanitize\-r16/d' < $i > new |
| 389 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 390 | if [ -n "${verbose}" ] ; then |
| 391 | echo Caching $i in .Recover... |
| 392 | fi |
| 393 | mv $i .Recover |
| 394 | fi |
| 395 | mv new $i |
| 396 | fi |
| 397 | done |
| 398 | fi |
| 399 | |
| 400 | arc_files="configure.in ChangeLog" |
| 401 | |
| 402 | if ( echo $* | grep keep\-arc > /dev/null ) ; then |
| 403 | for i in $arc_files ; do |
| 404 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then |
| 405 | if [ -n "${verbose}" ] ; then |
| 406 | echo Keeping arc stuff in $i |
| 407 | fi |
| 408 | fi |
| 409 | done |
| 410 | else |
| 411 | for i in $arc_files ; do |
| 412 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then |
| 413 | if [ -n "${verbose}" ] ; then |
| 414 | echo Removing traces of \"arc\" from $i... |
| 415 | fi |
| 416 | cp $i new |
| 417 | sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new |
| 418 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
| 419 | if [ -n "${verbose}" ] ; then |
| 420 | echo Caching $i in .Recover... |
| 421 | fi |
| 422 | mv $i .Recover |
| 423 | fi |
| 424 | mv new $i |
| 425 | fi |
| 426 | done |
| 427 | fi |
| 428 | |
| 429 | for i in * ; do |
| 430 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then |
| 431 | echo '***' Some mentions of Sanitize are still left in $i! 1>&2 |
| 432 | fi |
| 433 | done |
| 434 | |
| 435 | # |
| 436 | # End of file. |