Set lose_these_too correctly
[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-rs6000.c
105 cpu-sh.c
106 cpu-sparc.c
107 cpu-vax.c
108 cpu-we32k.c
109 cpu-z8k.c
110 ctor.c
111 demo64.c
112 dep-in.sed
113 doc
114 ecoff.c
115 ecofflink.c
116 ecoffswap.h
117 elf.c
118 elf32-gen.c
119 elf32-hppa.c
120 elf32-hppa.h
121 elf32-i386.c
122 elf32-i860.c
123 elf32-m68k.c
124 elf32-m88k.c
125 elf32-mips.c
126 elf32-sparc.c
127 elf32-target.h
128 elf32.c
129 elf64-gen.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 i386linux.c
148 i386lynx.c
149 i386mach3.c
150 ieee.c
151 init.c
152 irix-core.c
153 libaout.h
154 libbfd-in.h
155 libbfd.c
156 libbfd.h
157 libcoff-in.h
158 libcoff.h
159 libecoff.h
160 libelf.h
161 libhppa.h
162 libieee.h
163 libnlm.h
164 liboasys.h
165 linker.c
166 lynx-core.c
167 m68klynx.c
168 mipsbsd.c
169 newsos3.c
170 netbsd386.c
171 nlm-target.h
172 nlm.c
173 nlm32-alpha.c
174 nlm32-i386.c
175 nlm32-sparc.c
176 nlm32.c
177 nlm64.c
178 nlmcode.h
179 nlmswap.h
180 oasys.c
181 opncls.c
182 osf-core.c
183 ptrace-core.c
184 reloc.c
185 reloc16.c
186 rs6000-core.c
187 section.c
188 som.c
189 som.h
190 sparclynx.c
191 srec.c
192 stab-syms.c
193 sunos.c
194 syms.c
195 targets.c
196 tekhex.c
197 trad-core.c
198
199 Things-to-lose:
200
201
202 Do-last:
203
204 v9files="configure.in elfcode.h reloc.c bfd-in2.h targets.c config.bfd"
205 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
206         if [ -n "${verbose}" ] ; then
207                 echo Keeping v9 stuff in $v9files.
208         fi
209 else
210         if [ -n "${verbose}" ]; then
211                 echo -n Cleaning v9 in `pwd`:
212         fi
213         for f in $v9files ; do
214                 if [ -n "${verbose}" ] ; then
215                         echo -n " " $f
216                 fi
217                 sed '/start\-sanitize\-v9/,/end\-sanitize\-v9/d' < $f > new
218                 if [ -n "${safe}" ] ; then
219                         mv $f .Recover
220                 fi
221                 mv new $f
222         done
223         chmod a+x config.bfd
224 fi
225
226
227 mpwfiles="coffswap.h"
228 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
229         if [ -n "${verbose}" ] ; then
230                 echo Keeping mpw stuff in $mpwfiles.
231         fi
232 else
233         if [ -n "${verbose}" ]; then
234                 echo -n Cleaning mpw in `pwd`:
235         fi
236         for f in $mpwfiles ; do
237                 if [ -n "${verbose}" ] ; then
238                         echo -n " " $f
239                 fi
240                 sed '/start\-sanitize\-mpw/,/end\-sanitize\-mpw/d' < $f > new
241                 if [ -n "${safe}" ] ; then
242                         mv $f .Recover
243                 fi
244                 mv new $f
245         done
246         chmod a+x config.bfd
247 fi
248
249
250 # End of file.