Add start at AIX linker support; no shared libraries yet.
[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 xcofflink.c
242
243 Things-to-lose:
244
245
246 Do-last:
247
248 i960xl_files="ChangeLog ChangeLog.2 archures.c bfd-in2.h cpu-i960.c coffcode.h"
249 if ( echo $* | grep keep\-i960xl > /dev/null ) ; then
250         if [ -n "${verbose}" ] ; then
251                 echo Keeping i960xl stuff in $i960xl_files.
252         fi
253 else
254         if [ -n "${verbose}" ]; then
255                 echo -n Cleaning i960xl in `pwd`:
256         fi
257         for f in $i960xl_files ; do
258                 if [ -n "${verbose}" ] ; then
259                         echo -n " " $f
260                 fi
261                 sed -e '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' < $f > new
262                 if [ -n "${safe}" ] ; then
263                         mv $f .Recover
264                 fi
265                 mv new $f
266         done
267 fi
268
269 rce_files="ChangeLog ChangeLog.2 Makefile.in archures.c bfd-in2.h config.bfd configure.in configure targets.c aoutx.h libaout.h"
270 if ( echo $* | grep keep\-rce > /dev/null ) ; then
271         for i in $rce_files ; do
272                 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
273                         if [ -n "${verbose}" ] ; then
274                                 echo Keeping rce stuff in $i
275                         fi
276                 fi
277         done
278 else
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 Removing traces of \"rce\" from $i...
283                         fi
284                         cp $i new
285                         sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new
286                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
287                                 if [ -n "${verbose}" ] ; then
288                                         echo Caching $i in .Recover...
289                                 fi
290                                 mv $i .Recover
291                         fi
292                         mv new $i
293                 fi
294         done
295 fi
296
297 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"
298 if ( echo $* | grep keep\-arc > /dev/null ) ; then
299         for i in $arc_files ; do
300                 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
301                         if [ -n "${verbose}" ] ; then
302                                 echo Keeping arc stuff in $i
303                         fi
304                 fi
305         done
306 else
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 Removing traces of \"arc\" from $i...
311                         fi
312                         cp $i new
313                         sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
314                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
315                                 if [ -n "${verbose}" ] ; then
316                                         echo Caching $i in .Recover...
317                                 fi
318                                 mv $i .Recover
319                         fi
320                         mv new $i
321                 fi
322         done
323 fi
324
325 for i in * ; do
326         if test ! -d $i && (grep sanitize $i > /dev/null) ; then
327                 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
328         fi
329 done
330
331 # End of file.