* configure.in: Call AC_CONFIG_HEADER. Substitute
[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 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-rs6000.c
88 coff-sh.c
89 coff-sparc.c
90 coff-u68k.c
91 coff-we32k.c
92 coff-w65.c
93 coff-z8k.c
94 coffcode.h
95 coffgen.c
96 cofflink.c
97 coffswap.h
98 config.bfd
99 config.h.in
100 configure
101 configure.bat
102 configure.host
103 configure.in
104 core.c
105 cpu-a29k.c
106 cpu-alpha.c
107 cpu-arm.c
108 cpu-h8300.c
109 cpu-h8500.c
110 cpu-hppa.c
111 cpu-i386.c
112 cpu-i960.c
113 cpu-m68k.c
114 cpu-m88k.c
115 cpu-mips.c
116 cpu-ns32k.c
117 cpu-powerpc.c
118 cpu-rs6000.c
119 cpu-sh.c
120 cpu-sparc.c
121 cpu-vax.c
122 cpu-we32k.c
123 cpu-w65.c
124 cpu-z8k.c
125 demo64.c
126 dep-in.sed
127 doc
128 ecoff.c
129 ecofflink.c
130 ecoffswap.h
131 elf.c
132 elf32-gen.c
133 elf32-hppa.c
134 elf32-hppa.h
135 elf32-i386.c
136 elf32-i860.c
137 elf32-m68k.c
138 elf32-m88k.c
139 elf32-mips.c
140 elf32-ppc.c
141 elf32-sparc.c
142 elf32.c
143 elf64-gen.c
144 elf64-sparc.c
145 elf64.c
146 elfxx-target.h
147 elfcode.h
148 elfcore.h
149 elflink.c
150 elflink.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 mpw-config.in
195 mpw-make.in
196 newsos3.c
197 netbsd.h
198 nlm-target.h
199 nlm.c
200 nlm32-alpha.c
201 nlm32-i386.c
202 nlm32-ppc.c
203 nlm32-sparc.c
204 nlm32.c
205 nlm64.c
206 nlmcode.h
207 nlmswap.h
208 ns32knetbsd.c
209 oasys.c
210 opncls.c
211 osf-core.c
212 pc532-mach.c
213 pe-arm.c
214 pe-i386.c
215 pei-arm.c
216 pei-i386.c
217 peicode.h
218 ptrace-core.c
219 reloc.c
220 reloc16.c
221 riscix.c
222 rs6000-core.c
223 section.c
224 som.c
225 som.h
226 sparclynx.c
227 sparcnetbsd.c
228 srec.c
229 stab-syms.c
230 sunos.c
231 syms.c
232 sysdep.h
233 targets.c
234 tekhex.c
235 trad-core.c
236 versados.c
237
238 Things-to-lose:
239
240
241 Do-last:
242
243 i960xl_files="ChangeLog ChangeLog.2 archures.c bfd-in2.h cpu-i960.c coffcode.h"
244 if ( echo $* | grep keep\-i960xl > /dev/null ) ; then
245 if [ -n "${verbose}" ] ; then
246 echo Keeping i960xl stuff in $i960xl_files.
247 fi
248 else
249 if [ -n "${verbose}" ]; then
250 echo -n Cleaning i960xl in `pwd`:
251 fi
252 for f in $i960xl_files ; do
253 if [ -n "${verbose}" ] ; then
254 echo -n " " $f
255 fi
256 sed -e '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' < $f > new
257 if [ -n "${safe}" ] ; then
258 mv $f .Recover
259 fi
260 mv new $f
261 done
262 fi
263
264 rce_files="ChangeLog ChangeLog.2 Makefile.in archures.c bfd-in2.h config.bfd configure.in configure targets.c aoutx.h libaout.h"
265 if ( echo $* | grep keep\-rce > /dev/null ) ; then
266 for i in $rce_files ; do
267 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
268 if [ -n "${verbose}" ] ; then
269 echo Keeping rce stuff in $i
270 fi
271 fi
272 done
273 else
274 for i in $rce_files ; do
275 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
276 if [ -n "${verbose}" ] ; then
277 echo Removing traces of \"rce\" from $i...
278 fi
279 cp $i new
280 sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new
281 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
282 if [ -n "${verbose}" ] ; then
283 echo Caching $i in .Recover...
284 fi
285 mv $i .Recover
286 fi
287 mv new $i
288 fi
289 done
290 fi
291
292 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"
293 if ( echo $* | grep keep\-arc > /dev/null ) ; then
294 for i in $arc_files ; do
295 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
296 if [ -n "${verbose}" ] ; then
297 echo Keeping arc stuff in $i
298 fi
299 fi
300 done
301 else
302 for i in $arc_files ; do
303 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
304 if [ -n "${verbose}" ] ; then
305 echo Removing traces of \"arc\" from $i...
306 fi
307 cp $i new
308 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
309 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
310 if [ -n "${verbose}" ] ; then
311 echo Caching $i in .Recover...
312 fi
313 mv $i .Recover
314 fi
315 mv new $i
316 fi
317 done
318 fi
319
320 for i in * ; do
321 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
322 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
323 fi
324 done
325
326 # End of file.
This page took 0.035904 seconds and 5 git commands to generate.