Comings and goings of Mac-specific files.
[platform/upstream/binutils.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 rce_files="cpu-rce.c aout-rce.c"
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="cpu-arc.c elf32-arc.c"
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 COPYING
43 ChangeLog
44 ChangeLog.1
45 ChangeLog.2
46 Makefile.in
47 PORTING
48 TODO
49 VERSION
50 acconfig.h
51 aclocal.m4
52 aix386-core.c
53 aout-adobe.c
54 aout-arm.c
55 aout-encap.c
56 aout-ns32k.c
57 aout-target.h
58 aout0.c
59 aout32.c
60 aout64.c
61 aoutf1.h
62 aoutx.h
63 archive.c
64 archures.c
65 bfd-in.h
66 bfd-in2.h
67 bfd.c
68 binary.c
69 bout.c
70 cache.c
71 cf-i386lynx.c
72 cf-m68klynx.c
73 cf-sparclynx.c
74 cisco-core.c
75 coff-a29k.c
76 coff-arm.c
77 coff-alpha.c
78 coff-apollo.c
79 coff-go32.c
80 coff-h8300.c
81 coff-h8500.c
82 coff-i386.c
83 coff-i960.c
84 coff-m68k.c
85 coff-m88k.c
86 coff-mips.c
87 coff-pmac.c
88 coff-ppc.c
89 coff-rs6000.c
90 coff-sh.c
91 coff-sparc.c
92 coff-u68k.c
93 coff-we32k.c
94 coff-w65.c
95 coff-z8k.c
96 coffcode.h
97 coffgen.c
98 cofflink.c
99 coffswap.h
100 config.bfd
101 config.in
102 configure
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.c
145 elf64-gen.c
146 elf64-sparc.c
147 elf64.c
148 elfxx-target.h
149 elfcode.h
150 elfcore.h
151 elflink.c
152 elflink.h
153 filemode.c
154 format.c
155 gen-aout.c
156 genlink.h
157 hash.c
158 host-aout.c
159 hosts
160 hp300bsd.c
161 hp300hpux.c
162 hppa_stubs.h
163 hppabsd-core.c
164 hpux-core.c
165 i386aout.c
166 i386bsd.c
167 i386dynix.c
168 i386linux.c
169 i386netbsd.c
170 i386lynx.c
171 i386mach3.c
172 i386msdos.c
173 i386os9k.c
174 ieee.c
175 init.c
176 irix-core.c
177 libaout.h
178 libbfd-in.h
179 libbfd.c
180 libbfd.h
181 libcoff-in.h
182 libcoff.h
183 libecoff.h
184 libelf.h
185 libhppa.h
186 libieee.h
187 libnlm.h
188 liboasys.h
189 linker.c
190 lynx-core.c
191 m68klynx.c
192 m68knetbsd.c
193 m88kmach3.c
194 makefile.dos
195 mipsbsd.c
196 mpw-config.in
197 mpw-make.sed
198 newsos3.c
199 netbsd.h
200 nlm-target.h
201 nlm.c
202 nlm32-alpha.c
203 nlm32-i386.c
204 nlm32-ppc.c
205 nlm32-sparc.c
206 nlm32.c
207 nlm64.c
208 nlmcode.h
209 nlmswap.h
210 ns32knetbsd.c
211 oasys.c
212 opncls.c
213 osf-core.c
214 pc532-mach.c
215 pe-arm.c
216 pe-i386.c
217 pe-ppc.c
218 pei-arm.c
219 pei-i386.c
220 pei-ppc.c
221 peicode.h
222 ptrace-core.c
223 reloc.c
224 reloc16.c
225 riscix.c
226 rs6000-core.c
227 section.c
228 som.c
229 som.h
230 sparclynx.c
231 sparcnetbsd.c
232 srec.c
233 stab-syms.c
234 sunos.c
235 syms.c
236 sysdep.h
237 targets.c
238 tekhex.c
239 trad-core.c
240 versados.c
241
242 Things-to-lose:
243
244
245 Do-last:
246
247 i960xl_files="ChangeLog ChangeLog.2 archures.c bfd-in2.h cpu-i960.c coffcode.h"
248 if ( echo $* | grep keep\-i960xl > /dev/null ) ; then
249         if [ -n "${verbose}" ] ; then
250                 echo Keeping i960xl stuff in $i960xl_files.
251         fi
252 else
253         if [ -n "${verbose}" ]; then
254                 echo -n Cleaning i960xl in `pwd`:
255         fi
256         for f in $i960xl_files ; do
257                 if [ -n "${verbose}" ] ; then
258                         echo -n " " $f
259                 fi
260                 sed -e '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' < $f > new
261                 if [ -n "${safe}" ] ; then
262                         mv $f .Recover
263                 fi
264                 mv new $f
265         done
266 fi
267
268 rce_files="ChangeLog ChangeLog.2 Makefile.in archures.c bfd-in2.h config.bfd configure.in configure targets.c aoutx.h libaout.h"
269 if ( echo $* | grep keep\-rce > /dev/null ) ; then
270         for i in $rce_files ; do
271                 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
272                         if [ -n "${verbose}" ] ; then
273                                 echo Keeping rce stuff in $i
274                         fi
275                 fi
276         done
277 else
278         for i in $rce_files ; do
279                 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
280                         if [ -n "${verbose}" ] ; then
281                                 echo Removing traces of \"rce\" from $i...
282                         fi
283                         cp $i new
284                         sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new
285                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
286                                 if [ -n "${verbose}" ] ; then
287                                         echo Caching $i in .Recover...
288                                 fi
289                                 mv $i .Recover
290                         fi
291                         mv new $i
292                 fi
293         done
294 fi
295
296 arc_files="ChangeLog ChangeLog.2 Makefile.in archures.c reloc.c targets.c config.bfd configure.in configure bfd-in2.h elf.c libbfd.h"
297 if ( echo $* | grep keep\-arc > /dev/null ) ; then
298         for i in $arc_files ; do
299                 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
300                         if [ -n "${verbose}" ] ; then
301                                 echo Keeping arc stuff in $i
302                         fi
303                 fi
304         done
305 else
306         for i in $arc_files ; do
307                 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
308                         if [ -n "${verbose}" ] ; then
309                                 echo Removing traces of \"arc\" from $i...
310                         fi
311                         cp $i new
312                         sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
313                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
314                                 if [ -n "${verbose}" ] ; then
315                                         echo Caching $i in .Recover...
316                                 fi
317                                 mv $i .Recover
318                         fi
319                         mv new $i
320                 fi
321         done
322 fi
323
324 for i in * ; do
325         if test ! -d $i && (grep sanitize $i > /dev/null) ; then
326                 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
327         fi
328 done
329
330 # End of file.