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