Entries in v850_opcodes reordered to put same named entries adjacent to each other.
[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
AC
18igen_files="igen"
19
20d30v_files="d30v testsuite"
317df3b5 21if ( echo $* | grep keep\-d30v > /dev/null ) ; then
19a2b300
AC
22 keep_these_too="${d30v_files} ${igen_files} ${keep_these_too}"
23 igen_files=
317df3b5
AC
24else
25 lose_these_too="${d30v_files} ${lose_these_too}"
26fi
27
19a2b300 28tic80_files="tic80"
15c16493 29if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
19a2b300
AC
30 keep_these_too="${tic80_files} ${igen_files} ${keep_these_too}"
31 igen_files=
15c16493
AC
32else
33 lose_these_too="${tic80_files} ${lose_these_too}"
34fi
35
7a2f7ea7
AC
36v850_files="v850"
37if ( echo $* | grep keep\-v850 > /dev/null ) ; then
38 keep_these_too="${v850_files} ${igen_files} ${keep_these_too}"
39 igen_files=
40else
41 lose_these_too="${v850_files} ${lose_these_too}"
42fi
43
19a2b300
AC
44lose_these_too="${igen_files} ${lose_these_too}"
45
b0c9f026
SC
46# All files listed between the "Things-to-keep:" line and the
47# "Files-to-sed:" line will be kept. All other files will be removed.
48# Directories listed in this section will have their own Sanitize
49# called. Directories not listed will be removed in their entirety
50# with rm -rf.
51
52Things-to-keep:
53
83a4c26f 54ChangeLog
55538130 55Makefile.in
117224ea 56README-HACKING
d32033ad 57arm
1ffd292b 58configure
b0c9f026 59configure.in
60181796 60common
22540e2d 61d10v
fd58f4b1 62erc32
b0c9f026 63h8300
a66ad4b2 64h8500
3990f1cd 65m32r
2f82f755 66mips
c1848bd2 67mn10200
05ccbdfd 68mn10300
cb7a6892 69ppc
594266fc 70sh
4a5947d0 71w65
26364863 72v850
b0c9f026
SC
73z8k
74
87756e15
RP
75Things-to-lose:
76
447a825b 77
b0c9f026
SC
78Do-last:
79
15c16493
AC
80d30v_files="configure configure.in ChangeLog"
81if ( echo $* | grep keep\-d30v > /dev/null ) ; then
82 for i in $d30v_files ; do
83 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
82feb39e 84 if [ -n "${verbose}" ] ; then
15c16493 85 echo Keeping d30v stuff in $i
82feb39e
JL
86 fi
87 fi
88 done
89else
15c16493
AC
90 for i in $d30v_files ; do
91 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
82feb39e 92 if [ -n "${verbose}" ] ; then
15c16493 93 echo Removing traces of \"d30v\" from $i...
82feb39e
JL
94 fi
95 cp $i new
15c16493 96 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
82feb39e
JL
97 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
98 if [ -n "${verbose}" ] ; then
99 echo Caching $i in .Recover...
100 fi
101 mv $i .Recover
102 fi
103 mv new $i
104 fi
105 done
106fi
317df3b5 107
15c16493
AC
108tic80_files="configure configure.in ChangeLog"
109if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
110 for i in $tic80_files ; do
111 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
317df3b5 112 if [ -n "${verbose}" ] ; then
15c16493 113 echo Keeping tic80 stuff in $i
317df3b5
AC
114 fi
115 fi
116 done
117else
15c16493
AC
118 for i in $tic80_files ; do
119 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
317df3b5 120 if [ -n "${verbose}" ] ; then
15c16493 121 echo Removing traces of \"tic80\" from $i...
317df3b5
AC
122 fi
123 cp $i new
15c16493
AC
124 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
125 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
126 if [ -n "${verbose}" ] ; then
127 echo Caching $i in .Recover...
128 fi
129 mv $i .Recover
130 fi
131 mv new $i
132 fi
133 done
134fi
135
136v850_files="configure configure.in ChangeLog"
26364863 137if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
15c16493 138 for i in $v850_files ; do
26364863 139 if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then
15c16493 140 if [ -n "${verbose}" ] ; then
26364863 141 echo Keeping v850eq stuff in $i
15c16493
AC
142 fi
143 fi
144 done
145else
146 for i in $v850_files ; do
26364863 147 if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then
15c16493 148 if [ -n "${verbose}" ] ; then
26364863 149 echo Removing traces of \"v850eq\" from $i...
15c16493
AC
150 fi
151 cp $i new
26364863 152 sed '/start\-sanitize\-v850eq/,/end-\sanitize\-v850eq/d' < $i > new
317df3b5
AC
153 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
154 if [ -n "${verbose}" ] ; then
155 echo Caching $i in .Recover...
156 fi
157 mv $i .Recover
158 fi
159 mv new $i
160 fi
161 done
162fi
27161f9e
NC
163if ( echo $* | grep keep\-v850e > /dev/null ) ; then
164 for i in $v850_files ; do
165 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
166 if [ -n "${verbose}" ] ; then
167 echo Keeping v850e stuff in $i
168 fi
169 fi
170 done
171else
172 for i in $v850_files ; do
173 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
174 if [ -n "${verbose}" ] ; then
175 echo Removing traces of \"v850e\" from $i...
176 fi
177 cp $i new
178 sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new
179 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
180 if [ -n "${verbose}" ] ; then
181 echo Caching $i in .Recover...
182 fi
183 mv $i .Recover
184 fi
185 mv new $i
186 fi
187 done
188fi
27161f9e 189
317df3b5 190
745a0437
MH
191for i in * ; do
192 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
193 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
194 fi
195done
196
b0c9f026 197# End of file.
This page took 0.180949 seconds and 4 git commands to generate.