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