Commit | Line | Data |
---|---|---|
4f5d16c7 | 1 | # .Sanitize for devo/gas/config |
0fd8d5d9 | 2 | |
4f5d16c7 | 3 | # Each directory to survive its way into a release will need a file |
0fd8d5d9 RP |
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 | ||
833c46e1 | 18 | rce_files="tc-rce.c tc-rce.h" |
d94aca1a | 19 | |
edf72895 MT |
20 | if ( echo $* | grep keep\-rce > /dev/null ) ; then |
21 | keep_these_too="${rce_files} ${keep_these_too}" | |
d94aca1a | 22 | else |
edf72895 | 23 | lose_these_too="${rce_files} ${lose_these_too}" |
d94aca1a MT |
24 | fi |
25 | ||
833c46e1 | 26 | arc_files="tc-arc.c tc-arc.h" |
bc70eba5 DE |
27 | |
28 | if ( echo $* | grep keep\-arc > /dev/null ) ; then | |
29 | keep_these_too="${arc_files} ${keep_these_too}" | |
30 | else | |
31 | lose_these_too="${arc_files} ${lose_these_too}" | |
32 | fi | |
33 | ||
0fd8d5d9 RP |
34 | # All files listed between the "Things-to-keep:" line and the |
35 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
36 | # Directories listed in this section will have their own Sanitize | |
37 | # called. Directories not listed will be removed in their entirety | |
38 | # with rm -rf. | |
39 | ||
40 | Things-to-keep: | |
41 | ||
3e6e09c0 | 42 | aout_gnu.h |
5749c497 | 43 | alpha-opcode.h |
0fd8d5d9 | 44 | atof-ieee.c |
b41390d2 | 45 | atof-tahoe.c |
0fd8d5d9 | 46 | atof-vax.c |
cd8aca19 | 47 | go32.cfg |
6066ebad | 48 | i386coff.mt |
3ad9ec6a | 49 | m68kcoff.mt |
cd625bf3 | 50 | m88k-opcode.h |
77a401e2 | 51 | m88kcoff.mt |
e99f6f9c ILT |
52 | mips-big.mt |
53 | mips-lit.mt | |
0fd8d5d9 RP |
54 | obj-aout.c |
55 | obj-aout.h | |
0fd8d5d9 RP |
56 | obj-bout.c |
57 | obj-bout.h | |
58 | obj-coff.c | |
59 | obj-coff.h | |
e99f6f9c ILT |
60 | obj-ecoff.c |
61 | obj-ecoff.h | |
a4099f78 KR |
62 | obj-elf.c |
63 | obj-elf.h | |
0fd8d5d9 RP |
64 | obj-generic.c |
65 | obj-generic.h | |
daae8c92 KR |
66 | obj-hp300.c |
67 | obj-hp300.h | |
fd345c9c SC |
68 | obj-ieee.c |
69 | obj-ieee.h | |
0fa747c4 JL |
70 | obj-som.c |
71 | obj-som.h | |
b41390d2 KR |
72 | obj-vms.c |
73 | obj-vms.h | |
8370e93e MM |
74 | ppc-big.mt |
75 | ppc-lit.mt | |
0fd8d5d9 RP |
76 | tc-a29k.c |
77 | tc-a29k.h | |
5749c497 KR |
78 | tc-alpha.c |
79 | tc-alpha.h | |
6c3bc2b8 KR |
80 | tc-arm.c |
81 | tc-arm.h | |
0fd8d5d9 RP |
82 | tc-generic.c |
83 | tc-generic.h | |
fd345c9c SC |
84 | tc-h8300.c |
85 | tc-h8300.h | |
033400ec SC |
86 | tc-h8500.c |
87 | tc-h8500.h | |
daae8c92 KR |
88 | tc-hppa.c |
89 | tc-hppa.h | |
0fd8d5d9 RP |
90 | tc-i386.c |
91 | tc-i386.h | |
92 | tc-i860.c | |
93 | tc-i860.h | |
94 | tc-i960.c | |
95 | tc-i960.h | |
96 | tc-m68851.h | |
97 | tc-m68k.c | |
98 | tc-m68k.h | |
cd625bf3 DHW |
99 | tc-m88k.c |
100 | tc-m88k.h | |
fd345c9c SC |
101 | tc-mips.c |
102 | tc-mips.h | |
0fd8d5d9 RP |
103 | tc-ns32k.c |
104 | tc-ns32k.h | |
af46c203 ILT |
105 | tc-ppc.c |
106 | tc-ppc.h | |
4a1bbbe7 SC |
107 | tc-sh.c |
108 | tc-sh.h | |
6690d829 | 109 | tc-sparc.c |
920babce | 110 | tc-sparc.h |
af3b5ad2 KR |
111 | tc-tahoe.c |
112 | tc-tahoe.h | |
0fd8d5d9 RP |
113 | tc-vax.c |
114 | tc-vax.h | |
b3235d56 SC |
115 | tc-w65.c |
116 | tc-w65.h | |
163107a1 SC |
117 | tc-z8k.c |
118 | tc-z8k.h | |
daae8c92 | 119 | te-386bsd.h |
757d4129 | 120 | te-delta.h |
0fd8d5d9 RP |
121 | te-dpx2.h |
122 | te-generic.h | |
cd8aca19 | 123 | te-go32.h |
daae8c92 KR |
124 | te-hp300.h |
125 | te-hppa.h | |
cd625bf3 | 126 | te-i386aix.h |
0fd8d5d9 | 127 | te-ic960.h |
daae8c92 | 128 | te-linux.h |
d0c25cae | 129 | te-lynx.h |
5efa30fa | 130 | te-mach.h |
04050d57 | 131 | te-nbsd.h |
d5a0eeac | 132 | te-nbsd532.h |
f68880ea | 133 | te-pc532mach.h |
cd8aca19 | 134 | te-ppcnw.h |
0fd8d5d9 | 135 | te-sco386.h |
0fd8d5d9 | 136 | te-sun3.h |
920babce | 137 | te-sysv32.h |
0fd8d5d9 | 138 | vax-inst.h |
ba466c4c | 139 | vms-conf.h |
0fd8d5d9 | 140 | |
87756e15 RP |
141 | Things-to-lose: |
142 | ||
0fd8d5d9 RP |
143 | Do-last: |
144 | ||
f68880ea KR |
145 | i960xl_files=tc-i960.c |
146 | if ( echo $* | grep keep\-i960xl > /dev/null ) ; then | |
147 | if [ -n "${verbose}" ] ; then | |
148 | echo Keeping i960xl stuff in $i960xl_files. | |
149 | fi | |
150 | else | |
151 | if [ -n "${verbose}" ]; then | |
152 | echo -n Cleaning i960xl in `pwd`: | |
153 | fi | |
154 | for f in $i960xl_files ; do | |
155 | if [ -n "${verbose}" ] ; then | |
156 | echo -n " " $f | |
157 | fi | |
158 | grep -v XL < $f > new | |
159 | if [ -n "${safe}" ] ; then | |
160 | mv $f .Recover | |
161 | fi | |
162 | mv new $f | |
163 | done | |
164 | fi | |
165 | ||
0fd8d5d9 | 166 | # End of file. |