Corrected spelling mistake!
[deliverable/binutils-gdb.git] / gas / .Sanitize
1 # .Sanitize for devo/gas.
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 directory.
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 CONTRIBUTORS
27 COPYING
28 ChangeLog
29 ChangeLog.1
30 Makefile.am
31 Makefile.in
32 NEWS
33 README
34 README-vms
35 acconfig.h
36 acinclude.m4
37 aclocal.m4
38 app.c
39 as.c
40 as.h
41 atof-generic.c
42 bignum-copy.c
43 bignum.h
44 bit_fix.h
45 cgen.c
46 cond.c
47 config
48 config.in
49 config-gas.com
50 configure
51 configure.bat
52 configure.in
53 debug.c
54 dep-in.sed
55 depend.c
56 doc
57 ecoff.c
58 ecoff.h
59 emul-target.h
60 emul.h
61 expr.c
62 expr.h
63 flonum-copy.c
64 flonum-konst.c
65 flonum-mult.c
66 flonum.h
67 frags.c
68 frags.h
69 gasp.c
70 gdbinit.in
71 hash.c
72 hash.h
73 input-file.c
74 input-file.h
75 input-scrub.c
76 link.cmd
77 listing.c
78 listing.h
79 literal.c
80 itbl-lex.l
81 itbl-ops.c
82 itbl-ops.h
83 itbl-parse.y
84 mac-as.r
85 macro.c
86 macro.h
87 makefile.vms
88 messages.c
89 mpw-config.in
90 mpw-make.sed
91 obj.h
92 output-file.c
93 output-file.h
94 read.c
95 read.h
96 sb.c
97 sb.h
98 stabs.c
99 stamp-h.in
100 struc-symbol.h
101 subsegs.c
102 subsegs.h
103 symbols.c
104 symbols.h
105 tc.h
106 testsuite
107 vmsconf.sh
108 write.c
109 write.h
110
111 Things-to-lose:
112
113 Do-last:
114
115 if ( echo $* | grep keep\-gm > /dev/null ) ; then
116 for i in * ; do
117 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
118 if [ -n "${verbose}" ] ; then
119 echo Keeping gm stuff in $i
120 fi
121 fi
122 done
123 else
124 for i in * ; do
125 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
126 if [ -n "${verbose}" ] ; then
127 echo Removing traces of \"gm\" from $i...
128 fi
129 cp $i new
130 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
131 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
132 if [ -n "${verbose}" ] ; then
133 echo Caching $i in .Recover...
134 fi
135 mv $i .Recover
136 fi
137 mv new $i
138 fi
139 done
140 fi
141
142
143 v850_files="ChangeLog configure.in configure"
144 if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
145 for i in $v850_files ; do
146 if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then
147 if [ -n "${verbose}" ] ; then
148 echo Keeping v850eq stuff in $i
149 fi
150 fi
151 done
152 else
153 for i in $v850_files ; do
154 if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then
155 if [ -n "${verbose}" ] ; then
156 echo Removing traces of \"v850eq\" from $i...
157 fi
158 cp $i new
159 sed '/start\-sanitize\-v850eq/,/end-\sanitize\-v850eq/d' < $i > new
160 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
161 if [ -n "${verbose}" ] ; then
162 echo Caching $i in .Recover...
163 fi
164 mv $i .Recover
165 fi
166 mv new $i
167 fi
168 done
169 fi
170 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
171 for i in $v850_files ; do
172 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
173 if [ -n "${verbose}" ] ; then
174 echo Keeping v850e stuff in $i
175 fi
176 fi
177 done
178 else
179 for i in $v850_files ; do
180 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
181 if [ -n "${verbose}" ] ; then
182 echo Removing traces of \"v850e\" from $i...
183 fi
184 cp $i new
185 sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new
186 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
187 if [ -n "${verbose}" ] ; then
188 echo Caching $i in .Recover...
189 fi
190 mv $i .Recover
191 fi
192 mv new $i
193 fi
194 done
195 fi
196
197 r5900_files="ChangeLog"
198 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
199 for i in $r5900_files ; do
200 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
201 if [ -n "${verbose}" ] ; then
202 echo Keeping r5900 stuff in $i
203 fi
204 fi
205 done
206 else
207 for i in $r5900_files ; do
208 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
209 if [ -n "${verbose}" ] ; then
210 echo Removing traces of \"r5900\" from $i...
211 fi
212 cp $i new
213 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
214 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
215 if [ -n "${verbose}" ] ; then
216 echo Caching $i in .Recover...
217 fi
218 mv $i .Recover
219 fi
220 mv new $i
221 fi
222 done
223 fi
224
225 tx19_files="ChangeLog"
226 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
227 for i in $tx19_files ; do
228 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
229 if [ -n "${verbose}" ] ; then
230 echo Keeping tx19 stuff in $i
231 fi
232 fi
233 done
234 else
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 Removing traces of \"tx19\" from $i...
239 fi
240 cp $i new
241 sed '/start\-sanitize\-tx19/,/end-\sanitize\-tx19/d' < $i > new
242 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
243 if [ -n "${verbose}" ] ; then
244 echo Caching $i in .Recover...
245 fi
246 mv $i .Recover
247 fi
248 mv new $i
249 fi
250 done
251 fi
252
253 tic80_files="ChangeLog configure.in configure"
254 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
255 for i in $tic80_files ; do
256 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
257 if [ -n "${verbose}" ] ; then
258 echo Keeping tic80 stuff in $i
259 fi
260 fi
261 done
262 else
263 for i in $tic80_files ; do
264 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
265 if [ -n "${verbose}" ] ; then
266 echo Removing traces of \"tic80\" from $i...
267 fi
268 cp $i new
269 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
270 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
271 if [ -n "${verbose}" ] ; then
272 echo Caching $i in .Recover...
273 fi
274 mv $i .Recover
275 fi
276 mv new $i
277 fi
278 done
279 fi
280
281 d30v_files="ChangeLog configure configure.in"
282 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
283 for i in $d30v_files ; do
284 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
285 if [ -n "${verbose}" ] ; then
286 echo Keeping d30v stuff in $i
287 fi
288 fi
289 done
290 else
291 for i in $d30v_files ; do
292 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
293 if [ -n "${verbose}" ] ; then
294 echo Removing traces of \"d30v\" from $i...
295 fi
296 cp $i new
297 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
298 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
299 if [ -n "${verbose}" ] ; then
300 echo Caching $i in .Recover...
301 fi
302 mv $i .Recover
303 fi
304 mv new $i
305 fi
306 done
307 fi
308
309 if [ -n "${verbose}" ] ; then
310 echo Processing \"sh4\"...
311 fi
312
313 sh4_files="ChangeLog"
314 if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
315 for i in $sh4_files ; do
316 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
317 if [ -n "${verbose}" ] ; then
318 echo Keeping sh4 stuff in $i
319 fi
320 fi
321 done
322 else
323 for i in $sh4_files ; do
324 if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
325 if [ -n "${verbose}" ] ; then
326 echo Removing traces of \"sh4\" from $i...
327 fi
328 cp $i new
329 sed -e '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' -e 's/.*restore\-sanitize\-sh4//' < $i > new
330 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
331 if [ -n "${verbose}" ] ; then
332 echo Caching $i in .Recover...
333 fi
334 mv $i .Recover
335 fi
336 mv new $i
337 fi
338 done
339 fi
340
341 for i in * ; do
342 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
343 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
344 fi
345 done
346
347 #
348 # End of file.
This page took 0.036747 seconds and 4 git commands to generate.