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