]>
Commit | Line | Data |
---|---|---|
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 | |
16 | Do-first: | |
17 | ||
36de6f40 DE |
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 | ||
92fa4579 FCE |
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 | ||
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 | ||
38 | Things-to-keep: | |
39 | ||
f025d903 | 40 | ChangeLog |
db7d7ff8 DE |
41 | Make-common.in |
42 | Makefile.in | |
fc4198bb | 43 | acconfig.h |
db7d7ff8 DE |
44 | aclocal.m4 |
45 | callback.c | |
b35179cb | 46 | cgen-cpu.h |
b61e2e14 | 47 | cgen-defs.h |
b35179cb | 48 | cgen-engine.h |
f7abc1ca DE |
49 | cgen-mem.h |
50 | cgen-ops.h | |
99bc9a69 | 51 | cgen-run.c |
b9c8cd10 | 52 | cgen-scache.c |
b35179cb | 53 | cgen-scache.h |
b9c8cd10 DE |
54 | cgen-sim.h |
55 | cgen-trace.c | |
56 | cgen-trace.h | |
57 | cgen-types.h | |
58 | cgen-utils.c | |
db7d7ff8 DE |
59 | config.in |
60 | configure.in | |
61 | configure | |
39e953a7 AC |
62 | dv-core.c |
63 | dv-glue.c | |
64 | dv-pal.c | |
84c6d152 DE |
65 | dv-sockser.c |
66 | dv-sockser.h | |
88d5f8e8 | 67 | gdbinit.in |
b9c8cd10 | 68 | genmloop.sh |
f7abc1ca | 69 | gennltvals.sh |
db7d7ff8 DE |
70 | gentmap.c |
71 | gentvals.sh | |
c14db36d AC |
72 | hw-alloc.c |
73 | hw-alloc.h | |
39e953a7 AC |
74 | hw-base.c |
75 | hw-base.h | |
76 | hw-device.c | |
77 | hw-device.h | |
78 | hw-events.c | |
79 | hw-events.h | |
451a9c05 AC |
80 | hw-handles.c |
81 | hw-handles.h | |
82 | hw-instances.c | |
83 | hw-instances.h | |
48f83b1a | 84 | hw-main.h |
39e953a7 AC |
85 | hw-ports.c |
86 | hw-ports.h | |
87 | hw-properties.c | |
88 | hw-properties.h | |
89 | hw-tree.c | |
90 | hw-tree.h | |
db7d7ff8 | 91 | nltvals.def |
c95d08a8 | 92 | nrun.c |
7bf1bbbc SC |
93 | run.c |
94 | run.1 | |
ba237406 | 95 | sim-abort.c |
332cb5d9 | 96 | sim-alu.h |
17f07639 DE |
97 | sim-arange.c |
98 | sim-arange.h | |
ba237406 | 99 | sim-assert.h |
e77fd269 | 100 | sim-base.h |
d0d80f48 | 101 | sim-basics.h |
332cb5d9 AC |
102 | sim-bits.c |
103 | sim-bits.h | |
b9d580a4 SG |
104 | sim-break.c |
105 | sim-break.h | |
710f55ce | 106 | sim-config.c |
d0d80f48 | 107 | sim-config.h |
a1dc3945 AC |
108 | sim-core.c |
109 | sim-core.h | |
433a8eaf DE |
110 | sim-cpu.c |
111 | sim-cpu.h | |
332cb5d9 AC |
112 | sim-endian.c |
113 | sim-endian.h | |
ba237406 AC |
114 | sim-engine.c |
115 | sim-engine.h | |
a1dc3945 AC |
116 | sim-events.c |
117 | sim-events.h | |
710f55ce DE |
118 | sim-fpu.c |
119 | sim-fpu.h | |
fafce69a | 120 | sim-hload.c |
6dbaff8f | 121 | sim-hrw.c |
48f83b1a AC |
122 | sim-hw.c |
123 | sim-hw.h | |
2b9cac47 | 124 | sim-info.c |
d0d80f48 | 125 | sim-inline.c |
332cb5d9 | 126 | sim-inline.h |
a1dc3945 AC |
127 | sim-io.c |
128 | sim-io.h | |
3b609fd5 | 129 | sim-load.c |
a34abff8 AC |
130 | sim-memopt.c |
131 | sim-memopt.h | |
b9c8cd10 | 132 | sim-model.c |
b320601b DE |
133 | sim-model.h |
134 | sim-module.c | |
135 | sim-module.h | |
f5c7064a AC |
136 | sim-n-bits.h |
137 | sim-n-core.h | |
138 | sim-n-endian.h | |
4ede3a83 DE |
139 | sim-options.c |
140 | sim-options.h | |
b320601b DE |
141 | sim-profile.c |
142 | sim-profile.h | |
ba237406 | 143 | sim-reason.c |
99bc9a69 | 144 | sim-reg.c |
ba237406 AC |
145 | sim-resume.c |
146 | sim-run.c | |
1ebc7e0e DE |
147 | sim-signal.c |
148 | sim-signal.h | |
ba237406 | 149 | sim-stop.c |
e9b2f579 | 150 | sim-trace.c |
3b609fd5 | 151 | sim-trace.h |
a1dc3945 | 152 | sim-types.h |
e77fd269 | 153 | sim-utils.c |
f4749781 | 154 | sim-utils.h |
5697f152 DE |
155 | sim-watch.c |
156 | sim-watch.h | |
f7abc1ca | 157 | syscall.c |
db7d7ff8 | 158 | tconfig.in |
7bf1bbbc SC |
159 | |
160 | Things-to-lose: | |
161 | ||
7bf1bbbc SC |
162 | Do-last: |
163 | ||
36de6f40 DE |
164 | cygnus_files="ChangeLog Make-common.in" |
165 | if ( 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 | |
173 | else | |
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 | |
190 | fi | |
191 | ||
92fa4579 FCE |
192 | gxsim_files="ChangeLog Make-common.in sim-base.h" |
193 | if ( 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 | |
201 | else | |
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 | |
218 | fi | |
219 | ||
7bf1bbbc | 220 | # End of file. |