* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[deliverable/binutils-gdb.git] / include / elf / .Sanitize
1 # Sanitize.in for devo/include/elf.
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
18 # All files listed between the "Things-to-keep:" line and the
19 # "Files-to-sed:" line will be kept. All other files will be removed.
20 # Directories listed in this section will have their own Sanitize
21 # called. Directories not listed will be removed in their entirety
22 # with rm -rf.
23
24 Things-to-keep:
25
26 ChangeLog
27 alpha.h
28 arc.h
29 arm.h
30 arm-oabi.h
31 common.h
32 d10v.h
33 d30v.h
34 dwarf.h
35 dwarf2.h
36 external.h
37 fr30.h
38 hppa.h
39 i386.h
40 internal.h
41 m32r.h
42 m68k.h
43 mips.h
44 mn10200.h
45 mn10300.h
46 ppc.h
47 reloc-macros.h
48 sh.h
49 sparc.h
50 v850.h
51
52 Things-to-lose:
53
54 Do-last:
55
56 sky_files="ChangeLog mips.h"
57 if ( echo $* | grep keep\-sky > /dev/null ) ; then
58 for i in $sky_files ; do
59 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
60 if [ -n "${verbose}" ] ; then
61 echo Keeping sky stuff in $i
62 fi
63 fi
64 done
65 else
66 for i in $sky_files ; do
67 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
68 if [ -n "${verbose}" ] ; then
69 echo Removing traces of \"sky\" from $i...
70 fi
71 cp $i new
72 sed '/start\-sanitize\-sky/,/end\-sanitize\-sky/d' < $i > new
73 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
74 if [ -n "${verbose}" ] ; then
75 echo Caching $i in .Recover...
76 fi
77 mv $i .Recover
78 fi
79 mv new $i
80 fi
81 done
82 fi
83
84 vr4320_files="mips.h"
85 if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
86 for i in $vr4320_files ; do
87 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
88 if [ -n "${verbose}" ] ; then
89 echo Keeping vr4320 stuff in $i
90 fi
91 fi
92 done
93 else
94 for i in $vr4320_files ; do
95 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
96 if [ -n "${verbose}" ] ; then
97 echo Removing traces of \"vr4320\" from $i...
98 fi
99 cp $i new
100 sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/d' < $i > new
101 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
102 if [ -n "${verbose}" ] ; then
103 echo Caching $i in .Recover...
104 fi
105 mv $i .Recover
106 fi
107 mv new $i
108 fi
109 done
110 fi
111
112 vr4xxx_files="ChangeLog mips.h"
113 if ( echo $* | grep keep\-vr4xxx > /dev/null ) ; then
114 for i in $vr4xxx_files ; do
115 if test ! -d $i && (grep sanitize-vr4xxx $i > /dev/null) ; then
116 if [ -n "${verbose}" ] ; then
117 echo Keeping vr4xxx stuff in $i
118 fi
119 fi
120 done
121 else
122 for i in $vr4xxx_files ; do
123 if test ! -d $i && (grep sanitize-vr4xxx $i > /dev/null) ; then
124 if [ -n "${verbose}" ] ; then
125 echo Removing traces of \"vr4xxx\" from $i...
126 fi
127 cp $i new
128 sed '/start\-sanitize\-vr4xxx/,/end-\sanitize\-vr4xxx/d' < $i > new
129 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
130 if [ -n "${verbose}" ] ; then
131 echo Caching $i in .Recover...
132 fi
133 mv $i .Recover
134 fi
135 mv new $i
136 fi
137 done
138 fi
139
140 tx49_files="mips.h"
141 if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
142 for i in $tx49_files ; do
143 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
144 if [ -n "${verbose}" ] ; then
145 echo Keeping tx49 stuff in $i
146 fi
147 fi
148 done
149 else
150 for i in $tx49_files ; do
151 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
152 if [ -n "${verbose}" ] ; then
153 echo Removing traces of \"tx49\" from $i...
154 fi
155 cp $i new
156 sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new
157 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
158 if [ -n "${verbose}" ] ; then
159 echo Caching $i in .Recover...
160 fi
161 mv $i .Recover
162 fi
163 mv new $i
164 fi
165 done
166 fi
167
168 cygnus_files="mips.h mn10300.h ChangeLog m32r.h"
169 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
170 for i in $cygnus_files ; do
171 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
172 if [ -n "${verbose}" ] ; then
173 echo Keeping cygnus stuff in $i
174 fi
175 fi
176 done
177 else
178 for i in $cygnus_files ; do
179 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
180 if [ -n "${verbose}" ] ; then
181 echo Removing traces of \"cygnus\" from $i...
182 fi
183 cp $i new
184 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
185 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
186 if [ -n "${verbose}" ] ; then
187 echo Caching $i in .Recover...
188 fi
189 mv $i .Recover
190 fi
191 mv new $i
192 fi
193 done
194 fi
195
196 r5900_files="mips.h ChangeLog"
197 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
198 for i in $r5900_files ; do
199 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
200 if [ -n "${verbose}" ] ; then
201 echo Keeping r5900 stuff in $i
202 fi
203 fi
204 done
205 else
206 for i in $r5900_files ; do
207 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
208 if [ -n "${verbose}" ] ; then
209 echo Removing traces of \"r5900\" from $i...
210 fi
211 cp $i new
212 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
213 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
214 if [ -n "${verbose}" ] ; then
215 echo Caching $i in .Recover...
216 fi
217 mv $i .Recover
218 fi
219 mv new $i
220 fi
221 done
222 fi
223
224 for i in * ; do
225 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
226 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
227 fi
228 done
229
230 # End of file.
This page took 0.037903 seconds and 4 git commands to generate.