Remove v850e sanitization
[deliverable/binutils-gdb.git] / include / elf / .Sanitize
1 # Sanitize.in for devo/include/elf.
2
3 # Each directory to survive it's 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 # All files listed between the "Things-to-keep:" line and the
19 # "Files-to-sed:" line will be kept. All other files will be removed.
20 # Directories listed in this section will have their own Sanitize
21 # called. Directories not listed will be removed in their entirety
22 # with rm -rf.
23
24 Things-to-keep:
25
26 ChangeLog
27 alpha.h
28 arc.h
29 arm.h
30 common.h
31 d10v.h
32 d30v.h
33 dwarf.h
34 dwarf2.h
35 external.h
36 fr30.h
37 hppa.h
38 i386.h
39 internal.h
40 m32r.h
41 m68k.h
42 mips.h
43 mn10200.h
44 mn10300.h
45 ppc.h
46 reloc-macros.h
47 sh.h
48 sparc.h
49 v850.h
50
51 Things-to-lose:
52
53 Do-last:
54
55 m32rx_files="ChangeLog m32r.h"
56 if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
57 for i in $m32rx_files ; do
58 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
59 if [ -n "${verbose}" ] ; then
60 echo Keeping m32rx stuff in $i
61 fi
62 fi
63 done
64 else
65 for i in $m32rx_files ; do
66 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
67 if [ -n "${verbose}" ] ; then
68 echo Removing traces of \"m32rx\" from $i...
69 fi
70 cp $i new
71 sed '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/d' < $i > new
72 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
73 if [ -n "${verbose}" ] ; then
74 echo Caching $i in .Recover...
75 fi
76 mv $i .Recover
77 fi
78 mv new $i
79 fi
80 done
81 fi
82
83 sky_files="ChangeLog mips.h"
84 if ( echo $* | grep keep\-sky > /dev/null ) ; then
85 for i in $sky_files ; do
86 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
87 if [ -n "${verbose}" ] ; then
88 echo Keeping sky stuff in $i
89 fi
90 fi
91 done
92 else
93 for i in $sky_files ; do
94 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
95 if [ -n "${verbose}" ] ; then
96 echo Removing traces of \"sky\" from $i...
97 fi
98 cp $i new
99 sed '/start\-sanitize\-sky/,/end\-sanitize\-sky/d' < $i > new
100 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
101 if [ -n "${verbose}" ] ; then
102 echo Caching $i in .Recover...
103 fi
104 mv $i .Recover
105 fi
106 mv new $i
107 fi
108 done
109 fi
110
111 vr4320_files="mips.h"
112 if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
113 for i in $vr4320_files ; do
114 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
115 if [ -n "${verbose}" ] ; then
116 echo Keeping vr4320 stuff in $i
117 fi
118 fi
119 done
120 else
121 for i in $vr4320_files ; do
122 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
123 if [ -n "${verbose}" ] ; then
124 echo Removing traces of \"vr4320\" from $i...
125 fi
126 cp $i new
127 sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/d' < $i > new
128 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
129 if [ -n "${verbose}" ] ; then
130 echo Caching $i in .Recover...
131 fi
132 mv $i .Recover
133 fi
134 mv new $i
135 fi
136 done
137 fi
138
139 vr4xxx_files="ChangeLog mips.h"
140 if ( echo $* | grep keep\-vr4xxx > /dev/null ) ; then
141 for i in $vr4xxx_files ; do
142 if test ! -d $i && (grep sanitize-vr4xxx $i > /dev/null) ; then
143 if [ -n "${verbose}" ] ; then
144 echo Keeping vr4xxx stuff in $i
145 fi
146 fi
147 done
148 else
149 for i in $vr4xxx_files ; do
150 if test ! -d $i && (grep sanitize-vr4xxx $i > /dev/null) ; then
151 if [ -n "${verbose}" ] ; then
152 echo Removing traces of \"vr4xxx\" from $i...
153 fi
154 cp $i new
155 sed '/start\-sanitize\-vr4xxx/,/end-\sanitize\-vr4xxx/d' < $i > new
156 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
157 if [ -n "${verbose}" ] ; then
158 echo Caching $i in .Recover...
159 fi
160 mv $i .Recover
161 fi
162 mv new $i
163 fi
164 done
165 fi
166
167 tx49_files="mips.h"
168 if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
169 for i in $tx49_files ; do
170 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
171 if [ -n "${verbose}" ] ; then
172 echo Keeping tx49 stuff in $i
173 fi
174 fi
175 done
176 else
177 for i in $tx49_files ; do
178 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
179 if [ -n "${verbose}" ] ; then
180 echo Removing traces of \"tx49\" from $i...
181 fi
182 cp $i new
183 sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new
184 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
185 if [ -n "${verbose}" ] ; then
186 echo Caching $i in .Recover...
187 fi
188 mv $i .Recover
189 fi
190 mv new $i
191 fi
192 done
193 fi
194
195 cygnus_files="mips.h mn10300.h"
196 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
197 for i in $cygnus_files ; do
198 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
199 if [ -n "${verbose}" ] ; then
200 echo Keeping cygnus stuff in $i
201 fi
202 fi
203 done
204 else
205 for i in $cygnus_files ; do
206 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
207 if [ -n "${verbose}" ] ; then
208 echo Removing traces of \"cygnus\" from $i...
209 fi
210 cp $i new
211 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
212 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
213 if [ -n "${verbose}" ] ; then
214 echo Caching $i in .Recover...
215 fi
216 mv $i .Recover
217 fi
218 mv new $i
219 fi
220 done
221 fi
222
223 r5900_files="mips.h ChangeLog"
224 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
225 for i in $r5900_files ; do
226 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
227 if [ -n "${verbose}" ] ; then
228 echo Keeping r5900 stuff in $i
229 fi
230 fi
231 done
232 else
233 for i in $r5900_files ; do
234 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
235 if [ -n "${verbose}" ] ; then
236 echo Removing traces of \"r5900\" from $i...
237 fi
238 cp $i new
239 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
240 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
241 if [ -n "${verbose}" ] ; then
242 echo Caching $i in .Recover...
243 fi
244 mv $i .Recover
245 fi
246 mv new $i
247 fi
248 done
249 fi
250
251 for i in * ; do
252 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
253 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
254 fi
255 done
256
257 # End of file.
This page took 0.035685 seconds and 4 git commands to generate.