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