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