]> Git Repo - binutils.git/blame - gdb/.Sanitize
* Makefile.in erc32/Makefile.in: Don't set srcroot. This should
[binutils.git] / gdb / .Sanitize
CommitLineData
f4240b08 1# .Sanitize for devo/gdb.
eeadf5c2 2
d1bcda67 3# Each directory to survive its way into a release will need a file
eeadf5c2
RP
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
d1bcda67 14# done in this directory.
eeadf5c2
RP
15
16Do-first:
17
d4c5309e
DE
18arc_files="arc-tdep.c remote-arc.c"
19
20if ( 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
25else
26 lose_these_too="${arc_files} ${lose_these_too}"
27 if [ -n "${verbose}" ] ; then
28 echo Deleting ${arc_files}
29 fi
30fi
31
7b3fa778
MH
32d10v_files="d10v-tdep.c"
33
34if ( echo $* | grep keep\-d10v > /dev/null ) ; then
35 keep_these_too="${d10v_files} ${keep_these_too}"
36 if [ -n "${verbose}" ] ; then
37 echo Keeping ${d10v_files}
38 fi
39else
40 lose_these_too="${d10v_files} ${lose_these_too}"
41 if [ -n "${verbose}" ] ; then
42 echo Deleting ${d10v_files}
43 fi
44fi
45
fce537ae 46gdbtk_files="README.GDBTK gdbtk.c gdbtk.tcl"
d3d75ec9 47
6e9cac5f
SS
48if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
49 lose_these_too="${gdbtk_files} ${lose_these_too}"
d3d75ec9 50 if [ -n "${verbose}" ] ; then
6e9cac5f 51 echo Deleting ${gdbtk_files}
d3d75ec9
SS
52 fi
53else
6e9cac5f 54 keep_these_too="${gdbtk_files} ${keep_these_too}"
d3d75ec9 55 if [ -n "${verbose}" ] ; then
6e9cac5f 56 echo Keeping ${gdbtk_files}
d3d75ec9
SS
57 fi
58fi
59
fce537ae
SS
60# WinGDB files are not really ready to be part of FSF releases, but
61# keep them for progressives and such.
62
63mswin_files="mswin"
64
65if ( echo $* | grep lose\-mswin > /dev/null ) ; then
66 lose_these_too="${mswin_files} ${lose_these_too}"
67 if [ -n "${verbose}" ] ; then
68 echo Deleting ${mswin_files}
69 fi
70else
71 keep_these_too="${mswin_files} ${keep_these_too}"
72 if [ -n "${verbose}" ] ; then
73 echo Keeping ${mswin_files}
74 fi
75fi
76
bfe8f516 77gm_files="gmagic.c gmagic.h"
cd10c7e3
SG
78
79if ( echo $* | grep keep\-gm > /dev/null ) ; then
80 keep_these_too="${gm_files} ${keep_these_too}"
81 if [ -n "${verbose}" ] ; then
82 echo Keeping ${gm_files}
83 fi
84else
85 lose_these_too="${gm_files} ${lose_these_too}"
86 if [ -n "${verbose}" ] ; then
87 echo Deleting ${gm_files}
88 fi
89fi
90
eeadf5c2
RP
91# All files listed between the "Things-to-keep:" line and the
92# "Files-to-sed:" line will be kept. All other files will be removed.
93# Directories listed in this section will have their own Sanitize
94# called. Directories not listed will be removed in their entirety
95# with rm -rf.
96
97Things-to-keep:
98
99.gdbinit
a96c3444 10029k-share
eeadf5c2
RP
101COPYING
102ChangeLog
103ChangeLog-3.x
ee799e2a 104ChangeLog-9091
5debf76d 105ChangeLog-92
1ea8b1dc 106ChangeLog-93
73cb6167 107ChangeLog-94
543a9fac 108ChangeLog-95
bdf3621b 109Makefile.in
ddce75e0 110NEWS
eeadf5c2
RP
111README
112TODO
b4b0321b 113a29k-tdep.c
203a8d54 114a68v-nat.c
7574859f 115abug-rom.c
5436fc65 116aclocal.m4
5d93d326 117acconfig.h
cef4c2e7
PS
118alpha-nat.c
119alpha-tdep.c
203a8d54 120altos-xdep.c
1c95d7ab
JK
121annotate.c
122annotate.h
eeadf5c2 123arm-convert.s
eeadf5c2
RP
124arm-tdep.c
125arm-xdep.c
dafd5ad4
FF
126bcache.c
127bcache.h
eeadf5c2
RP
128blockframe.c
129breakpoint.c
130breakpoint.h
2ce38c6d
JG
131buildsym.c
132buildsym.h
dedcc91d
SC
133callback.c
134callback.h
56d921a8 135c-exp.y
22e39759
FF
136c-lang.c
137c-lang.h
a8a69e63
FF
138c-typeprint.c
139c-valprint.c
be772100 140call-cmds.h
3e19d545 141ch-exp.c
b1086bf5
FF
142ch-lang.c
143ch-lang.h
144ch-typeprint.c
145ch-valprint.c
ead291d4
SG
146coff-solib.c
147coff-solib.h
eeadf5c2
RP
148coffread.c
149command.c
150command.h
51b80b00
FF
151complaints.c
152complaints.h
f187c3a4 153config
18ea4416 154config.in
5436fc65 155configure
eeadf5c2 156configure.in
eeadf5c2
RP
157convex-tdep.c
158convex-xdep.c
eeadf5c2
RP
159copying.awk
160copying.c
a1df8e78
FF
161core-aout.c
162core-regset.c
256533df 163core-sol2.c
1738bcd3 164corefile.c
dfc82617 165corelow.c
a8a69e63 166cp-valprint.c
5de0c648 167cpu32bug-rom.c
670a8e09 168cxux-nat.c
eeadf5c2 169dbxread.c
755892d6
RP
170dcache.c
171dcache.h
eeadf5c2 172defs.h
be0ed5bb 173delta68-nat.c
2dbde378 174demangle.c
eeadf5c2 175doc
0a8f1742 176dpx2-nat.c
1aa26557 177dsrec.c
2d628281
JK
178dst.h
179dstread.c
bb5a10fe 180dwarf2read.c
6fccdaf4
FF
181dwarfread.c
182elfread.c
eeadf5c2
RP
183environ.c
184environ.h
185eval.c
186exec.c
ce0787ef 187exc_request.defs
eeadf5c2 188expprint.c
eeadf5c2 189expression.h
042bb079
SS
190f-exp.y
191f-lang.c
192f-lang.h
193f-typeprint.c
194f-valprint.c
eeadf5c2 195findvar.c
e745abe5 196fork-child.c
eeadf5c2 197frame.h
2b576293
C
198gdb_stat.h
199gdb_string.h
ed7c0948 200gdb-stabs.h
0857b46a 201gdb.1
56b73ad2 202gdb.gdb
dec525ce 203gdba.el
eeadf5c2
RP
204gdbcmd.h
205gdbcore.h
463a71db 206gdbserver
fdfa3315 207gdbthread.h
a1f596f4
FF
208gdbtypes.c
209gdbtypes.h
ce0787ef
FF
210gnu-nat.c
211gnu-nat.h
f2cd3441
SS
212gnu-regex.c
213gnu-regex.h
ae0ea72e 214go32-xdep.c
0f1cf145 215gould-tdep.c
eeadf5c2 216gould-xdep.c
0a8ed751 217h8300-tdep.c
5cd0940a 218h8500-tdep.c
b1de302a 219hp300ux-nat.c
66a1aa07 220hppa-tdep.c
ca048722 221hppab-nat.c
ca048722 222hppah-nat.c
2d2959e8 223hppam3-nat.c
2848f793 224hpread.c
eeadf5c2
RP
225i386-stub.c
226i386-tdep.c
2c7ab4ca 227i386aix-nat.c
0e35d2f3 228i386b-nat.c
ce0787ef 229i386gnu-nat.c
c458501e 230i386ly-tdep.c
c2d751d5 231i386m3-nat.c
a113beac 232i386mach-nat.c
c7c94073 233i386v-nat.c
4d0eabff 234i386v4-nat.c
56d921a8 235i387-tdep.c
eeadf5c2 236i960-tdep.c
eeadf5c2
RP
237infcmd.c
238inferior.h
239inflow.c
240infptrace.c
241infrun.c
eeadf5c2 242inftarg.c
a70dc898 243irix4-nat.c
a2f1e2e5 244irix5-nat.c
4aadcb02 245isi-xdep.c
eeadf5c2 246kdb-start.c
56d921a8
JG
247language.c
248language.h
069e0566 249lynx-nat.c
56d921a8 250m2-exp.y
22e39759
FF
251m2-lang.c
252m2-lang.h
a8a69e63
FF
253m2-typeprint.c
254m2-valprint.c
c2d751d5 255m3-nat.c
eeadf5c2
RP
256m68k-stub.c
257m68k-tdep.c
b7f3b6d5 258m68knbsd-nat.c
173a4f1b 259m88k-nat.c
eeadf5c2 260m88k-tdep.c
49073be0
SS
261mac-defs.h
262mac-xdep.c
c24ce5e2 263mac-gdb.r
2e81067b 264mac-nat.c
eeadf5c2 265main.c
0239d9b3 266maint.c
a2f1e2e5 267mdebugread.c
eeadf5c2 268mem-break.c
1111151a 269minimon.h
a1f596f4 270minsyms.c
a70dc898 271mips-nat.c
eeadf5c2 272mips-tdep.c
c2d751d5 273mipsm3-nat.c
2fe3b329 274mipsv4-nat.c
eeadf5c2 275mipsread.c
a4cf4e29 276mon960-rom.c
2f1c04d1 277monitor.h
25ca0dfc 278monitor.c
49073be0 279mpw-config.in
c24ce5e2 280mpw-make.sed
ce0787ef
FF
281msg.defs
282msg_reply.defs
eeadf5c2
RP
283news-xdep.c
284nindy-share
285nindy-tdep.c
bbc34049 286nlm
db85f523 287nlmread.c
ce0787ef 288notify.defs
0f1cf145 289ns32k-tdep.c
c2d751d5 290ns32km3-nat.c
a1f596f4 291objfiles.c
5e2e79f8 292objfiles.h
25ca0dfc 293op50-rom.c
25200748 294os9kread.c
cef4c2e7 295osfsolib.c
56d921a8
JG
296parse.c
297parser-defs.h
7e258d18 298partial-stab.h
2d777c7e 299ppcbug-rom.c
eeadf5c2 300printcmd.c
ce0787ef 301process_reply.defs
6fccdaf4 302procfs.c
c6889f63 303ptx4-nat.c
eeadf5c2
RP
304pyr-tdep.c
305pyr-xdep.c
1111151a 306remote-adapt.c
3e437fe6 307remote-array.c
203a8d54 308remote-bug.c
a0b28275 309remote-e7000.c
eeadf5c2 310remote-eb.c
91c87211 311remote-es.c
93584146 312remote-est.c
d93b79d9 313remote-hms.c
c2a0f1cb 314remote-mips.c
1111151a 315remote-mm.c
eeadf5c2 316remote-nindy.c
a55c3291 317remote-nrom.c
25200748 318remote-os9k.c
399290be 319remote-pa.c
dedcc91d 320remote-rdp.c
ec25d19b 321remote-sim.c
40b92220 322remote-sim.h
91c87211 323remote-st.c
e4dd52dd 324remote-udi.c
3283eab3
JK
325remote-utils.c
326remote-utils.h
eeadf5c2 327remote-vx.c
456f6de6 328remote-vx29k.c
44505113
DW
329remote-vx68.c
330remote-vx960.c
88890fb5
AMT
331remote-vxmips.c
332remote-vxsparc.c
eeadf5c2 333remote.c
ce0787ef 334reply_mig_hack.awk
dc48694c 335rs6000-nat.c
6373dbe3 336rs6000-tdep.c
fb9f8033 337rom68k-rom.c
eeadf5c2 338saber.suppress
3c02944a 339scm-exp.c
0e4ca328 340scm-lang.c
5b4d668a
PB
341scm-lang.h
342scm-tags.h
343scm-valprint.c
55679787 344ser-e7kpc.c
ddce75e0 345ser-go32.c
49073be0 346ser-mac.c
4d551aa3 347ser-tcp.c
e8a5f0ed
SG
348ser-unix.c
349serial.c
ddce75e0 350serial.h
8f5a8e2f 351sh-stub.c
9faacb92 352sh-tdep.c
1480482a 353sh3-rom.c
eeadf5c2 354signals.h
8fc2b417 355sol-thread.c
eeadf5c2 356solib.c
a1f596f4 357solib.h
bfe2f12b 358somread.c
bb140953
JL
359somsolib.c
360somsolib.h
eeadf5c2 361source.c
dfc82617 362sparc-nat.c
c9715956 363sparc-stub.c
eeadf5c2 364sparc-tdep.c
2b14c195
KH
365sparcl-stub.c
366sparcl-tdep.c
012be3ce 367sparclet-rom.c
5c8ba017 368srec.h
d07734e3
FF
369stabsread.c
370stabsread.h
eeadf5c2
RP
371stack.c
372standalone.c
1e6f592d 373stop-gdb.c
eeadf5c2 374stuff.c
dc48694c 375sun3-nat.c
61bbb1c2 376sun386-nat.c
eeadf5c2
RP
377symfile.c
378symfile.h
d39d83c1 379symm-nat.c
203a8d54 380symm-tdep.c
eeadf5c2
RP
381symmisc.c
382symtab.c
383symtab.h
0f1cf145 384tahoe-tdep.c
eeadf5c2
RP
385target.c
386target.h
eeadf5c2 387terminal.h
a2df03aa 388testsuite
6a21c756 389thread.c
172559ec
JK
390top.c
391top.h
a8a69e63
FF
392typeprint.c
393typeprint.h
6bf98ac0 394ultra3-nat.c
1111151a 395ultra3-xdep.c
eeadf5c2
RP
396umax-xdep.c
397utils.c
398valarith.c
399valops.c
400valprint.c
a8a69e63 401valprint.h
eeadf5c2
RP
402value.h
403values.c
0f1cf145 404vax-tdep.c
eeadf5c2 405vx-share
d723ade7 406w65-tdep.c
25ca0dfc 407w89k-rom.c
24e60978 408win32-nat.c
6373dbe3 409xcoffread.c
1eeba686
PB
410xcoffsolib.c
411xcoffsolib.h
5de0c648
SG
412xmodem.c
413xmodem.h
2aedd91e 414z8k-tdep.c
eeadf5c2 415
f747d259 416# Things which are explicitly *not* kept, for now.
f747d259 417
87756e15
RP
418Things-to-lose:
419
48828493 420ser-go32-para.c
62b1697e 421HOW_TO_RELEASE
87756e15 422
eeadf5c2
RP
423Do-last:
424
d3d75ec9
SS
425# Don't try to clean directories here, as the 'mv' command will fail.
426# Also, grep fails on NFS mounted directories.
a06cde09
SS
427if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
428 echo Catering to RMS by removing traces of \"gdbtk\"...
d3d75ec9
SS
429 for i in * ; do
430 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
a06cde09
SS
431 echo Removing traces of \"gdbtk\" out of $i...
432 cp $i new
433 sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
434 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
435 echo Caching $i in .Recover...
436 mv $i .Recover
437 fi
438 mv new $i
d3d75ec9
SS
439 fi
440 done
441else
a06cde09 442 echo Leaving \"gdbtk\" in the sources...
d3d75ec9
SS
443 for i in * ; do
444 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
a06cde09 445 echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines...
d3d75ec9 446 cp $i new
a06cde09 447 sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new
d3d75ec9
SS
448 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
449 echo Caching $i in .Recover...
450 mv $i .Recover
451 fi
452 mv new $i
453 fi
454 done
455fi
456
b9a48f14 457arc_files="configure.in configure ChangeLog-95"
c1ac88f9
DE
458
459if ( echo $* | grep keep\-arc > /dev/null ) ; then
460 for i in $arc_files ; do
461 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
462 if [ -n "${verbose}" ] ; then
463 echo Keeping arc stuff in $i
464 fi
465 fi
466 done
467else
468 for i in $arc_files ; do
469 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
470 if [ -n "${verbose}" ] ; then
471 echo Removing traces of \"arc\" from $i...
472 fi
473 cp $i new
474 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
475 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
476 if [ -n "${verbose}" ] ; then
477 echo Caching $i in .Recover...
478 fi
479 mv $i .Recover
480 fi
481 mv new $i
482 fi
483 done
484fi
485
7b3fa778
MH
486d10v_files="configure.in configure ChangeLog"
487
488if ( echo $* | grep keep\-d10v > /dev/null ) ; then
489 for i in $d10v_files ; do
490 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
491 if [ -n "${verbose}" ] ; then
492 echo Keeping d10v stuff in $i
493 fi
494 fi
495 done
496else
497 for i in $d10v_files ; do
498 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
499 if [ -n "${verbose}" ] ; then
500 echo Removing traces of \"d10v\" from $i...
501 fi
502 cp $i new
503 sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new
504 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
505 if [ -n "${verbose}" ] ; then
506 echo Caching $i in .Recover...
507 fi
508 mv $i .Recover
509 fi
510 mv new $i
511 fi
512 done
513fi
514
cd10c7e3
SG
515if ( echo $* | grep keep\-gm > /dev/null ) ; then
516 for i in * ; do
517 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
518 if [ -n "${verbose}" ] ; then
519 echo Keeping gm stuff in $i
520 fi
521 fi
522 done
523else
524 for i in * ; do
525 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
526 if [ -n "${verbose}" ] ; then
527 echo Removing traces of \"gm\" from $i...
528 fi
529 cp $i new
530 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
531 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
532 if [ -n "${verbose}" ] ; then
533 echo Caching $i in .Recover...
534 fi
535 mv $i .Recover
536 fi
537 mv new $i
538 fi
539 done
540fi
541
03c4ce2f
MT
542for i in * ; do
543 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
544 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
545 fi
546done
547
548#
eeadf5c2 549# End of file.
This page took 0.542212 seconds and 4 git commands to generate.