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