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 |
08942d11 | 124 | host-aout.c |
90c7c720 | 125 | hosts |
c3e964b9 | 126 | hp300bsd.c |
c268b400 | 127 | hp300hpux.c |
cef91d75 | 128 | hppa_stubs.h |
8a71bf96 | 129 | hppabsd-core.c |
3f933620 | 130 | hpux-core.c |
b7de6963 | 131 | i386aout.c |
256b39e0 | 132 | i386bsd.c |
afff60cd | 133 | i386linux.c |
aef0bd99 | 134 | i386lynx.c |
890eafc0 | 135 | i386mach3.c |
08942d11 | 136 | ieee.c |
c3e964b9 | 137 | init.c |
7ce1a446 | 138 | irix-core.c |
141c97ea | 139 | libaout.h |
901c5bfd | 140 | libbfd-in.h |
08942d11 RP |
141 | libbfd.c |
142 | libbfd.h | |
901c5bfd | 143 | libcoff-in.h |
08942d11 | 144 | libcoff.h |
a3b3dbdd | 145 | libecoff.h |
c3e964b9 | 146 | libelf.h |
76b731f9 | 147 | libhppa.h |
08942d11 | 148 | libieee.h |
c3e964b9 | 149 | libnlm.h |
08942d11 | 150 | liboasys.h |
3151f12f | 151 | lynx-core.c |
eefe075d | 152 | m68klynx.c |
044c1ba9 | 153 | mipsbsd.c |
08942d11 | 154 | newsos3.c |
fbd5481a | 155 | netbsd386.c |
d1f83f44 | 156 | nlm-target.h |
c3e964b9 | 157 | nlm.c |
1bbabdad | 158 | nlm32-alpha.c |
c3e964b9 | 159 | nlm32-gen.c |
8fa7a236 | 160 | nlm32-i386.c |
38f422db | 161 | nlm32-sparc.c |
c3e964b9 FF |
162 | nlm32.c |
163 | nlm64-gen.c | |
c3e964b9 FF |
164 | nlm64.c |
165 | nlmcode.h | |
38f422db | 166 | nlmswap.h |
08942d11 RP |
167 | oasys.c |
168 | opncls.c | |
4346ee0f | 169 | osf-core.c |
c236d8b3 | 170 | ptrace-core.c |
6f715d66 | 171 | reloc.c |
075caafd | 172 | reloc16.c |
cf15d9e9 | 173 | rs6000-core.c |
e98e6ec1 | 174 | seclet.c |
dc72b0b6 | 175 | seclet.h |
6f715d66 | 176 | section.c |
66eca5ee JK |
177 | som.c |
178 | som.h | |
e3b5bfa8 | 179 | sparclynx.c |
08942d11 | 180 | srec.c |
7de245d3 | 181 | stab-syms.c |
08942d11 | 182 | sunos.c |
6f715d66 | 183 | syms.c |
08942d11 | 184 | targets.c |
a14b2941 | 185 | tekhex.c |
08942d11 | 186 | trad-core.c |
08942d11 | 187 | |
87756e15 RP |
188 | Things-to-lose: |
189 | ||
775d4a40 | 190 | |
08942d11 RP |
191 | Do-last: |
192 | ||
3d7de4c2 | 193 | v9files="configure.in elfcode.h reloc.c bfd-in2.h targets.c config.bfd" |
b9653d81 | 194 | if ( echo $* | grep keep\-v9 > /dev/null ) ; then |
b864c03c KR |
195 | if [ -n "${verbose}" ] ; then |
196 | echo Keeping v9 stuff in $v9files. | |
197 | fi | |
b9653d81 | 198 | else |
b864c03c | 199 | if [ -n "${verbose}" ]; then |
1bea1b6f | 200 | echo -n Cleaning v9 in `pwd`: |
b864c03c KR |
201 | fi |
202 | for f in $v9files ; do | |
203 | if [ -n "${verbose}" ] ; then | |
204 | echo -n " " $f | |
205 | fi | |
1bea1b6f | 206 | sed '/start\-sanitize\-v9/,/end\-sanitize\-v9/d' < $f > new |
b864c03c | 207 | if [ -n "${safe}" ] ; then |
1bea1b6f | 208 | mv $f .Recover |
b864c03c KR |
209 | fi |
210 | mv new $f | |
211 | done | |
3ba17f70 | 212 | chmod a+x config.bfd |
b9653d81 KR |
213 | fi |
214 | ||
3ba17f70 | 215 | |
08942d11 | 216 | # End of file. |