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