* configure.host (sparc-*-netbsd): use sparcnbsd.
[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 mpw_files="mpw-config.in mpw-make.in ChangeLog.mpw"
19
20 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
21         keep_these_too="${mpw_files} ${keep_these_too}"
22 else
23         lose_these_too="${mpw_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 Makefile.in
38 PORTING
39 TODO
40 VERSION
41 aix386-core.c
42 aout-adobe.c
43 aout-encap.c
44 aout-ns32k.c
45 aout-target.h
46 aout0.c
47 aout32.c
48 aout64.c
49 aoutf1.h
50 aoutx.h
51 archive.c
52 archures.c
53 bfd-in.h
54 bfd-in2.h
55 bfd.c
56 bout.c
57 cache.c
58 cf-i386lynx.c
59 cf-m68klynx.c
60 cf-sparclynx.c
61 cisco-core.c
62 coff-a29k.c
63 coff-alpha.c
64 coff-apollo.c
65 coff-go32.c
66 coff-h8300.c
67 coff-h8500.c
68 coff-i386.c
69 coff-i960.c
70 coff-m68k.c
71 coff-m88k.c
72 coff-mips.c
73 coff-rs6000.c
74 coff-sh.c
75 coff-sparc.c
76 coff-u68k.c
77 coff-we32k.c
78 coff-z8k.c
79 coffcode.h
80 coffgen.c
81 cofflink.c
82 coffswap.h
83 config
84 config.bfd
85 configure.bat
86 configure.host
87 configure.in
88 core.c
89 cpu-a29k.c
90 cpu-alpha.c
91 cpu-arm.c
92 cpu-h8300.c
93 cpu-h8500.c
94 cpu-hppa.c
95 cpu-i386.c
96 cpu-i960.c
97 cpu-m68k.c
98 cpu-m88k.c
99 cpu-mips.c
100 cpu-ns32k.c
101 cpu-powerpc.c
102 cpu-rs6000.c
103 cpu-sh.c
104 cpu-sparc.c
105 cpu-vax.c
106 cpu-we32k.c
107 cpu-z8k.c
108 demo64.c
109 dep-in.sed
110 doc
111 ecoff.c
112 ecofflink.c
113 ecoffswap.h
114 elf.c
115 elf32-gen.c
116 elf32-hppa.c
117 elf32-hppa.h
118 elf32-i386.c
119 elf32-i860.c
120 elf32-m68k.c
121 elf32-m88k.c
122 elf32-mips.c
123 elf32-ppc.c
124 elf32-sparc.c
125 elf32-target.h
126 elf32.c
127 elf64-gen.c
128 elf64-sparc.c
129 elf64-target.h
130 elf64.c
131 elfcode.h
132 filemode.c
133 format.c
134 gen-aout.c
135 genlink.h
136 hash.c
137 host-aout.c
138 hosts
139 hp300bsd.c
140 hp300hpux.c
141 hppa_stubs.h
142 hppabsd-core.c
143 hpux-core.c
144 i386aout.c
145 i386bsd.c
146 i386dynix.c
147 i386linux.c
148 i386netbsd.c
149 i386lynx.c
150 i386mach3.c
151 i386os9k.c
152 ieee.c
153 init.c
154 irix-core.c
155 libaout.h
156 libbfd-in.h
157 libbfd.c
158 libbfd.h
159 libcoff-in.h
160 libcoff.h
161 libecoff.h
162 libelf.h
163 libhppa.h
164 libieee.h
165 libnlm.h
166 liboasys.h
167 linker.c
168 lynx-core.c
169 m68klynx.c
170 m88kmach3.c
171 makefile.dos
172 mipsbsd.c
173 newsos3.c
174 netbsd.h
175 nlm-target.h
176 nlm.c
177 nlm32-alpha.c
178 nlm32-i386.c
179 nlm32-ppc.c
180 nlm32-sparc.c
181 nlm32.c
182 nlm64.c
183 nlmcode.h
184 nlmswap.h
185 ns32knetbsd.c
186 oasys.c
187 opncls.c
188 osf-core.c
189 pc532-mach.c
190 ptrace-core.c
191 reloc.c
192 reloc16.c
193 riscix.c
194 rs6000-core.c
195 section.c
196 som.c
197 som.h
198 sparclynx.c
199 sparcnetbsd.c
200 srec.c
201 stab-syms.c
202 sunos.c
203 syms.c
204 targets.c
205 tekhex.c
206 trad-core.c
207
208 Things-to-lose:
209
210
211 Do-last:
212
213 mpwfiles="coffswap.h"
214 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
215         if [ -n "${verbose}" ] ; then
216                 echo Keeping mpw stuff in $mpwfiles.
217         fi
218 else
219         if [ -n "${verbose}" ]; then
220                 echo -n Cleaning mpw in `pwd`:
221         fi
222         for f in $mpwfiles ; do
223                 if [ -n "${verbose}" ] ; then
224                         echo -n " " $f
225                 fi
226                 sed '/start\-sanitize\-mpw/,/end\-sanitize\-mpw/d' < $f > new
227                 if [ -n "${safe}" ] ; then
228                         mv $f .Recover
229                 fi
230                 mv new $f
231         done
232         chmod a+x config.bfd
233 fi
234
235 i960xl_files="ChangeLog archures.c bfd-in2.h cpu-i960.c coffcode.h"
236 if ( echo $* | grep keep\-i960xl > /dev/null ) ; then
237         if [ -n "${verbose}" ] ; then
238                 echo Keeping i960xl stuff in $i960xl_files.
239         fi
240 else
241         if [ -n "${verbose}" ]; then
242                 echo -n Cleaning i960xl in `pwd`:
243         fi
244         for f in $i960xl_files ; do
245                 if [ -n "${verbose}" ] ; then
246                         echo -n " " $f
247                 fi
248                 sed -e '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' < $f > new
249                 if [ -n "${safe}" ] ; then
250                         mv $f .Recover
251                 fi
252                 mv new $f
253         done
254 fi
255
256 # End of file.