]> Git Repo - binutils.git/blob - gas/config/.Sanitize
* config/tc-mips.c (mips_5400): New variable.
[binutils.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 if [ -d vms ]; then
19         lose_these_too="vms ${lose_these_too}"
20 fi
21
22 d30v_files="tc-d30v.c tc-d30v.h"
23
24 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
25         keep_these_too="${d30v_files} ${keep_these_too}"
26 else
27         lose_these_too="${d30v_files} ${lose_these_too}"
28 fi
29
30 tic80_files="tc-tic80.c tc-tic80.h"
31
32 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
33         keep_these_too="${tic80_files} ${keep_these_too}"
34 else
35         lose_these_too="${tic80_files} ${lose_these_too}"
36 fi
37
38 # All files listed between the "Things-to-keep:" line and the
39 # "Files-to-sed:" line will be kept.  All other files will be removed.
40 # Directories listed in this section will have their own Sanitize
41 # called.  Directories not listed will be removed in their entirety
42 # with rm -rf.
43
44 Things-to-keep:
45
46 aout_gnu.h
47 atof-ieee.c
48 atof-tahoe.c
49 atof-vax.c
50 go32.cfg
51 e-i386coff.c
52 e-i386elf.c
53 e-mipsecoff.c
54 e-mipself.c
55 itbl-mips.h
56 m68k-parse.h
57 m68k-parse.y
58 m88k-opcode.h
59 obj-aout.c
60 obj-aout.h
61 obj-bout.c
62 obj-bout.h
63 obj-coff.c
64 obj-coff.h
65 obj-ecoff.c
66 obj-ecoff.h
67 obj-elf.c
68 obj-elf.h
69 obj-evax.c
70 obj-evax.h
71 obj-generic.c
72 obj-generic.h
73 obj-hp300.c
74 obj-hp300.h
75 obj-ieee.c
76 obj-ieee.h
77 obj-multi.c
78 obj-multi.h
79 obj-som.c
80 obj-som.h
81 obj-vms.c
82 obj-vms.h
83 tc-a29k.c
84 tc-a29k.h
85 tc-alpha.c
86 tc-alpha.h
87 tc-arc.c
88 tc-arc.h
89 tc-arm.c
90 tc-arm.h
91 tc-d10v.c
92 tc-d10v.h
93 tc-generic.c
94 tc-generic.h
95 tc-h8300.c
96 tc-h8300.h
97 tc-h8500.c
98 tc-h8500.h
99 tc-hppa.c
100 tc-hppa.h
101 tc-i386.c
102 tc-i386.h
103 tc-i860.c
104 tc-i860.h
105 tc-i960.c
106 tc-i960.h
107 tc-m32r.c
108 tc-m32r.h
109 tc-m68851.h
110 tc-m68k.c
111 tc-m68k.h
112 tc-m88k.c
113 tc-m88k.h
114 tc-mips.c
115 tc-mips.h
116 tc-mn10200.c
117 tc-mn10200.h
118 tc-mn10300.c
119 tc-mn10300.h
120 tc-ns32k.c
121 tc-ns32k.h
122 tc-ppc.c
123 tc-ppc.h
124 tc-sh.c
125 tc-sh.h
126 tc-sparc.c
127 tc-sparc.h
128 tc-tahoe.c
129 tc-tahoe.h
130 tc-v850.c
131 tc-v850.h
132 tc-vax.c
133 tc-vax.h
134 tc-w65.c
135 tc-w65.h
136 tc-z8k.c
137 tc-z8k.h
138 te-386bsd.h
139 te-aux.h
140 te-delta.h
141 te-delt88.h
142 te-dpx2.h
143 te-dynix.h
144 te-generic.h
145 te-go32.h
146 te-hp300.h
147 te-hppa.h
148 te-i386aix.h
149 te-ic960.h
150 te-linux.h
151 te-lnews.h
152 te-lynx.h
153 te-mach.h
154 te-macos.h
155 te-multi.h
156 te-nbsd.h
157 te-nbsd532.h
158 te-pc532mach.h
159 te-pe.h
160 te-ppcnw.h
161 te-psos.h
162 te-riscix.h
163 te-sparcaout.h
164 te-sun3.h
165 te-svr4.h
166 te-sysv32.h
167 vax-inst.h
168 vms-conf.h
169 vms-a-conf.h
170
171 Things-to-lose:
172
173 Do-last:
174
175 r5900_files="tc-mips.c"
176
177 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
178         for i in $r5900_files ; do
179                 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
180                         if [ -n "${verbose}" ] ; then
181                                 echo Keeping r5900 stuff in $i
182                         fi
183                 fi
184         done
185 else
186         for i in * ; do
187                 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
188                         if [ -n "${verbose}" ] ; then
189                                 echo Removing traces of \"r5900\" from $i...
190                         fi
191                         cp $i new
192                         sed '/start\-sanitize\-r5900/,/end\-sanitize\-r5900/d' < $i > new
193                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
194                                 if [ -n "${verbose}" ] ; then
195                                         echo Caching $i in .Recover...
196                                 fi
197                                 mv $i .Recover
198                         fi
199                         mv new $i
200                 fi
201         done
202 fi
203
204 vr5400_files="tc-mips.c"
205 if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
206         for i in $vr5400_files ; do
207                 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
208                         if [ -n "${verbose}" ] ; then
209                                 echo Keeping vr5400 stuff in $i
210                         fi
211                 fi
212         done
213 else
214         for i in * ; do
215                 if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
216                         if [ -n "${verbose}" ] ; then
217                                 echo Removing traces of \"vr5400\" from $i...
218                         fi
219                         cp $i new
220                         sed '/start\-sanitize\-vr5400/,/end\-sanitize\-vr5400/d' < $i > new
221                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
222                                 if [ -n "${verbose}" ] ; then
223                                         echo Caching $i in .Recover...
224                                 fi
225                                 mv $i .Recover
226                         fi
227                         mv new $i
228                 fi
229         done
230 fi
231
232 tx19_files="tc-mips.c"
233
234 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
235         for i in $tx19_files ; do
236                 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
237                         if [ -n "${verbose}" ] ; then
238                                 echo Keeping tx19 stuff in $i
239                         fi
240                 fi
241         done
242 else
243         for i in * ; do
244                 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
245                         if [ -n "${verbose}" ] ; then
246                                 echo Removing traces of \"tx19\" from $i...
247                         fi
248                         cp $i new
249                         sed '/start\-sanitize\-tx19/,/end\-sanitize\-tx19/d' < $i > new
250                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
251                                 if [ -n "${verbose}" ] ; then
252                                         echo Caching $i in .Recover...
253                                 fi
254                                 mv $i .Recover
255                         fi
256                         mv new $i
257                 fi
258         done
259 fi
260
261 tx49_files="ChangeLog tc-mips.c"
262
263 if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
264         for i in $tx49_files ; do
265                 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
266                         if [ -n "${verbose}" ] ; then
267                                 echo Keeping tx49 stuff in $i
268                         fi
269                 fi
270         done
271 else
272         for i in * ; do
273                 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
274                         if [ -n "${verbose}" ] ; then
275                                 echo Removing traces of \"tx49\" from $i...
276                         fi
277                         cp $i new
278                         sed '/start\-sanitize\-tx49/,/end\-sanitize\-tx49/d' < $i > new
279                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
280                                 if [ -n "${verbose}" ] ; then
281                                         echo Caching $i in .Recover...
282                                 fi
283                                 mv $i .Recover
284                         fi
285                         mv new $i
286                 fi
287         done
288 fi
289
290 tic80_files="obj-coff.h"
291
292 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
293         for i in $tic80_files ; do
294                 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
295                         if [ -n "${verbose}" ] ; then
296                                 echo Keeping tic80 stuff in $i
297                         fi
298                 fi
299         done
300 else
301         for i in * ; do
302                 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
303                         if [ -n "${verbose}" ] ; then
304                                 echo Removing traces of \"tic80\" from $i...
305                         fi
306                         cp $i new
307                         sed '/start\-sanitize\-tic80/,/end\-sanitize\-tic80/d' < $i > new
308                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
309                                 if [ -n "${verbose}" ] ; then
310                                         echo Caching $i in .Recover...
311                                 fi
312                                 mv $i .Recover
313                         fi
314                         mv new $i
315                 fi
316         done
317 fi
318
319 if [ -n "${verbose}" ] ; then
320         echo Processing \"sh4\"...
321 fi
322
323 sh4_files="tc-sh.c"
324 if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
325         for i in $sh4_files ; do
326                 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
327                         if [ -n "${verbose}" ] ; then
328                                 echo Keeping sh4 stuff in $i
329                         fi
330                 fi
331         done
332 else
333         for i in $sh4_files ; do
334                 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
335                         if [ -n "${verbose}" ] ; then
336                                 echo Removing traces of \"sh4\" from $i...
337                         fi
338                         cp $i new
339                         sed -e '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' -e 's/.*restore\-sanitize\-sh4//' < $i > new
340                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
341                                 if [ -n "${verbose}" ] ; then
342                                         echo Caching $i in .Recover...
343                                 fi
344                                 mv $i .Recover
345                         fi
346                         mv new $i
347                 fi
348         done
349 fi
350
351 v850e_files="tc-v850.c tc-v850.h"
352 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
353         for i in $v850e_files ; do
354                 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
355                         if [ -n "${verbose}" ] ; then
356                                 echo Keeping v850e stuff in $i
357                         fi
358                 fi
359         done
360 else
361         for i in $v850e_files ; do
362                 if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then
363                         if [ -n "${verbose}" ] ; then
364                                 echo Removing traces of \"v850e\" from $i...
365                         fi
366                         cp $i new
367                         sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new
368                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
369                                 if [ -n "${verbose}" ] ; then
370                                         echo Caching $i in .Recover...
371                                 fi
372                                 mv $i .Recover
373                         fi
374                         mv new $i
375                 fi
376         done
377 fi
378
379 # End of file.
This page took 0.045954 seconds and 4 git commands to generate.