* gxtool silence tweak
[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 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-defs.h
48 cgen-engine.h
49 cgen-mem.h
50 cgen-ops.h
51 cgen-run.c
52 cgen-scache.c
53 cgen-scache.h
54 cgen-sim.h
55 cgen-trace.c
56 cgen-trace.h
57 cgen-types.h
58 cgen-utils.c
59 config.in
60 configure.in
61 configure
62 dv-core.c
63 dv-glue.c
64 dv-pal.c
65 dv-sockser.c
66 dv-sockser.h
67 gdbinit.in
68 genmloop.sh
69 gennltvals.sh
70 gentmap.c
71 gentvals.sh
72 hw-alloc.c
73 hw-alloc.h
74 hw-base.c
75 hw-base.h
76 hw-device.c
77 hw-device.h
78 hw-events.c
79 hw-events.h
80 hw-handles.c
81 hw-handles.h
82 hw-instances.c
83 hw-instances.h
84 hw-main.h
85 hw-ports.c
86 hw-ports.h
87 hw-properties.c
88 hw-properties.h
89 hw-tree.c
90 hw-tree.h
91 nltvals.def
92 nrun.c
93 run.c
94 run.1
95 sim-abort.c
96 sim-alu.h
97 sim-arange.c
98 sim-arange.h
99 sim-assert.h
100 sim-base.h
101 sim-basics.h
102 sim-bits.c
103 sim-bits.h
104 sim-break.c
105 sim-break.h
106 sim-config.c
107 sim-config.h
108 sim-core.c
109 sim-core.h
110 sim-cpu.c
111 sim-cpu.h
112 sim-endian.c
113 sim-endian.h
114 sim-engine.c
115 sim-engine.h
116 sim-events.c
117 sim-events.h
118 sim-fpu.c
119 sim-fpu.h
120 sim-hload.c
121 sim-hrw.c
122 sim-hw.c
123 sim-hw.h
124 sim-info.c
125 sim-inline.c
126 sim-inline.h
127 sim-io.c
128 sim-io.h
129 sim-load.c
130 sim-memopt.c
131 sim-memopt.h
132 sim-model.c
133 sim-model.h
134 sim-module.c
135 sim-module.h
136 sim-n-bits.h
137 sim-n-core.h
138 sim-n-endian.h
139 sim-options.c
140 sim-options.h
141 sim-profile.c
142 sim-profile.h
143 sim-reason.c
144 sim-reg.c
145 sim-resume.c
146 sim-run.c
147 sim-signal.c
148 sim-signal.h
149 sim-stop.c
150 sim-trace.c
151 sim-trace.h
152 sim-types.h
153 sim-utils.c
154 sim-utils.h
155 sim-watch.c
156 sim-watch.h
157 syscall.c
158 tconfig.in
159
160 Things-to-lose:
161
162 Do-last:
163
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
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
220 # End of file.
This page took 0.035013 seconds and 4 git commands to generate.