elf32-mips.c (_bfd_mips_elf_final_write_processing): Handle bfd_mach_mips4300.
[deliverable/binutils-gdb.git] / sim / .Sanitize
CommitLineData
b0c9f026
SC
1# .Sanitize for devo/sim.
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
16Do-first:
17
19a2b300 18tic80_files="tic80"
15c16493 19if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
f13f11b4 20 keep_these_too="${tic80_files} ${keep_these_too}"
15c16493
AC
21else
22 lose_these_too="${tic80_files} ${lose_these_too}"
23fi
24
92fa4579
FCE
25gxsim_files="m32r-gx"
26if ( echo $* | grep keep\-gxsim > /dev/null ) ; then
27 keep_these_too="${gxsim_files} ${keep_these_too}"
28else
29 lose_these_too="${gxsim_files} ${lose_these_too}"
30fi
31
f13f11b4 32lose_these_too="${lose_these_too}"
19a2b300 33
b0c9f026
SC
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
40Things-to-keep:
41
83a4c26f 42ChangeLog
55538130 43Makefile.in
117224ea 44README-HACKING
d32033ad 45arm
1ffd292b 46configure
b0c9f026 47configure.in
60181796 48common
22540e2d 49d10v
965f5327 50d30v
fd58f4b1 51erc32
b0c9f026 52h8300
a66ad4b2 53h8500
b2248e12 54i960
f13f11b4 55igen
3990f1cd 56m32r
2f82f755 57mips
c1848bd2 58mn10200
05ccbdfd 59mn10300
cb7a6892 60ppc
594266fc 61sh
f13f11b4 62v850
bfebf1a5 63testsuite
4a5947d0 64w65
b0c9f026
SC
65z8k
66
87756e15
RP
67Things-to-lose:
68
47a21445 69fr30
447a825b 70
b0c9f026
SC
71Do-last:
72
15c16493
AC
73tic80_files="configure configure.in ChangeLog"
74if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
75 for i in $tic80_files ; do
76 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
317df3b5 77 if [ -n "${verbose}" ] ; then
15c16493 78 echo Keeping tic80 stuff in $i
317df3b5
AC
79 fi
80 fi
81 done
82else
15c16493
AC
83 for i in $tic80_files ; do
84 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
317df3b5 85 if [ -n "${verbose}" ] ; then
15c16493 86 echo Removing traces of \"tic80\" from $i...
317df3b5
AC
87 fi
88 cp $i new
15c16493
AC
89 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
90 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
91 if [ -n "${verbose}" ] ; then
92 echo Caching $i in .Recover...
93 fi
94 mv $i .Recover
95 fi
96 mv new $i
97 fi
98 done
99fi
100
92fa4579
FCE
101gxsim_files="configure configure.in ChangeLog"
102if ( echo $* | grep keep\-gxsim > /dev/null ) ; then
103 for i in $gxsim_files ; do
104 if test ! -d $i && (grep sanitize-gxsim $i > /dev/null) ; then
105 if [ -n "${verbose}" ] ; then
106 echo Keeping gxsim stuff in $i
107 fi
108 fi
109 done
110else
111 for i in $gxsim_files ; do
112 if test ! -d $i && (grep sanitize-gxsim $i > /dev/null) ; then
113 if [ -n "${verbose}" ] ; then
114 echo Removing traces of \"gxsim\" from $i...
115 fi
116 cp $i new
117 sed '/start\-sanitize\-gxsim/,/end-\sanitize\-gxsim/d' < $i > new
118 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
119 if [ -n "${verbose}" ] ; then
120 echo Caching $i in .Recover...
121 fi
122 mv $i .Recover
123 fi
124 mv new $i
125 fi
126 done
127fi
128
15c16493 129v850_files="configure configure.in ChangeLog"
27161f9e
NC
130if ( echo $* | grep keep\-v850e > /dev/null ) ; then
131 for i in $v850_files ; do
132 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
133 if [ -n "${verbose}" ] ; then
134 echo Keeping v850e stuff in $i
135 fi
136 fi
137 done
138else
139 for i in $v850_files ; do
140 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
141 if [ -n "${verbose}" ] ; then
142 echo Removing traces of \"v850e\" from $i...
143 fi
144 cp $i new
145 sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new
146 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
147 if [ -n "${verbose}" ] ; then
148 echo Caching $i in .Recover...
149 fi
150 mv $i .Recover
151 fi
152 mv new $i
153 fi
154 done
155fi
27161f9e 156
d843d7ca
GRK
157vr4320_files="ChangeLog"
158if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
159 for i in $vr4320_files ; do
160 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
161 if [ -n "${verbose}" ] ; then
162 echo Keeping vr4320 stuff in $i
163 fi
164 fi
165 done
166else
167 for i in $vr4320_files ; do
168 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
169 if [ -n "${verbose}" ] ; then
170 echo Removing traces of \"vr4320\" from $i...
171 fi
172 cp $i new
173 sed '/start\-sanitize\-vr4320/,/end-\sanitize\-vr4320/d' < $i > new
174 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
175 if [ -n "${verbose}" ] ; then
176 echo Caching $i in .Recover...
177 fi
178 mv $i .Recover
179 fi
180 mv new $i
181 fi
182 done
183fi
184
745a0437
MH
185for i in * ; do
186 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
187 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
188 fi
189done
190
b0c9f026 191# End of file.
This page took 0.212896 seconds and 4 git commands to generate.