]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/common/.Sanitize
* Personal prototype "gx" translation-based JIT engine for M32R.
[thirdparty/binutils-gdb.git] / sim / common / .Sanitize
1 # .Sanitize for devo/sim/common.
2
3 # Each directory to survive its 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 directory.
15
16 Do-first:
17
18 cygnus_files="cgen.sh"
19 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
20 keep_these_too="${cygnus_files} ${keep_these_too}"
21 else
22 lose_these_too="${cygnus_files} ${lose_these_too}"
23 fi
24
25 gxsim_files="sim-gx-run.c sim-gx.c sim-gx.h"
26 if ( echo $* | grep keep\-gxsim > /dev/null ) ; then
27 keep_these_too="${gxsim_files} ${keep_these_too}"
28 else
29 lose_these_too="${gxsim_files} ${lose_these_too}"
30 fi
31
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
38 Things-to-keep:
39
40 ChangeLog
41 Make-common.in
42 Makefile.in
43 acconfig.h
44 aclocal.m4
45 callback.c
46 cgen-cpu.h
47 cgen-engine.h
48 cgen-mem.h
49 cgen-ops.h
50 cgen-run.c
51 cgen-scache.c
52 cgen-scache.h
53 cgen-sim.h
54 cgen-trace.c
55 cgen-trace.h
56 cgen-types.h
57 cgen-utils.c
58 config.in
59 configure.in
60 configure
61 dv-core.c
62 dv-glue.c
63 dv-pal.c
64 dv-sockser.c
65 dv-sockser.h
66 gdbinit.in
67 genmloop.sh
68 gennltvals.sh
69 gentmap.c
70 gentvals.sh
71 hw-alloc.c
72 hw-alloc.h
73 hw-base.c
74 hw-base.h
75 hw-device.c
76 hw-device.h
77 hw-events.c
78 hw-events.h
79 hw-handles.c
80 hw-handles.h
81 hw-instances.c
82 hw-instances.h
83 hw-main.h
84 hw-ports.c
85 hw-ports.h
86 hw-properties.c
87 hw-properties.h
88 hw-tree.c
89 hw-tree.h
90 nltvals.def
91 nrun.c
92 run.c
93 run.1
94 sim-abort.c
95 sim-alu.h
96 sim-assert.h
97 sim-base.h
98 sim-basics.h
99 sim-bits.c
100 sim-bits.h
101 sim-break.c
102 sim-break.h
103 sim-config.c
104 sim-config.h
105 sim-core.c
106 sim-core.h
107 sim-cpu.c
108 sim-cpu.h
109 sim-endian.c
110 sim-endian.h
111 sim-engine.c
112 sim-engine.h
113 sim-events.c
114 sim-events.h
115 sim-fpu.c
116 sim-fpu.h
117 sim-hload.c
118 sim-hrw.c
119 sim-hw.c
120 sim-hw.h
121 sim-info.c
122 sim-inline.c
123 sim-inline.h
124 sim-io.c
125 sim-io.h
126 sim-load.c
127 sim-memopt.c
128 sim-memopt.h
129 sim-model.c
130 sim-model.h
131 sim-module.c
132 sim-module.h
133 sim-n-bits.h
134 sim-n-core.h
135 sim-n-endian.h
136 sim-options.c
137 sim-options.h
138 sim-profile.c
139 sim-profile.h
140 sim-reason.c
141 sim-reg.c
142 sim-resume.c
143 sim-run.c
144 sim-signal.c
145 sim-signal.h
146 sim-stop.c
147 sim-trace.c
148 sim-trace.h
149 sim-types.h
150 sim-utils.c
151 sim-utils.h
152 sim-watch.c
153 sim-watch.h
154 syscall.c
155 tconfig.in
156
157 Things-to-lose:
158
159 Do-last:
160
161 cygnus_files="ChangeLog Make-common.in"
162 if ( 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
170 else
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
187 fi
188
189 gxsim_files="ChangeLog Make-common.in sim-base.h"
190 if ( 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
198 else
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
215 fi
216
217 # End of file.