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