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