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 | ||
d8f53049 | 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" |
6d133cc9 AC |
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 | ||
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 | |
f7abc1ca DE |
46 | cgen-mem.h |
47 | cgen-ops.h | |
b9c8cd10 | 48 | cgen-scache.c |
b9c8cd10 DE |
49 | cgen-sim.h |
50 | cgen-trace.c | |
51 | cgen-trace.h | |
52 | cgen-types.h | |
53 | cgen-utils.c | |
db7d7ff8 DE |
54 | config.in |
55 | configure.in | |
56 | configure | |
84c6d152 DE |
57 | dv-sockser.c |
58 | dv-sockser.h | |
88d5f8e8 | 59 | gdbinit.in |
b9c8cd10 | 60 | genmloop.sh |
f7abc1ca | 61 | gennltvals.sh |
db7d7ff8 DE |
62 | gentmap.c |
63 | gentvals.sh | |
64 | nltvals.def | |
c95d08a8 | 65 | nrun.c |
7bf1bbbc SC |
66 | run.c |
67 | run.1 | |
ba237406 | 68 | sim-abort.c |
332cb5d9 | 69 | sim-alu.h |
ba237406 | 70 | sim-assert.h |
e77fd269 | 71 | sim-base.h |
d0d80f48 | 72 | sim-basics.h |
332cb5d9 AC |
73 | sim-bits.c |
74 | sim-bits.h | |
b9d580a4 SG |
75 | sim-break.c |
76 | sim-break.h | |
710f55ce | 77 | sim-config.c |
d0d80f48 | 78 | sim-config.h |
a1dc3945 AC |
79 | sim-core.c |
80 | sim-core.h | |
433a8eaf DE |
81 | sim-cpu.c |
82 | sim-cpu.h | |
332cb5d9 AC |
83 | sim-endian.c |
84 | sim-endian.h | |
ba237406 AC |
85 | sim-engine.c |
86 | sim-engine.h | |
a1dc3945 AC |
87 | sim-events.c |
88 | sim-events.h | |
710f55ce DE |
89 | sim-fpu.c |
90 | sim-fpu.h | |
fafce69a | 91 | sim-hload.c |
6dbaff8f | 92 | sim-hrw.c |
2b9cac47 | 93 | sim-info.c |
d0d80f48 | 94 | sim-inline.c |
332cb5d9 | 95 | sim-inline.h |
a1dc3945 AC |
96 | sim-io.c |
97 | sim-io.h | |
3b609fd5 | 98 | sim-load.c |
a34abff8 AC |
99 | sim-memopt.c |
100 | sim-memopt.h | |
b9c8cd10 | 101 | sim-model.c |
b320601b DE |
102 | sim-model.h |
103 | sim-module.c | |
104 | sim-module.h | |
f5c7064a AC |
105 | sim-n-bits.h |
106 | sim-n-core.h | |
107 | sim-n-endian.h | |
4ede3a83 DE |
108 | sim-options.c |
109 | sim-options.h | |
b320601b DE |
110 | sim-profile.c |
111 | sim-profile.h | |
ba237406 AC |
112 | sim-reason.c |
113 | sim-resume.c | |
114 | sim-run.c | |
1ebc7e0e DE |
115 | sim-signal.c |
116 | sim-signal.h | |
ba237406 | 117 | sim-stop.c |
e9b2f579 | 118 | sim-trace.c |
3b609fd5 | 119 | sim-trace.h |
a1dc3945 | 120 | sim-types.h |
e77fd269 | 121 | sim-utils.c |
f4749781 | 122 | sim-utils.h |
5697f152 DE |
123 | sim-watch.c |
124 | sim-watch.h | |
f7abc1ca | 125 | syscall.c |
db7d7ff8 | 126 | tconfig.in |
7bf1bbbc SC |
127 | |
128 | Things-to-lose: | |
129 | ||
7bf1bbbc SC |
130 | Do-last: |
131 | ||
1294727e DE |
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 | ||
d8f53049 | 160 | am30_files="ChangeLog sim-module.c sim-base.h Make-common.in" |
6d133cc9 AC |
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 | ||
36de6f40 DE |
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 | ||
7bf1bbbc | 216 | # End of file. |