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