]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/common/.Sanitize
* cgen-defs.h: New file, old cgen-sim.h.
[thirdparty/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 46cgen-cpu.h
b61e2e14 47cgen-defs.h
b35179cb 48cgen-engine.h
f7abc1ca
DE
49cgen-mem.h
50cgen-ops.h
99bc9a69 51cgen-run.c
b9c8cd10 52cgen-scache.c
b35179cb 53cgen-scache.h
b9c8cd10
DE
54cgen-sim.h
55cgen-trace.c
56cgen-trace.h
57cgen-types.h
58cgen-utils.c
db7d7ff8
DE
59config.in
60configure.in
61configure
39e953a7
AC
62dv-core.c
63dv-glue.c
64dv-pal.c
84c6d152
DE
65dv-sockser.c
66dv-sockser.h
88d5f8e8 67gdbinit.in
b9c8cd10 68genmloop.sh
f7abc1ca 69gennltvals.sh
db7d7ff8
DE
70gentmap.c
71gentvals.sh
c14db36d
AC
72hw-alloc.c
73hw-alloc.h
39e953a7
AC
74hw-base.c
75hw-base.h
76hw-device.c
77hw-device.h
78hw-events.c
79hw-events.h
451a9c05
AC
80hw-handles.c
81hw-handles.h
82hw-instances.c
83hw-instances.h
48f83b1a 84hw-main.h
39e953a7
AC
85hw-ports.c
86hw-ports.h
87hw-properties.c
88hw-properties.h
89hw-tree.c
90hw-tree.h
db7d7ff8 91nltvals.def
c95d08a8 92nrun.c
7bf1bbbc
SC
93run.c
94run.1
ba237406 95sim-abort.c
332cb5d9 96sim-alu.h
17f07639
DE
97sim-arange.c
98sim-arange.h
ba237406 99sim-assert.h
e77fd269 100sim-base.h
d0d80f48 101sim-basics.h
332cb5d9
AC
102sim-bits.c
103sim-bits.h
b9d580a4
SG
104sim-break.c
105sim-break.h
710f55ce 106sim-config.c
d0d80f48 107sim-config.h
a1dc3945
AC
108sim-core.c
109sim-core.h
433a8eaf
DE
110sim-cpu.c
111sim-cpu.h
332cb5d9
AC
112sim-endian.c
113sim-endian.h
ba237406
AC
114sim-engine.c
115sim-engine.h
a1dc3945
AC
116sim-events.c
117sim-events.h
710f55ce
DE
118sim-fpu.c
119sim-fpu.h
fafce69a 120sim-hload.c
6dbaff8f 121sim-hrw.c
48f83b1a
AC
122sim-hw.c
123sim-hw.h
2b9cac47 124sim-info.c
d0d80f48 125sim-inline.c
332cb5d9 126sim-inline.h
a1dc3945
AC
127sim-io.c
128sim-io.h
3b609fd5 129sim-load.c
a34abff8
AC
130sim-memopt.c
131sim-memopt.h
b9c8cd10 132sim-model.c
b320601b
DE
133sim-model.h
134sim-module.c
135sim-module.h
f5c7064a
AC
136sim-n-bits.h
137sim-n-core.h
138sim-n-endian.h
4ede3a83
DE
139sim-options.c
140sim-options.h
b320601b
DE
141sim-profile.c
142sim-profile.h
ba237406 143sim-reason.c
99bc9a69 144sim-reg.c
ba237406
AC
145sim-resume.c
146sim-run.c
1ebc7e0e
DE
147sim-signal.c
148sim-signal.h
ba237406 149sim-stop.c
e9b2f579 150sim-trace.c
3b609fd5 151sim-trace.h
a1dc3945 152sim-types.h
e77fd269 153sim-utils.c
f4749781 154sim-utils.h
5697f152
DE
155sim-watch.c
156sim-watch.h
f7abc1ca 157syscall.c
db7d7ff8 158tconfig.in
7bf1bbbc
SC
159
160Things-to-lose:
161
7bf1bbbc
SC
162Do-last:
163
36de6f40
DE
164cygnus_files="ChangeLog Make-common.in"
165if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
166 for i in $cygnus_files ; do
167 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
168 if [ -n "${verbose}" ] ; then
169 echo Keeping cygnus stuff in $i
170 fi
171 fi
172 done
173else
174 for i in $cygnus_files ; do
175 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
176 if [ -n "${verbose}" ] ; then
177 echo Removing traces of \"cygnus\" from $i...
178 fi
179 cp $i new
180 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
181 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
182 if [ -n "${verbose}" ] ; then
183 echo Caching $i in .Recover...
184 fi
185 mv $i .Recover
186 fi
187 mv new $i
188 fi
189 done
190fi
191
92fa4579
FCE
192gxsim_files="ChangeLog Make-common.in sim-base.h"
193if ( echo $* | grep keep\-gxsim > /dev/null ) ; then
194 for i in $gxsim_files ; do
195 if test ! -d $i && (grep sanitize-gxsim $i > /dev/null) ; then
196 if [ -n "${verbose}" ] ; then
197 echo Keeping gxsim stuff in $i
198 fi
199 fi
200 done
201else
202 for i in $gxsim_files ; do
203 if test ! -d $i && (grep sanitize-gxsim $i > /dev/null) ; then
204 if [ -n "${verbose}" ] ; then
205 echo Removing traces of \"gxsim\" from $i...
206 fi
207 cp $i new
208 sed '/start\-sanitize\-gxsim/,/end-\sanitize\-gxsim/d' < $i > new
209 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
210 if [ -n "${verbose}" ] ; then
211 echo Caching $i in .Recover...
212 fi
213 mv $i .Recover
214 fi
215 mv new $i
216 fi
217 done
218fi
219
7bf1bbbc 220# End of file.