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