Remove v850e sanitization
[deliverable/binutils-gdb.git] / include / elf / .Sanitize
CommitLineData
cc8b3b77 1# Sanitize.in for devo/include/elf.
1ee1fd7e
SC
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
16Do-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
24Things-to-keep:
25
1ee1fd7e 26ChangeLog
3309648e 27alpha.h
abb742ac 28arc.h
46cd3dab 29arm.h
1ee1fd7e 30common.h
46cd3dab 31d10v.h
2caa49ec 32d30v.h
1ee1fd7e 33dwarf.h
540cd16f 34dwarf2.h
1ee1fd7e 35external.h
025ce5c6 36fr30.h
ab0453e0 37hppa.h
46cd3dab 38i386.h
1ee1fd7e 39internal.h
9582f9ab 40m32r.h
46cd3dab 41m68k.h
55d5703f 42mips.h
46cd3dab 43mn10200.h
3f1bb6f2 44mn10300.h
b14e6182 45ppc.h
2caa49ec 46reloc-macros.h
46cd3dab 47sh.h
688beae5 48sparc.h
6c84a1a2 49v850.h
1ee1fd7e 50
87756e15
RP
51Things-to-lose:
52
1ee1fd7e
SC
53Do-last:
54
3da7442d
NC
55m32rx_files="ChangeLog m32r.h"
56if ( 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
64else
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
81fi
82
4086bde1 83sky_files="ChangeLog mips.h"
cc8b3b77
DE
84if ( 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
92else
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
109fi
110
6a347e3c
ILT
111vr4320_files="mips.h"
112if ( 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
120else
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
137fi
138
f14397f0
GRK
139vr4xxx_files="ChangeLog mips.h"
140if ( 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
148else
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
165fi
166
6a347e3c
ILT
167tx49_files="mips.h"
168if ( 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
176else
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
193fi
194
5809e33d 195cygnus_files="mips.h mn10300.h"
485c39eb
KR
196if ( 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
6a347e3c 199 if [ -n "${verbose}" ] ; then
485c39eb 200 echo Keeping cygnus stuff in $i
6a347e3c
ILT
201 fi
202 fi
203 done
204else
485c39eb
KR
205 for i in $cygnus_files ; do
206 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
6a347e3c 207 if [ -n "${verbose}" ] ; then
485c39eb 208 echo Removing traces of \"cygnus\" from $i...
6a347e3c
ILT
209 fi
210 cp $i new
485c39eb 211 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
6a347e3c
ILT
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
221fi
222
ddbe80f7 223r5900_files="mips.h ChangeLog"
6a347e3c
ILT
224if ( 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
232else
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
249fi
250
dc997928
DE
251for 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
255done
256
1ee1fd7e 257# End of file.
This page took 0.233388 seconds and 4 git commands to generate.