* cgen-trace.c (first_insn_p): New static local.
[deliverable/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 am30_files="dv-core.c dv-pal.c dv-glue.c hw-base.c hw-base.h hw-device.c hw-device.h hw-ports.c hw-ports.h hw-properties.c hw-properties.h hw-tree.c hw-tree.h sim-hw.h sim-hw.c"
26 if ( echo $* | grep keep\-am30 > /dev/null ) ; then
27 keep_these_too="${am30_files} ${keep_these_too}"
28 else
29 lose_these_too="${am30_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-mem.h
47 cgen-ops.h
48 cgen-scache.c
49 cgen-sim.h
50 cgen-trace.c
51 cgen-trace.h
52 cgen-types.h
53 cgen-utils.c
54 config.in
55 configure.in
56 configure
57 dv-sockser.c
58 dv-sockser.h
59 gdbinit.in
60 genmloop.sh
61 gennltvals.sh
62 gentmap.c
63 gentvals.sh
64 nltvals.def
65 nrun.c
66 run.c
67 run.1
68 sim-abort.c
69 sim-alu.h
70 sim-assert.h
71 sim-base.h
72 sim-basics.h
73 sim-bits.c
74 sim-bits.h
75 sim-break.c
76 sim-break.h
77 sim-config.c
78 sim-config.h
79 sim-core.c
80 sim-core.h
81 sim-cpu.c
82 sim-cpu.h
83 sim-endian.c
84 sim-endian.h
85 sim-engine.c
86 sim-engine.h
87 sim-events.c
88 sim-events.h
89 sim-fpu.c
90 sim-fpu.h
91 sim-hload.c
92 sim-hrw.c
93 sim-info.c
94 sim-inline.c
95 sim-inline.h
96 sim-io.c
97 sim-io.h
98 sim-load.c
99 sim-memopt.c
100 sim-memopt.h
101 sim-model.c
102 sim-model.h
103 sim-module.c
104 sim-module.h
105 sim-n-bits.h
106 sim-n-core.h
107 sim-n-endian.h
108 sim-options.c
109 sim-options.h
110 sim-profile.c
111 sim-profile.h
112 sim-reason.c
113 sim-resume.c
114 sim-run.c
115 sim-signal.c
116 sim-signal.h
117 sim-stop.c
118 sim-trace.c
119 sim-trace.h
120 sim-types.h
121 sim-utils.c
122 sim-utils.h
123 sim-watch.c
124 sim-watch.h
125 syscall.c
126 tconfig.in
127
128 Things-to-lose:
129
130 Do-last:
131
132 d30v_files="ChangeLog gennltvals.sh nltvals.def"
133 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
134 for i in $d30v_files ; do
135 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
136 if [ -n "${verbose}" ] ; then
137 echo Keeping d30v stuff in $i
138 fi
139 fi
140 done
141 else
142 for i in $d30v_files ; do
143 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
144 if [ -n "${verbose}" ] ; then
145 echo Removing traces of \"d30v\" from $i...
146 fi
147 cp $i new
148 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
149 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
150 if [ -n "${verbose}" ] ; then
151 echo Caching $i in .Recover...
152 fi
153 mv $i .Recover
154 fi
155 mv new $i
156 fi
157 done
158 fi
159
160 am30_files="ChangeLog sim-module.c sim-base.h Make-common.in"
161 if ( echo $* | grep keep\-am30 > /dev/null ) ; then
162 for i in $am30_files ; do
163 if test ! -d $i && (grep sanitize-am30 $i > /dev/null) ; then
164 if [ -n "${verbose}" ] ; then
165 echo Keeping am30 stuff in $i
166 fi
167 fi
168 done
169 else
170 for i in $am30_files ; do
171 if test ! -d $i && (grep sanitize-am30 $i > /dev/null) ; then
172 if [ -n "${verbose}" ] ; then
173 echo Removing traces of \"am30\" from $i...
174 fi
175 cp $i new
176 sed '/start\-sanitize\-am30/,/end-\sanitize\-am30/d' < $i > new
177 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
178 if [ -n "${verbose}" ] ; then
179 echo Caching $i in .Recover...
180 fi
181 mv $i .Recover
182 fi
183 mv new $i
184 fi
185 done
186 fi
187
188 cygnus_files="ChangeLog Make-common.in"
189 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
190 for i in $cygnus_files ; do
191 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
192 if [ -n "${verbose}" ] ; then
193 echo Keeping cygnus stuff in $i
194 fi
195 fi
196 done
197 else
198 for i in $cygnus_files ; do
199 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
200 if [ -n "${verbose}" ] ; then
201 echo Removing traces of \"cygnus\" from $i...
202 fi
203 cp $i new
204 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
205 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
206 if [ -n "${verbose}" ] ; then
207 echo Caching $i in .Recover...
208 fi
209 mv $i .Recover
210 fi
211 mv new $i
212 fi
213 done
214 fi
215
216 # End of file.
This page took 0.048354 seconds and 4 git commands to generate.