*** empty log message ***
[deliverable/binutils-gdb.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 r16_files="cpu-r16.c aout-r16.c"
27
28 if ( echo $* | grep keep\-r16 > /dev/null ) ; then
29 keep_these_too="${r16_files} ${keep_these_too}"
30 else
31 lose_these_too="${r16_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-encap.c
52 aout-ns32k.c
53 aout-target.h
54 aout0.c
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 binary.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-go32.c
75 coff-h8300.c
76 coff-h8500.c
77 coff-i386.c
78 coff-i960.c
79 coff-m68k.c
80 coff-m88k.c
81 coff-mips.c
82 coff-rs6000.c
83 coff-sh.c
84 coff-sparc.c
85 coff-u68k.c
86 coff-we32k.c
87 coff-z8k.c
88 coffcode.h
89 coffgen.c
90 cofflink.c
91 coffswap.h
92 config
93 config.bfd
94 configure.bat
95 configure.host
96 configure.in
97 core.c
98 cpu-a29k.c
99 cpu-alpha.c
100 cpu-arm.c
101 cpu-h8300.c
102 cpu-h8500.c
103 cpu-hppa.c
104 cpu-i386.c
105 cpu-i960.c
106 cpu-m68k.c
107 cpu-m88k.c
108 cpu-mips.c
109 cpu-ns32k.c
110 cpu-powerpc.c
111 cpu-rs6000.c
112 cpu-sh.c
113 cpu-sparc.c
114 cpu-vax.c
115 cpu-we32k.c
116 cpu-z8k.c
117 demo64.c
118 dep-in.sed
119 doc
120 ecoff.c
121 ecofflink.c
122 ecoffswap.h
123 elf.c
124 elf32-gen.c
125 elf32-hppa.c
126 elf32-hppa.h
127 elf32-i386.c
128 elf32-i860.c
129 elf32-m68k.c
130 elf32-m88k.c
131 elf32-mips.c
132 elf32-ppc.c
133 elf32-sparc.c
134 elf32-target.h
135 elf32.c
136 elf64-gen.c
137 elf64-sparc.c
138 elf64-target.h
139 elf64.c
140 elfcode.h
141 filemode.c
142 format.c
143 gen-aout.c
144 genlink.h
145 hash.c
146 host-aout.c
147 hosts
148 hp300bsd.c
149 hp300hpux.c
150 hppa_stubs.h
151 hppabsd-core.c
152 hpux-core.c
153 i386aout.c
154 i386bsd.c
155 i386dynix.c
156 i386linux.c
157 i386netbsd.c
158 i386lynx.c
159 i386mach3.c
160 i386os9k.c
161 ieee.c
162 init.c
163 irix-core.c
164 libaout.h
165 libbfd-in.h
166 libbfd.c
167 libbfd.h
168 libcoff-in.h
169 libcoff.h
170 libecoff.h
171 libelf.h
172 libhppa.h
173 libieee.h
174 libnlm.h
175 liboasys.h
176 linker.c
177 lynx-core.c
178 m68klynx.c
179 m68knetbsd.c
180 m88kmach3.c
181 makefile.dos
182 mipsbsd.c
183 newsos3.c
184 netbsd.h
185 nlm-target.h
186 nlm.c
187 nlm32-alpha.c
188 nlm32-i386.c
189 nlm32-ppc.c
190 nlm32-sparc.c
191 nlm32.c
192 nlm64.c
193 nlmcode.h
194 nlmswap.h
195 ns32knetbsd.c
196 oasys.c
197 opncls.c
198 osf-core.c
199 pc532-mach.c
200 ptrace-core.c
201 reloc.c
202 reloc16.c
203 riscix.c
204 rs6000-core.c
205 section.c
206 som.c
207 som.h
208 sparclynx.c
209 sparcnetbsd.c
210 srec.c
211 stab-syms.c
212 sunos.c
213 syms.c
214 targets.c
215 tekhex.c
216 trad-core.c
217
218 Things-to-lose:
219
220
221 Do-last:
222
223 mpwfiles="ecoffswap.h coffswap.h"
224 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
225 if [ -n "${verbose}" ] ; then
226 echo Keeping mpw stuff in $mpwfiles.
227 fi
228 else
229 if [ -n "${verbose}" ]; then
230 echo -n Cleaning mpw in `pwd`:
231 fi
232 for f in $mpwfiles ; do
233 if [ -n "${verbose}" ] ; then
234 echo -n " " $f
235 fi
236 sed '/start\-sanitize\-mpw/,/end\-sanitize\-mpw/d' < $f > new
237 if [ -n "${safe}" ] ; then
238 mv $f .Recover
239 fi
240 mv new $f
241 done
242 chmod a+x config.bfd
243 fi
244
245 i960xl_files="ChangeLog archures.c bfd-in2.h cpu-i960.c coffcode.h"
246 if ( echo $* | grep keep\-i960xl > /dev/null ) ; then
247 if [ -n "${verbose}" ] ; then
248 echo Keeping i960xl stuff in $i960xl_files.
249 fi
250 else
251 if [ -n "${verbose}" ]; then
252 echo -n Cleaning i960xl in `pwd`:
253 fi
254 for f in $i960xl_files ; do
255 if [ -n "${verbose}" ] ; then
256 echo -n " " $f
257 fi
258 sed -e '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' < $f > new
259 if [ -n "${safe}" ] ; then
260 mv $f .Recover
261 fi
262 mv new $f
263 done
264 fi
265
266 r16_files = "ChangeLog archures.c config.bfd configure.in targets.c"
267 if ( echo $* | grep keep\-r16 > /dev/null ) ; then
268 for i in $r16_files ; do
269 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
270 if [ -n "${verbose}" ] ; then
271 echo Keeping r16 stuff in $i
272 fi
273 fi
274 done
275 else
276 for i in $r16_files ; do
277 if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
278 if [ -n "${verbose}" ] ; then
279 echo Removing traces of \"r16\" from $i...
280 fi
281 cp $i new
282 sed '/start\-sanitize\-r16/,/end-\sanitize\-r16/d' < $i > new
283 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
284 if [ -n "${verbose}" ] ; then
285 echo Caching $i in .Recover...
286 fi
287 mv $i .Recover
288 fi
289 mv new $i
290 fi
291 done
292 fi
293
294 for i in * ; do
295 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
296 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
297 fi
298 done
299
300 # End of file.
This page took 0.038092 seconds and 4 git commands to generate.