Based on notes from Peter Eriksson <peter@ifm.liu.se>. The target
[deliverable/binutils-gdb.git] / gas / config / .Sanitize
CommitLineData
4f5d16c7 1# .Sanitize for devo/gas/config
0fd8d5d9 2
4f5d16c7 3# Each directory to survive its way into a release will need a file
0fd8d5d9
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
14# done in this
15
16Do-first:
17
833c46e1 18arc_files="tc-arc.c tc-arc.h"
bc70eba5
DE
19
20if ( echo $* | grep keep\-arc > /dev/null ) ; then
21 keep_these_too="${arc_files} ${keep_these_too}"
22else
23 lose_these_too="${arc_files} ${lose_these_too}"
24fi
25
7be9a312
MH
26d10v_files="tc-d10v.c tc-d10v.h"
27
28if ( echo $* | grep keep\-d10v > /dev/null ) ; then
29 keep_these_too="${d10v_files} ${keep_these_too}"
30else
31 lose_these_too="${d10v_files} ${lose_these_too}"
32fi
33
c6aa56bc
C
34v850_files="tc-v850.c tc-v850.h"
35
36if ( echo $* | grep keep\-v850 > /dev/null ) ; then
37 keep_these_too="${v850_files} ${keep_these_too}"
38else
39 lose_these_too="${v850_files} ${lose_these_too}"
40fi
41
64556643
FF
42tic80_files="tc-tic80.c tc-tic80.h"
43
44if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
45 keep_these_too="${tic80_files} ${keep_these_too}"
46else
47 lose_these_too="${tic80_files} ${lose_these_too}"
48fi
c6aa56bc 49
0fd8d5d9
RP
50# All files listed between the "Things-to-keep:" line and the
51# "Files-to-sed:" line will be kept. All other files will be removed.
52# Directories listed in this section will have their own Sanitize
53# called. Directories not listed will be removed in their entirety
54# with rm -rf.
55
56Things-to-keep:
57
3e6e09c0 58aout_gnu.h
ff15324f
KR
59arm-big.mt
60arm-lit.mt
0fd8d5d9 61atof-ieee.c
b41390d2 62atof-tahoe.c
0fd8d5d9 63atof-vax.c
cd8aca19 64go32.cfg
511cd41c
KR
65e-mipsecoff.c
66e-mipself.c
6066ebad 67i386coff.mt
8e5c905e 68itbl-mips.h
a1c7c0f3
ILT
69m68k-parse.h
70m68k-parse.y
3ad9ec6a 71m68kcoff.mt
cd625bf3 72m88k-opcode.h
77a401e2 73m88kcoff.mt
e99f6f9c
ILT
74mips-big.mt
75mips-lit.mt
0fd8d5d9
RP
76obj-aout.c
77obj-aout.h
0fd8d5d9
RP
78obj-bout.c
79obj-bout.h
80obj-coff.c
81obj-coff.h
e99f6f9c
ILT
82obj-ecoff.c
83obj-ecoff.h
a4099f78
KR
84obj-elf.c
85obj-elf.h
f649d525
ILT
86obj-evax.c
87obj-evax.h
0fd8d5d9
RP
88obj-generic.c
89obj-generic.h
daae8c92
KR
90obj-hp300.c
91obj-hp300.h
fd345c9c
SC
92obj-ieee.c
93obj-ieee.h
511cd41c
KR
94obj-multi.c
95obj-multi.h
0fa747c4
JL
96obj-som.c
97obj-som.h
b41390d2
KR
98obj-vms.c
99obj-vms.h
8370e93e
MM
100ppc-big.mt
101ppc-lit.mt
159e6ef8 102ppc-sol.mt
4fe0fddd 103sco5.mt
0fd8d5d9
RP
104tc-a29k.c
105tc-a29k.h
5749c497
KR
106tc-alpha.c
107tc-alpha.h
6c3bc2b8
KR
108tc-arm.c
109tc-arm.h
0fd8d5d9
RP
110tc-generic.c
111tc-generic.h
fd345c9c
SC
112tc-h8300.c
113tc-h8300.h
033400ec
SC
114tc-h8500.c
115tc-h8500.h
daae8c92
KR
116tc-hppa.c
117tc-hppa.h
0fd8d5d9
RP
118tc-i386.c
119tc-i386.h
120tc-i860.c
121tc-i860.h
122tc-i960.c
123tc-i960.h
124tc-m68851.h
125tc-m68k.c
126tc-m68k.h
cd625bf3
DHW
127tc-m88k.c
128tc-m88k.h
fd345c9c
SC
129tc-mips.c
130tc-mips.h
ae1b99e4
JL
131tc-mn10200.c
132tc-mn10200.h
133tc-mn10300.c
134tc-mn10300.h
0fd8d5d9
RP
135tc-ns32k.c
136tc-ns32k.h
af46c203
ILT
137tc-ppc.c
138tc-ppc.h
4a1bbbe7
SC
139tc-sh.c
140tc-sh.h
6690d829 141tc-sparc.c
920babce 142tc-sparc.h
af3b5ad2
KR
143tc-tahoe.c
144tc-tahoe.h
0fd8d5d9
RP
145tc-vax.c
146tc-vax.h
b3235d56
SC
147tc-w65.c
148tc-w65.h
163107a1
SC
149tc-z8k.c
150tc-z8k.h
daae8c92 151te-386bsd.h
66b935da 152te-aux.h
757d4129 153te-delta.h
880b7429 154te-delt88.h
0fd8d5d9 155te-dpx2.h
f5ed78de 156te-dynix.h
0fd8d5d9 157te-generic.h
cd8aca19 158te-go32.h
daae8c92
KR
159te-hp300.h
160te-hppa.h
cd625bf3 161te-i386aix.h
0fd8d5d9 162te-ic960.h
daae8c92 163te-linux.h
d0c25cae 164te-lynx.h
5efa30fa 165te-mach.h
75d1d87a 166te-macos.h
511cd41c 167te-multi.h
04050d57 168te-nbsd.h
d5a0eeac 169te-nbsd532.h
f68880ea 170te-pc532mach.h
b04b02a5 171te-pe.h
cd8aca19 172te-ppcnw.h
8a6f53e9 173te-psos.h
69c1de90 174te-riscix.h
0fd8d5d9 175te-sco386.h
df4021c1 176te-sparcaout.h
0fd8d5d9 177te-sun3.h
920babce 178te-sysv32.h
0fd8d5d9 179vax-inst.h
ba466c4c 180vms-conf.h
f649d525 181vms-a-conf.h
0fd8d5d9 182
87756e15
RP
183Things-to-lose:
184
0fd8d5d9
RP
185Do-last:
186
276c2d7d
GRK
187r5900_files="tc-mips.c"
188
189if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
190 for i in $r5900_files ; do
191 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
192 if [ -n "${verbose}" ] ; then
193 echo Keeping r5900 stuff in $i
194 fi
195 fi
196 done
197else
198 for i in * ; do
199 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
200 if [ -n "${verbose}" ] ; then
201 echo Removing traces of \"r5900\" from $i...
202 fi
203 cp $i new
204 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
205 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
206 if [ -n "${verbose}" ] ; then
207 echo Caching $i in .Recover...
208 fi
209 mv $i .Recover
210 fi
211 mv new $i
212 fi
213 done
214fi
215
216
0fd8d5d9 217# End of file.
This page took 0.202669 seconds and 4 git commands to generate.