keep new msdos files
[deliverable/binutils-gdb.git] / bfd / .Sanitize
1 # .Sanitize for devo/bfd.
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 mpw_files="mpw-config.in mpw-make.in ChangeLog.mpw"
19
20 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
21 keep_these_too="${mpw_files} ${keep_these_too}"
22 else
23 lose_these_too="${mpw_files} ${lose_these_too}"
24 fi
25
26 rce_files="cpu-rce.c aout-rce.c"
27
28 if ( echo $* | grep keep\-rce > /dev/null ) ; then
29 keep_these_too="${rce_files} ${keep_these_too}"
30 else
31 lose_these_too="${rce_files} ${lose_these_too}"
32 fi
33
34 arc_files="cpu-arc.c elf32-arc.c"
35
36 if ( echo $* | grep keep\-arc > /dev/null ) ; then
37 keep_these_too="${arc_files} ${keep_these_too}"
38 else
39 lose_these_too="${arc_files} ${lose_these_too}"
40 fi
41
42 # All files listed between the "Things-to-keep:" line and the
43 # "Files-to-sed:" line will be kept. All other files will be removed.
44 # Directories listed in this section will have their own Sanitize
45 # called. Directories not listed will be removed in their entirety
46 # with rm -rf.
47
48 Things-to-keep:
49
50 COPYING
51 ChangeLog
52 ChangeLog.1
53 Makefile.in
54 PORTING
55 TODO
56 VERSION
57 aix386-core.c
58 aout-adobe.c
59 aout-encap.c
60 aout-ns32k.c
61 aout-target.h
62 aout0.c
63 aout32.c
64 aout64.c
65 aoutf1.h
66 aoutx.h
67 archive.c
68 archures.c
69 bfd-in.h
70 bfd-in2.h
71 bfd.c
72 binary.c
73 bout.c
74 cache.c
75 cf-i386lynx.c
76 cf-m68klynx.c
77 cf-sparclynx.c
78 cisco-core.c
79 coff-a29k.c
80 coff-alpha.c
81 coff-apollo.c
82 coff-go32.c
83 coff-h8300.c
84 coff-h8500.c
85 coff-i386.c
86 coff-i960.c
87 coff-m68k.c
88 coff-m88k.c
89 coff-mips.c
90 coff-rs6000.c
91 coff-sh.c
92 coff-sparc.c
93 coff-u68k.c
94 coff-we32k.c
95 coff-w65.c
96 coff-z8k.c
97 coffcode.h
98 coffgen.c
99 cofflink.c
100 coffswap.h
101 config
102 config.bfd
103 configure.bat
104 configure.host
105 configure.in
106 core.c
107 cpu-a29k.c
108 cpu-alpha.c
109 cpu-arm.c
110 cpu-h8300.c
111 cpu-h8500.c
112 cpu-hppa.c
113 cpu-i386.c
114 cpu-i960.c
115 cpu-m68k.c
116 cpu-m88k.c
117 cpu-mips.c
118 cpu-ns32k.c
119 cpu-powerpc.c
120 cpu-rs6000.c
121 cpu-sh.c
122 cpu-sparc.c
123 cpu-vax.c
124 cpu-we32k.c
125 cpu-w65.c
126 cpu-z8k.c
127 demo64.c
128 dep-in.sed
129 doc
130 ecoff.c
131 ecofflink.c
132 ecoffswap.h
133 elf.c
134 elf32-gen.c
135 elf32-hppa.c
136 elf32-hppa.h
137 elf32-i386.c
138 elf32-i860.c
139 elf32-m68k.c
140 elf32-m88k.c
141 elf32-mips.c
142 elf32-ppc.c
143 elf32-sparc.c
144 elf32-target.h
145 elf32.c
146 elf64-gen.c
147 elf64-sparc.c
148 elf64-target.h
149 elf64.c
150 elfcode.h
151 filemode.c
152 format.c
153 gen-aout.c
154 genlink.h
155 hash.c
156 host-aout.c
157 hosts
158 hp300bsd.c
159 hp300hpux.c
160 hppa_stubs.h
161 hppabsd-core.c
162 hpux-core.c
163 i386aout.c
164 i386bsd.c
165 i386dynix.c
166 i386linux.c
167 i386netbsd.c
168 i386lynx.c
169 i386mach3.c
170 i386msdos.c
171 i386os9k.c
172 ieee.c
173 init.c
174 irix-core.c
175 libaout.h
176 libbfd-in.h
177 libbfd.c
178 libbfd.h
179 libcoff-in.h
180 libcoff.h
181 libecoff.h
182 libelf.h
183 libhppa.h
184 libieee.h
185 libnlm.h
186 liboasys.h
187 linker.c
188 lynx-core.c
189 m68klynx.c
190 m68knetbsd.c
191 m88kmach3.c
192 makefile.dos
193 mipsbsd.c
194 newsos3.c
195 netbsd.h
196 nlm-target.h
197 nlm.c
198 nlm32-alpha.c
199 nlm32-i386.c
200 nlm32-ppc.c
201 nlm32-sparc.c
202 nlm32.c
203 nlm64.c
204 nlmcode.h
205 nlmswap.h
206 ns32knetbsd.c
207 oasys.c
208 opncls.c
209 osf-core.c
210 pc532-mach.c
211 ptrace-core.c
212 reloc.c
213 reloc16.c
214 riscix.c
215 rs6000-core.c
216 section.c
217 som.c
218 som.h
219 sparclynx.c
220 sparcnetbsd.c
221 srec.c
222 stab-syms.c
223 sunos.c
224 syms.c
225 targets.c
226 tekhex.c
227 trad-core.c
228
229 Things-to-lose:
230
231
232 Do-last:
233
234 mpwfiles="ecoffswap.h coffswap.h"
235 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
236 if [ -n "${verbose}" ] ; then
237 echo Keeping mpw stuff in $mpwfiles.
238 fi
239 else
240 if [ -n "${verbose}" ]; then
241 echo -n Cleaning mpw in `pwd`:
242 fi
243 for f in $mpwfiles ; do
244 if [ -n "${verbose}" ] ; then
245 echo -n " " $f
246 fi
247 sed '/start\-sanitize\-mpw/,/end\-sanitize\-mpw/d' < $f > new
248 if [ -n "${safe}" ] ; then
249 mv $f .Recover
250 fi
251 mv new $f
252 done
253 chmod a+x config.bfd
254 fi
255
256 i960xl_files="ChangeLog archures.c bfd-in2.h cpu-i960.c coffcode.h"
257 if ( echo $* | grep keep\-i960xl > /dev/null ) ; then
258 if [ -n "${verbose}" ] ; then
259 echo Keeping i960xl stuff in $i960xl_files.
260 fi
261 else
262 if [ -n "${verbose}" ]; then
263 echo -n Cleaning i960xl in `pwd`:
264 fi
265 for f in $i960xl_files ; do
266 if [ -n "${verbose}" ] ; then
267 echo -n " " $f
268 fi
269 sed -e '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' < $f > new
270 if [ -n "${safe}" ] ; then
271 mv $f .Recover
272 fi
273 mv new $f
274 done
275 fi
276
277 rce_files="ChangeLog Makefile.in archures.c bfd-in2.h config.bfd configure.in targets.c aoutx.h libaout.h"
278 if ( echo $* | grep keep\-rce > /dev/null ) ; then
279 for i in $rce_files ; do
280 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
281 if [ -n "${verbose}" ] ; then
282 echo Keeping rce stuff in $i
283 fi
284 fi
285 done
286 else
287 for i in $rce_files ; do
288 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
289 if [ -n "${verbose}" ] ; then
290 echo Removing traces of \"rce\" from $i...
291 fi
292 cp $i new
293 sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new
294 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
295 if [ -n "${verbose}" ] ; then
296 echo Caching $i in .Recover...
297 fi
298 mv $i .Recover
299 fi
300 mv new $i
301 fi
302 done
303 fi
304
305 arc_files="ChangeLog Makefile.in archures.c reloc.c targets.c config.bfd configure.in bfd-in2.h elfcode.h libbfd.h"
306 if ( echo $* | grep keep\-arc > /dev/null ) ; then
307 for i in $arc_files ; do
308 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
309 if [ -n "${verbose}" ] ; then
310 echo Keeping arc stuff in $i
311 fi
312 fi
313 done
314 else
315 for i in $arc_files ; do
316 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
317 if [ -n "${verbose}" ] ; then
318 echo Removing traces of \"arc\" from $i...
319 fi
320 cp $i new
321 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
322 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
323 if [ -n "${verbose}" ] ; then
324 echo Caching $i in .Recover...
325 fi
326 mv $i .Recover
327 fi
328 mv new $i
329 fi
330 done
331 fi
332
333 for i in * ; do
334 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
335 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
336 fi
337 done
338
339 # End of file.
This page took 0.060224 seconds and 5 git commands to generate.