* Personal prototype "gx" translation-based JIT engine for M32R.
[deliverable/binutils-gdb.git] / sim / common / .Sanitize
CommitLineData
3994972d 1# .Sanitize for devo/sim/common.
7bf1bbbc 2
3994972d 3# Each directory to survive its way into a release will need a file
7bf1bbbc
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
3994972d 14# done in this directory.
7bf1bbbc
SC
15
16Do-first:
17
36de6f40
DE
18cygnus_files="cgen.sh"
19if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
20 keep_these_too="${cygnus_files} ${keep_these_too}"
21else
22 lose_these_too="${cygnus_files} ${lose_these_too}"
23fi
24
92fa4579
FCE
25gxsim_files="sim-gx-run.c sim-gx.c sim-gx.h"
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
7bf1bbbc
SC
32# All files listed between the "Things-to-keep:" line and the
33# "Files-to-sed:" line will be kept. All other files will be removed.
34# Directories listed in this section will have their own Sanitize
35# called. Directories not listed will be removed in their entirety
36# with rm -rf.
37
38Things-to-keep:
39
f025d903 40ChangeLog
db7d7ff8
DE
41Make-common.in
42Makefile.in
fc4198bb 43acconfig.h
db7d7ff8
DE
44aclocal.m4
45callback.c
b35179cb
DE
46cgen-cpu.h
47cgen-engine.h
f7abc1ca
DE
48cgen-mem.h
49cgen-ops.h
99bc9a69 50cgen-run.c
b9c8cd10 51cgen-scache.c
b35179cb 52cgen-scache.h
b9c8cd10
DE
53cgen-sim.h
54cgen-trace.c
55cgen-trace.h
56cgen-types.h
57cgen-utils.c
db7d7ff8
DE
58config.in
59configure.in
60configure
39e953a7
AC
61dv-core.c
62dv-glue.c
63dv-pal.c
84c6d152
DE
64dv-sockser.c
65dv-sockser.h
88d5f8e8 66gdbinit.in
b9c8cd10 67genmloop.sh
f7abc1ca 68gennltvals.sh
db7d7ff8
DE
69gentmap.c
70gentvals.sh
c14db36d
AC
71hw-alloc.c
72hw-alloc.h
39e953a7
AC
73hw-base.c
74hw-base.h
75hw-device.c
76hw-device.h
77hw-events.c
78hw-events.h
451a9c05
AC
79hw-handles.c
80hw-handles.h
81hw-instances.c
82hw-instances.h
48f83b1a 83hw-main.h
39e953a7
AC
84hw-ports.c
85hw-ports.h
86hw-properties.c
87hw-properties.h
88hw-tree.c
89hw-tree.h
db7d7ff8 90nltvals.def
c95d08a8 91nrun.c
7bf1bbbc
SC
92run.c
93run.1
ba237406 94sim-abort.c
332cb5d9 95sim-alu.h
ba237406 96sim-assert.h
e77fd269 97sim-base.h
d0d80f48 98sim-basics.h
332cb5d9
AC
99sim-bits.c
100sim-bits.h
b9d580a4
SG
101sim-break.c
102sim-break.h
710f55ce 103sim-config.c
d0d80f48 104sim-config.h
a1dc3945
AC
105sim-core.c
106sim-core.h
433a8eaf
DE
107sim-cpu.c
108sim-cpu.h
332cb5d9
AC
109sim-endian.c
110sim-endian.h
ba237406
AC
111sim-engine.c
112sim-engine.h
a1dc3945
AC
113sim-events.c
114sim-events.h
710f55ce
DE
115sim-fpu.c
116sim-fpu.h
fafce69a 117sim-hload.c
6dbaff8f 118sim-hrw.c
48f83b1a
AC
119sim-hw.c
120sim-hw.h
2b9cac47 121sim-info.c
d0d80f48 122sim-inline.c
332cb5d9 123sim-inline.h
a1dc3945
AC
124sim-io.c
125sim-io.h
3b609fd5 126sim-load.c
a34abff8
AC
127sim-memopt.c
128sim-memopt.h
b9c8cd10 129sim-model.c
b320601b
DE
130sim-model.h
131sim-module.c
132sim-module.h
f5c7064a
AC
133sim-n-bits.h
134sim-n-core.h
135sim-n-endian.h
4ede3a83
DE
136sim-options.c
137sim-options.h
b320601b
DE
138sim-profile.c
139sim-profile.h
ba237406 140sim-reason.c
99bc9a69 141sim-reg.c
ba237406
AC
142sim-resume.c
143sim-run.c
1ebc7e0e
DE
144sim-signal.c
145sim-signal.h
ba237406 146sim-stop.c
e9b2f579 147sim-trace.c
3b609fd5 148sim-trace.h
a1dc3945 149sim-types.h
e77fd269 150sim-utils.c
f4749781 151sim-utils.h
5697f152
DE
152sim-watch.c
153sim-watch.h
f7abc1ca 154syscall.c
db7d7ff8 155tconfig.in
7bf1bbbc
SC
156
157Things-to-lose:
158
7bf1bbbc
SC
159Do-last:
160
36de6f40
DE
161cygnus_files="ChangeLog Make-common.in"
162if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
163 for i in $cygnus_files ; do
164 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
165 if [ -n "${verbose}" ] ; then
166 echo Keeping cygnus stuff in $i
167 fi
168 fi
169 done
170else
171 for i in $cygnus_files ; do
172 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
173 if [ -n "${verbose}" ] ; then
174 echo Removing traces of \"cygnus\" from $i...
175 fi
176 cp $i new
177 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
178 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
179 if [ -n "${verbose}" ] ; then
180 echo Caching $i in .Recover...
181 fi
182 mv $i .Recover
183 fi
184 mv new $i
185 fi
186 done
187fi
188
92fa4579
FCE
189gxsim_files="ChangeLog Make-common.in sim-base.h"
190if ( echo $* | grep keep\-gxsim > /dev/null ) ; then
191 for i in $gxsim_files ; do
192 if test ! -d $i && (grep sanitize-gxsim $i > /dev/null) ; then
193 if [ -n "${verbose}" ] ; then
194 echo Keeping gxsim stuff in $i
195 fi
196 fi
197 done
198else
199 for i in $gxsim_files ; do
200 if test ! -d $i && (grep sanitize-gxsim $i > /dev/null) ; then
201 if [ -n "${verbose}" ] ; then
202 echo Removing traces of \"gxsim\" from $i...
203 fi
204 cp $i new
205 sed '/start\-sanitize\-gxsim/,/end-\sanitize\-gxsim/d' < $i > new
206 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
207 if [ -n "${verbose}" ] ; then
208 echo Caching $i in .Recover...
209 fi
210 mv $i .Recover
211 fi
212 mv new $i
213 fi
214 done
215fi
216
7bf1bbbc 217# End of file.
This page took 0.124297 seconds and 4 git commands to generate.