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