Commit | Line | Data |
---|---|---|
aee06af3 | 1 | # Sanitize.in for devo/bfd. |
08942d11 RP |
2 | |
3 | # Each directory to survive it's 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 | ||
1bea1b6f KR |
18 | if ( echo $* | grep keep\-v9 > /dev/null ) ; then |
19 | keep_these_too="elf64-sparc.c" | |
f7df1b2b FF |
20 | else |
21 | lose_these_too="elf64-sparc.c" | |
1bea1b6f KR |
22 | fi |
23 | ||
08942d11 RP |
24 | # All files listed between the "Things-to-keep:" line and the |
25 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
26 | # Directories listed in this section will have their own Sanitize | |
27 | # called. Directories not listed will be removed in their entirety | |
28 | # with rm -rf. | |
29 | ||
30 | Things-to-keep: | |
87756e15 | 31 | |
08942d11 RP |
32 | COPYING |
33 | ChangeLog | |
ceeca31c | 34 | ChangeLog.1 |
08942d11 | 35 | Makefile.in |
c3e964b9 | 36 | PORTING |
08942d11 | 37 | TODO |
8c1891af | 38 | VERSION |
60ac749c | 39 | aix386-core.c |
c3e964b9 FF |
40 | aout-adobe.c |
41 | aout-encap.c | |
42 | aout-target.h | |
08942d11 RP |
43 | aout32.c |
44 | aout64.c | |
45 | aoutf1.h | |
08942d11 RP |
46 | aoutx.h |
47 | archive.c | |
48 | archures.c | |
901c5bfd | 49 | bfd-in.h |
b9653d81 | 50 | bfd-in2.h |
08942d11 | 51 | bfd.c |
08942d11 RP |
52 | bout.c |
53 | cache.c | |
e3b5bfa8 SS |
54 | cf-i386lynx.c |
55 | cf-m68klynx.c | |
56 | cf-sparclynx.c | |
156e3852 | 57 | coff-a29k.c |
c3e964b9 | 58 | coff-alpha.c |
97eb2f0c | 59 | coff-apollo.c |
71e34032 | 60 | coff-h8300.c |
ff975a2c | 61 | coff-h8500.c |
156e3852 JG |
62 | coff-i386.c |
63 | coff-i960.c | |
c3e964b9 | 64 | coff-m68k.c |
156e3852 JG |
65 | coff-m88k.c |
66 | coff-mips.c | |
67 | coff-rs6000.c | |
9faacb92 | 68 | coff-sh.c |
e3b5bfa8 | 69 | coff-sparc.c |
df61743d | 70 | coff-u68k.c |
c7551f76 | 71 | coff-we32k.c |
d41ab714 | 72 | coff-z8k.c |
08942d11 | 73 | coffcode.h |
075caafd ILT |
74 | coffgen.c |
75 | coffswap.h | |
fb1c4481 | 76 | config |
14616002 | 77 | config.bfd |
13b351cc | 78 | configure.bat |
5a5fa368 | 79 | configure.host |
c3e964b9 | 80 | configure.in |
6f715d66 | 81 | core.c |
c3e964b9 FF |
82 | cpu-a29k.c |
83 | cpu-alpha.c | |
84 | cpu-h8300.c | |
85 | cpu-h8500.c | |
86 | cpu-hppa.c | |
87 | cpu-i386.c | |
88 | cpu-i960.c | |
89 | cpu-m68k.c | |
90 | cpu-m88k.c | |
91 | cpu-mips.c | |
92 | cpu-rs6000.c | |
93 | cpu-sh.c | |
94 | cpu-sparc.c | |
95 | cpu-vax.c | |
96 | cpu-we32k.c | |
97 | cpu-z8k.c | |
98 | ctor.c | |
08942d11 | 99 | demo64.c |
97eb2f0c | 100 | dep-in.sed |
c3e964b9 | 101 | doc |
dae31cf5 | 102 | ecoff.c |
71efdf83 | 103 | ecofflink.c |
dae31cf5 | 104 | ecoffswap.h |
cef91d75 | 105 | elf.c |
d39d83c1 | 106 | elf32-gen.c |
c268b400 KR |
107 | elf32-hppa.c |
108 | elf32-hppa.h | |
4743848f KR |
109 | elf32-i386.c |
110 | elf32-i860.c | |
111 | elf32-m68k.c | |
2c4f2c72 JK |
112 | elf32-m88k.c |
113 | elf32-mips.c | |
8d936d1f | 114 | elf32-sparc.c |
4743848f KR |
115 | elf32-target.h |
116 | elf32.c | |
d39d83c1 | 117 | elf64-gen.c |
b864c03c | 118 | elf64-target.h |
4bf86ecb | 119 | elf64.c |
ef7e172e | 120 | elfcode.h |
08942d11 | 121 | filemode.c |
6f715d66 | 122 | format.c |
608de555 | 123 | gen-aout.c |
da6b2d99 ILT |
124 | genlink.h |
125 | hash.c | |
08942d11 | 126 | host-aout.c |
90c7c720 | 127 | hosts |
c3e964b9 | 128 | hp300bsd.c |
c268b400 | 129 | hp300hpux.c |
cef91d75 | 130 | hppa_stubs.h |
8a71bf96 | 131 | hppabsd-core.c |
3f933620 | 132 | hpux-core.c |
b7de6963 | 133 | i386aout.c |
256b39e0 | 134 | i386bsd.c |
afff60cd | 135 | i386linux.c |
aef0bd99 | 136 | i386lynx.c |
890eafc0 | 137 | i386mach3.c |
08942d11 | 138 | ieee.c |
c3e964b9 | 139 | init.c |
7ce1a446 | 140 | irix-core.c |
141c97ea | 141 | libaout.h |
901c5bfd | 142 | libbfd-in.h |
08942d11 RP |
143 | libbfd.c |
144 | libbfd.h | |
901c5bfd | 145 | libcoff-in.h |
08942d11 | 146 | libcoff.h |
a3b3dbdd | 147 | libecoff.h |
c3e964b9 | 148 | libelf.h |
76b731f9 | 149 | libhppa.h |
08942d11 | 150 | libieee.h |
c3e964b9 | 151 | libnlm.h |
08942d11 | 152 | liboasys.h |
da6b2d99 | 153 | linker.c |
3151f12f | 154 | lynx-core.c |
eefe075d | 155 | m68klynx.c |
044c1ba9 | 156 | mipsbsd.c |
08942d11 | 157 | newsos3.c |
fbd5481a | 158 | netbsd386.c |
d1f83f44 | 159 | nlm-target.h |
c3e964b9 | 160 | nlm.c |
1bbabdad | 161 | nlm32-alpha.c |
c3e964b9 | 162 | nlm32-gen.c |
8fa7a236 | 163 | nlm32-i386.c |
38f422db | 164 | nlm32-sparc.c |
c3e964b9 FF |
165 | nlm32.c |
166 | nlm64-gen.c | |
c3e964b9 FF |
167 | nlm64.c |
168 | nlmcode.h | |
38f422db | 169 | nlmswap.h |
08942d11 RP |
170 | oasys.c |
171 | opncls.c | |
4346ee0f | 172 | osf-core.c |
c236d8b3 | 173 | ptrace-core.c |
6f715d66 | 174 | reloc.c |
075caafd | 175 | reloc16.c |
cf15d9e9 | 176 | rs6000-core.c |
6f715d66 | 177 | section.c |
66eca5ee JK |
178 | som.c |
179 | som.h | |
e3b5bfa8 | 180 | sparclynx.c |
08942d11 | 181 | srec.c |
7de245d3 | 182 | stab-syms.c |
08942d11 | 183 | sunos.c |
6f715d66 | 184 | syms.c |
08942d11 | 185 | targets.c |
a14b2941 | 186 | tekhex.c |
08942d11 | 187 | trad-core.c |
08942d11 | 188 | |
87756e15 RP |
189 | Things-to-lose: |
190 | ||
775d4a40 | 191 | |
08942d11 RP |
192 | Do-last: |
193 | ||
3d7de4c2 | 194 | v9files="configure.in elfcode.h reloc.c bfd-in2.h targets.c config.bfd" |
b9653d81 | 195 | if ( echo $* | grep keep\-v9 > /dev/null ) ; then |
b864c03c KR |
196 | if [ -n "${verbose}" ] ; then |
197 | echo Keeping v9 stuff in $v9files. | |
198 | fi | |
b9653d81 | 199 | else |
b864c03c | 200 | if [ -n "${verbose}" ]; then |
1bea1b6f | 201 | echo -n Cleaning v9 in `pwd`: |
b864c03c KR |
202 | fi |
203 | for f in $v9files ; do | |
204 | if [ -n "${verbose}" ] ; then | |
205 | echo -n " " $f | |
206 | fi | |
1bea1b6f | 207 | sed '/start\-sanitize\-v9/,/end\-sanitize\-v9/d' < $f > new |
b864c03c | 208 | if [ -n "${safe}" ] ; then |
1bea1b6f | 209 | mv $f .Recover |
b864c03c KR |
210 | fi |
211 | mv new $f | |
212 | done | |
3ba17f70 | 213 | chmod a+x config.bfd |
b9653d81 KR |
214 | fi |
215 | ||
3ba17f70 | 216 | |
08942d11 | 217 | # End of file. |