8ecf818b9408e860212df047f80127822ccbd6cd
[deliverable/binutils-gdb.git] / gas / config / .Sanitize
1 # .Sanitize for devo/gas/config
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
15
16 Do-first:
17
18 arc_files="tc-arc.c tc-arc.h"
19
20 if ( echo $* | grep keep\-arc > /dev/null ) ; then
21 keep_these_too="${arc_files} ${keep_these_too}"
22 else
23 lose_these_too="${arc_files} ${lose_these_too}"
24 fi
25
26 d10v_files="tc-d10v.c tc-d10v.h"
27
28 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
29 keep_these_too="${d10v_files} ${keep_these_too}"
30 else
31 lose_these_too="${d10v_files} ${lose_these_too}"
32 fi
33
34 d30v_files="tc-d30v.c tc-d30v.h"
35
36 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
37 keep_these_too="${d30v_files} ${keep_these_too}"
38 else
39 lose_these_too="${d30v_files} ${lose_these_too}"
40 fi
41
42 v850_files="tc-v850.c tc-v850.h"
43
44 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
45 keep_these_too="${v850_files} ${keep_these_too}"
46 else
47 lose_these_too="${v850_files} ${lose_these_too}"
48 fi
49
50 tic80_files="tc-tic80.c tc-tic80.h"
51
52 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
53 keep_these_too="${tic80_files} ${keep_these_too}"
54 else
55 lose_these_too="${tic80_files} ${lose_these_too}"
56 fi
57
58 # All files listed between the "Things-to-keep:" line and the
59 # "Files-to-sed:" line will be kept. All other files will be removed.
60 # Directories listed in this section will have their own Sanitize
61 # called. Directories not listed will be removed in their entirety
62 # with rm -rf.
63
64 Things-to-keep:
65
66 aout_gnu.h
67 arm-big.mt
68 arm-lit.mt
69 atof-ieee.c
70 atof-tahoe.c
71 atof-vax.c
72 go32.cfg
73 e-i386coff.c
74 e-i386elf.c
75 e-mipsecoff.c
76 e-mipself.c
77 i386coff.mt
78 itbl-mips.h
79 m68k-parse.h
80 m68k-parse.y
81 m68kcoff.mt
82 m88k-opcode.h
83 m88kcoff.mt
84 mips-big.mt
85 mips-lit.mt
86 obj-aout.c
87 obj-aout.h
88 obj-bout.c
89 obj-bout.h
90 obj-coff.c
91 obj-coff.h
92 obj-ecoff.c
93 obj-ecoff.h
94 obj-elf.c
95 obj-elf.h
96 obj-evax.c
97 obj-evax.h
98 obj-generic.c
99 obj-generic.h
100 obj-hp300.c
101 obj-hp300.h
102 obj-ieee.c
103 obj-ieee.h
104 obj-multi.c
105 obj-multi.h
106 obj-som.c
107 obj-som.h
108 obj-vms.c
109 obj-vms.h
110 ppc-big.mt
111 ppc-lit.mt
112 ppc-sol.mt
113 sco5.mt
114 tc-a29k.c
115 tc-a29k.h
116 tc-alpha.c
117 tc-alpha.h
118 tc-arm.c
119 tc-arm.h
120 tc-generic.c
121 tc-generic.h
122 tc-h8300.c
123 tc-h8300.h
124 tc-h8500.c
125 tc-h8500.h
126 tc-hppa.c
127 tc-hppa.h
128 tc-i386.c
129 tc-i386.h
130 tc-i860.c
131 tc-i860.h
132 tc-i960.c
133 tc-i960.h
134 tc-m68851.h
135 tc-m68k.c
136 tc-m68k.h
137 tc-m88k.c
138 tc-m88k.h
139 tc-mips.c
140 tc-mips.h
141 tc-mn10200.c
142 tc-mn10200.h
143 tc-mn10300.c
144 tc-mn10300.h
145 tc-ns32k.c
146 tc-ns32k.h
147 tc-ppc.c
148 tc-ppc.h
149 tc-sh.c
150 tc-sh.h
151 tc-sparc.c
152 tc-sparc.h
153 tc-tahoe.c
154 tc-tahoe.h
155 tc-vax.c
156 tc-vax.h
157 tc-w65.c
158 tc-w65.h
159 tc-z8k.c
160 tc-z8k.h
161 te-386bsd.h
162 te-aux.h
163 te-delta.h
164 te-delt88.h
165 te-dpx2.h
166 te-dynix.h
167 te-generic.h
168 te-go32.h
169 te-hp300.h
170 te-hppa.h
171 te-i386aix.h
172 te-ic960.h
173 te-linux.h
174 te-lnews.h
175 te-lynx.h
176 te-mach.h
177 te-macos.h
178 te-multi.h
179 te-nbsd.h
180 te-nbsd532.h
181 te-pc532mach.h
182 te-pe.h
183 te-ppcnw.h
184 te-psos.h
185 te-riscix.h
186 te-sco386.h
187 te-sparcaout.h
188 te-sun3.h
189 te-svr4.h
190 te-sysv32.h
191 vax-inst.h
192 vms-conf.h
193 vms-a-conf.h
194
195 Things-to-lose:
196
197 Do-last:
198
199 r5900_files="tc-mips.c"
200
201 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
202 for i in $r5900_files ; do
203 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
204 if [ -n "${verbose}" ] ; then
205 echo Keeping r5900 stuff in $i
206 fi
207 fi
208 done
209 else
210 for i in * ; do
211 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
212 if [ -n "${verbose}" ] ; then
213 echo Removing traces of \"r5900\" from $i...
214 fi
215 cp $i new
216 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
217 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
218 if [ -n "${verbose}" ] ; then
219 echo Caching $i in .Recover...
220 fi
221 mv $i .Recover
222 fi
223 mv new $i
224 fi
225 done
226 fi
227
228 tic80_files="obj-coff.h"
229
230 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
231 for i in $tic80_files ; do
232 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
233 if [ -n "${verbose}" ] ; then
234 echo Keeping tic80 stuff in $i
235 fi
236 fi
237 done
238 else
239 for i in * ; do
240 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
241 if [ -n "${verbose}" ] ; then
242 echo Removing traces of \"tic80\" from $i...
243 fi
244 cp $i new
245 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
246 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
247 if [ -n "${verbose}" ] ; then
248 echo Caching $i in .Recover...
249 fi
250 mv $i .Recover
251 fi
252 mv new $i
253 fi
254 done
255 fi
256
257
258 # End of file.
This page took 0.034764 seconds and 4 git commands to generate.