Mon Jan 20 12:48:57 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
[deliverable/binutils-gdb.git] / opcodes / .Sanitize
CommitLineData
67c2d8c8 1# .Sanitize for devo/opcodes.
a4ccc310 2
e7c4e61c 3# Each directory to survive its way into a release will need a file
a4ccc310
SC
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
10f1b597 14# done in this directory.
a4ccc310
SC
15
16Do-first:
17
8515dbe2
DE
18arc_files="arc-dis.c arc-opc.c"
19
20if ( echo $* | grep keep\-arc > /dev/null ) ; then
21 keep_these_too="${arc_files} ${keep_these_too}"
22else
23 lose_these_too="${arc_files} ${lose_these_too}"
24fi
25
e3659cbf
MH
26d10v_files="d10v-dis.c d10v-opc.c"
27
28if ( echo $* | grep keep\-d10v > /dev/null ) ; then
29 keep_these_too="${d10v_files} ${keep_these_too}"
30else
31 lose_these_too="${d10v_files} ${lose_these_too}"
32fi
33
ba39d3dd 34v850_files="v850-opc.c v850-dis.c"
6d1e1ee8
C
35
36if ( echo $* | grep keep\-v850 > /dev/null ) ; then
37 keep_these_too="${v850_files} ${keep_these_too}"
38else
39 lose_these_too="${v850_files} ${lose_these_too}"
40fi
41
6357e7f6
FF
42tic80_files="tic80-opc.c tic80-dis.c"
43
44if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
45 keep_these_too="${tic80_files} ${keep_these_too}"
46else
47 lose_these_too="${tic80_files} ${lose_these_too}"
48fi
49
6d1e1ee8 50
a4ccc310
SC
51# All files listed between the "Things-to-keep:" line and the
52# "Files-to-sed:" line will be kept. All other files will be removed.
53# Directories listed in this section will have their own Sanitize
54# called. Directories not listed will be removed in their entirety
55# with rm -rf.
56
57Things-to-keep:
87756e15 58
a4ccc310 59ChangeLog
add1fb05 60Makefile.in
9b65d522 61aclocal.m4
5f8f6d56 62alpha-dis.c
96926bf0 63alpha-opc.c
ba08215a
KR
64arm-dis.c
65arm-opc.h
720b3aed 66a29k-dis.c
50982f7f
KR
67config.in
68configure
fc984fdb 69configure.bat
add1fb05 70configure.in
117733ad 71dis-buf.c
204c9148 72disassemble.c
3b4cc5ec 73h8300-dis.c
337110ea
SC
74h8500-dis.c
75h8500-opc.h
cfa8d061 76hppa-dis.c
c840244e 77i386-dis.c
720b3aed 78i960-dis.c
c840244e 79m68k-dis.c
85093dca 80m68k-opc.c
a4c01299 81m88k-dis.c
03496c49 82makefile.vms
bf1dd2fd 83mips-dis.c
69135a69 84mips-opc.c
8d67dc30 85mips16-opc.c
ae1b99e4
JL
86mn10200-dis.c
87mn10200-opc.c
88mn10300-dis.c
89mn10300-opc.c
7a4f107d 90mpw-config.in
077bd46a 91mpw-make.sed
2a097d73 92ns32k-dis.c
89221bd5
ILT
93ppc-dis.c
94ppc-opc.c
8679a71f
SC
95sh-opc.h
96sh-dis.c
117733ad 97sparc-dis.c
c3a1191a 98sparc-opc.c
50982f7f 99sysdep.h
9f744f91
SC
100w65-dis.c
101w65-opc.h
add1fb05 102z8k-dis.c
a4ccc310 103z8k-opc.h
ea2598e4 104z8kgen.c
add1fb05 105
87756e15
RP
106Things-to-lose:
107
62ba1060
SC
108Do-last:
109
50982f7f 110arc_files="ChangeLog Makefile.in configure.in configure disassemble.c"
8515dbe2
DE
111if ( echo $* | grep keep\-arc > /dev/null ) ; then
112 for i in $arc_files ; do
113 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
114 if [ -n "${verbose}" ] ; then
115 echo Keeping arc stuff in $i
116 fi
117 fi
118 done
119else
120 for i in $arc_files ; do
121 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
122 if [ -n "${verbose}" ] ; then
123 echo Removing traces of \"arc\" from $i...
124 fi
125 cp $i new
126 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
127 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
128 if [ -n "${verbose}" ] ; then
129 echo Caching $i in .Recover...
130 fi
131 mv $i .Recover
132 fi
133 mv new $i
134 fi
135 done
136fi
137
e3659cbf
MH
138d10v_files="ChangeLog Makefile.in configure.in configure disassemble.c"
139if ( echo $* | grep keep\-d10v > /dev/null ) ; then
140 for i in $d10v_files ; do
141 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
142 if [ -n "${verbose}" ] ; then
143 echo Keeping d10v stuff in $i
144 fi
145 fi
146 done
147else
148 for i in $d10v_files ; do
149 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
150 if [ -n "${verbose}" ] ; then
151 echo Removing traces of \"d10v\" from $i...
152 fi
153 cp $i new
154 sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new
155 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
156 if [ -n "${verbose}" ] ; then
157 echo Caching $i in .Recover...
158 fi
159 mv $i .Recover
160 fi
161 mv new $i
162 fi
163 done
164fi
165
6c9370db 166v850_files="ChangeLog Makefile.in configure.in configure disassemble.c"
6d1e1ee8
C
167if ( echo $* | grep keep\-v850 > /dev/null ) ; then
168 for i in $v850_files ; do
169 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
170 if [ -n "${verbose}" ] ; then
171 echo Keeping v850 stuff in $i
172 fi
173 fi
174 done
175else
176 for i in $v850_files ; do
177 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
178 if [ -n "${verbose}" ] ; then
179 echo Removing traces of \"v850\" from $i...
180 fi
181 cp $i new
182 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
183 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
184 if [ -n "${verbose}" ] ; then
185 echo Caching $i in .Recover...
186 fi
187 mv $i .Recover
188 fi
189 mv new $i
190 fi
191 done
192fi
193
a79d0193 194tic80_files="ChangeLog Makefile.in configure.in configure disassemble.c"
6357e7f6
FF
195if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
196 for i in $tic80_files ; do
197 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
198 if [ -n "${verbose}" ] ; then
199 echo Keeping tic80 stuff in $i
200 fi
201 fi
202 done
203else
204 for i in $tic80_files ; do
205 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
206 if [ -n "${verbose}" ] ; then
207 echo Removing traces of \"tic80\" from $i...
208 fi
209 cp $i new
210 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
211 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
212 if [ -n "${verbose}" ] ; then
213 echo Caching $i in .Recover...
214 fi
215 mv $i .Recover
216 fi
217 mv new $i
218 fi
219 done
220fi
221
6d1e1ee8 222
5c680afd
MT
223for i in * ; do
224 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
225 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
226 fi
227done
228
a4ccc310 229# End of file.
This page took 0.255741 seconds and 4 git commands to generate.