7128ce75dc3bc25c59403bc2e8138df31ac95d5f
[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 rce_files="tc-rce.c tc-rce.h"
19
20 if ( echo $* | grep keep\-rce > /dev/null ) ; then
21 keep_these_too="${rce_files} ${keep_these_too}"
22 else
23 lose_these_too="${rce_files} ${lose_these_too}"
24 fi
25
26 arc_files="tc-arc.c tc-arc.h"
27
28 if ( echo $* | grep keep\-arc > /dev/null ) ; then
29 keep_these_too="${arc_files} ${keep_these_too}"
30 else
31 lose_these_too="${arc_files} ${lose_these_too}"
32 fi
33
34 # All files listed between the "Things-to-keep:" line and the
35 # "Files-to-sed:" line will be kept. All other files will be removed.
36 # Directories listed in this section will have their own Sanitize
37 # called. Directories not listed will be removed in their entirety
38 # with rm -rf.
39
40 Things-to-keep:
41
42 aout_gnu.h
43 alpha-opcode.h
44 arm-big.mt
45 arm-lit.mt
46 atof-ieee.c
47 atof-tahoe.c
48 atof-vax.c
49 go32.cfg
50 e-mipsecoff.c
51 e-mipself.c
52 i386coff.mt
53 m68kcoff.mt
54 m88k-opcode.h
55 m88kcoff.mt
56 mips-big.mt
57 mips-lit.mt
58 obj-aout.c
59 obj-aout.h
60 obj-bout.c
61 obj-bout.h
62 obj-coff.c
63 obj-coff.h
64 obj-ecoff.c
65 obj-ecoff.h
66 obj-elf.c
67 obj-elf.h
68 obj-generic.c
69 obj-generic.h
70 obj-hp300.c
71 obj-hp300.h
72 obj-ieee.c
73 obj-ieee.h
74 obj-multi.c
75 obj-multi.h
76 obj-som.c
77 obj-som.h
78 obj-vms.c
79 obj-vms.h
80 ppc-big.mt
81 ppc-lit.mt
82 tc-a29k.c
83 tc-a29k.h
84 tc-alpha.c
85 tc-alpha.h
86 tc-arm.c
87 tc-arm.h
88 tc-generic.c
89 tc-generic.h
90 tc-h8300.c
91 tc-h8300.h
92 tc-h8500.c
93 tc-h8500.h
94 tc-hppa.c
95 tc-hppa.h
96 tc-i386.c
97 tc-i386.h
98 tc-i860.c
99 tc-i860.h
100 tc-i960.c
101 tc-i960.h
102 tc-m68851.h
103 tc-m68k.c
104 tc-m68k.h
105 tc-m88k.c
106 tc-m88k.h
107 tc-mips.c
108 tc-mips.h
109 tc-ns32k.c
110 tc-ns32k.h
111 tc-ppc.c
112 tc-ppc.h
113 tc-sh.c
114 tc-sh.h
115 tc-sparc.c
116 tc-sparc.h
117 tc-tahoe.c
118 tc-tahoe.h
119 tc-vax.c
120 tc-vax.h
121 tc-w65.c
122 tc-w65.h
123 tc-z8k.c
124 tc-z8k.h
125 te-386bsd.h
126 te-delta.h
127 te-dpx2.h
128 te-generic.h
129 te-go32.h
130 te-hp300.h
131 te-hppa.h
132 te-i386aix.h
133 te-ic960.h
134 te-linux.h
135 te-lynx.h
136 te-mach.h
137 te-multi.h
138 te-nbsd.h
139 te-nbsd532.h
140 te-pc532mach.h
141 te-pe.h
142 te-ppcnw.h
143 te-sco386.h
144 te-sun3.h
145 te-sysv32.h
146 vax-inst.h
147 vms-conf.h
148
149 Things-to-lose:
150
151 Do-last:
152
153 i960xl_files=tc-i960.c
154 if ( echo $* | grep keep\-i960xl > /dev/null ) ; then
155 if [ -n "${verbose}" ] ; then
156 echo Keeping i960xl stuff in $i960xl_files.
157 fi
158 else
159 if [ -n "${verbose}" ]; then
160 echo -n Cleaning i960xl in `pwd`:
161 fi
162 for f in $i960xl_files ; do
163 if [ -n "${verbose}" ] ; then
164 echo -n " " $f
165 fi
166 grep -v XL < $f > new
167 if [ -n "${safe}" ] ; then
168 mv $f .Recover
169 fi
170 mv new $f
171 done
172 fi
173
174 sh3e_files="tc-sh.c"
175 if ( echo $* | grep keep\-sh3e > /dev/null ) ; then
176 if [ -n "${verbose}" ] ; then
177 echo Keeping sh3e stuff in $sh3e_files.
178 fi
179 else
180 if [ -n "${verbose}" ]; then
181 echo -n Cleaning sh3e in `pwd`:
182 fi
183 for f in $sh3e_files ; do
184 if [ -n "${verbose}" ] ; then
185 echo -n " " $f
186 fi
187 sed -e '/start\-sanitize\-sh3e/,/end\-sanitize\-sh3e/d' -e '/ xl /d' < $f > new
188 if [ -n "${safe}" ] ; then
189 mv $f .Recover
190 fi
191 mv new $f
192 done
193 fi
194
195 # End of file.