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