]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/common/.Sanitize
Add files hw-alloc.[hc] (mising from last CI)
[thirdparty/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 # All files listed between the "Things-to-keep:" line and the
26 # "Files-to-sed:" line will be kept. All other files will be removed.
27 # Directories listed in this section will have their own Sanitize
28 # called. Directories not listed will be removed in their entirety
29 # with rm -rf.
30
31 Things-to-keep:
32
33 ChangeLog
34 Make-common.in
35 Makefile.in
36 acconfig.h
37 aclocal.m4
38 callback.c
39 cgen-mem.h
40 cgen-ops.h
41 cgen-scache.c
42 cgen-sim.h
43 cgen-trace.c
44 cgen-trace.h
45 cgen-types.h
46 cgen-utils.c
47 config.in
48 configure.in
49 configure
50 dv-core.c
51 dv-glue.c
52 dv-pal.c
53 dv-sockser.c
54 dv-sockser.h
55 gdbinit.in
56 genmloop.sh
57 gennltvals.sh
58 gentmap.c
59 gentvals.sh
60 hw-alloc.c
61 hw-alloc.h
62 hw-base.c
63 hw-base.h
64 hw-device.c
65 hw-device.h
66 hw-events.c
67 hw-events.h
68 hw-ports.c
69 hw-ports.h
70 hw-properties.c
71 hw-properties.h
72 hw-tree.c
73 hw-tree.h
74 nltvals.def
75 nrun.c
76 run.c
77 run.1
78 sim-abort.c
79 sim-alu.h
80 sim-assert.h
81 sim-base.h
82 sim-basics.h
83 sim-bits.c
84 sim-bits.h
85 sim-break.c
86 sim-break.h
87 sim-config.c
88 sim-config.h
89 sim-core.c
90 sim-core.h
91 sim-cpu.c
92 sim-cpu.h
93 sim-endian.c
94 sim-endian.h
95 sim-engine.c
96 sim-engine.h
97 sim-events.c
98 sim-events.h
99 sim-fpu.c
100 sim-fpu.h
101 sim-hload.c
102 sim-hrw.c
103 sim-info.c
104 sim-inline.c
105 sim-inline.h
106 sim-io.c
107 sim-io.h
108 sim-load.c
109 sim-memopt.c
110 sim-memopt.h
111 sim-model.c
112 sim-model.h
113 sim-module.c
114 sim-module.h
115 sim-n-bits.h
116 sim-n-core.h
117 sim-n-endian.h
118 sim-options.c
119 sim-options.h
120 sim-profile.c
121 sim-profile.h
122 sim-reason.c
123 sim-resume.c
124 sim-run.c
125 sim-signal.c
126 sim-signal.h
127 sim-stop.c
128 sim-trace.c
129 sim-trace.h
130 sim-types.h
131 sim-utils.c
132 sim-utils.h
133 sim-watch.c
134 sim-watch.h
135 syscall.c
136 tconfig.in
137
138 Things-to-lose:
139
140 Do-last:
141
142 d30v_files="ChangeLog gennltvals.sh nltvals.def"
143 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
144 for i in $d30v_files ; do
145 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
146 if [ -n "${verbose}" ] ; then
147 echo Keeping d30v stuff in $i
148 fi
149 fi
150 done
151 else
152 for i in $d30v_files ; do
153 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
154 if [ -n "${verbose}" ] ; then
155 echo Removing traces of \"d30v\" from $i...
156 fi
157 cp $i new
158 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
159 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
160 if [ -n "${verbose}" ] ; then
161 echo Caching $i in .Recover...
162 fi
163 mv $i .Recover
164 fi
165 mv new $i
166 fi
167 done
168 fi
169
170 cygnus_files="ChangeLog Make-common.in"
171 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
172 for i in $cygnus_files ; do
173 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
174 if [ -n "${verbose}" ] ; then
175 echo Keeping cygnus stuff in $i
176 fi
177 fi
178 done
179 else
180 for i in $cygnus_files ; do
181 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
182 if [ -n "${verbose}" ] ; then
183 echo Removing traces of \"cygnus\" from $i...
184 fi
185 cp $i new
186 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
187 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
188 if [ -n "${verbose}" ] ; then
189 echo Caching $i in .Recover...
190 fi
191 mv $i .Recover
192 fi
193 mv new $i
194 fi
195 done
196 fi
197
198 # End of file.