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