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