Make hw-main.h the main header file for H/W devices. Like sim-main.h
[deliverable/binutils-gdb.git] / sim / common / .Sanitize
CommitLineData
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
16Do-first:
17
36de6f40
DE
18cygnus_files="cgen.sh"
19if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
20 keep_these_too="${cygnus_files} ${keep_these_too}"
21else
22 lose_these_too="${cygnus_files} ${lose_these_too}"
23fi
24
7bf1bbbc
SC
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
31Things-to-keep:
32
f025d903 33ChangeLog
db7d7ff8
DE
34Make-common.in
35Makefile.in
fc4198bb 36acconfig.h
db7d7ff8
DE
37aclocal.m4
38callback.c
f7abc1ca
DE
39cgen-mem.h
40cgen-ops.h
b9c8cd10 41cgen-scache.c
b9c8cd10
DE
42cgen-sim.h
43cgen-trace.c
44cgen-trace.h
45cgen-types.h
46cgen-utils.c
db7d7ff8
DE
47config.in
48configure.in
49configure
39e953a7
AC
50dv-core.c
51dv-glue.c
52dv-pal.c
84c6d152
DE
53dv-sockser.c
54dv-sockser.h
88d5f8e8 55gdbinit.in
b9c8cd10 56genmloop.sh
f7abc1ca 57gennltvals.sh
db7d7ff8
DE
58gentmap.c
59gentvals.sh
c14db36d
AC
60hw-alloc.c
61hw-alloc.h
39e953a7
AC
62hw-base.c
63hw-base.h
64hw-device.c
65hw-device.h
66hw-events.c
67hw-events.h
48f83b1a 68hw-main.h
39e953a7
AC
69hw-ports.c
70hw-ports.h
71hw-properties.c
72hw-properties.h
73hw-tree.c
74hw-tree.h
db7d7ff8 75nltvals.def
c95d08a8 76nrun.c
7bf1bbbc
SC
77run.c
78run.1
ba237406 79sim-abort.c
332cb5d9 80sim-alu.h
ba237406 81sim-assert.h
e77fd269 82sim-base.h
d0d80f48 83sim-basics.h
332cb5d9
AC
84sim-bits.c
85sim-bits.h
b9d580a4
SG
86sim-break.c
87sim-break.h
710f55ce 88sim-config.c
d0d80f48 89sim-config.h
a1dc3945
AC
90sim-core.c
91sim-core.h
433a8eaf
DE
92sim-cpu.c
93sim-cpu.h
332cb5d9
AC
94sim-endian.c
95sim-endian.h
ba237406
AC
96sim-engine.c
97sim-engine.h
a1dc3945
AC
98sim-events.c
99sim-events.h
710f55ce
DE
100sim-fpu.c
101sim-fpu.h
fafce69a 102sim-hload.c
6dbaff8f 103sim-hrw.c
48f83b1a
AC
104sim-hw.c
105sim-hw.h
2b9cac47 106sim-info.c
d0d80f48 107sim-inline.c
332cb5d9 108sim-inline.h
a1dc3945
AC
109sim-io.c
110sim-io.h
3b609fd5 111sim-load.c
a34abff8
AC
112sim-memopt.c
113sim-memopt.h
b9c8cd10 114sim-model.c
b320601b
DE
115sim-model.h
116sim-module.c
117sim-module.h
f5c7064a
AC
118sim-n-bits.h
119sim-n-core.h
120sim-n-endian.h
4ede3a83
DE
121sim-options.c
122sim-options.h
b320601b
DE
123sim-profile.c
124sim-profile.h
ba237406
AC
125sim-reason.c
126sim-resume.c
127sim-run.c
1ebc7e0e
DE
128sim-signal.c
129sim-signal.h
ba237406 130sim-stop.c
e9b2f579 131sim-trace.c
3b609fd5 132sim-trace.h
a1dc3945 133sim-types.h
e77fd269 134sim-utils.c
f4749781 135sim-utils.h
5697f152
DE
136sim-watch.c
137sim-watch.h
f7abc1ca 138syscall.c
db7d7ff8 139tconfig.in
7bf1bbbc
SC
140
141Things-to-lose:
142
7bf1bbbc
SC
143Do-last:
144
1294727e
DE
145d30v_files="ChangeLog gennltvals.sh nltvals.def"
146if ( echo $* | grep keep\-d30v > /dev/null ) ; then
147 for i in $d30v_files ; do
148 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
149 if [ -n "${verbose}" ] ; then
150 echo Keeping d30v stuff in $i
151 fi
152 fi
153 done
154else
155 for i in $d30v_files ; do
156 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
157 if [ -n "${verbose}" ] ; then
158 echo Removing traces of \"d30v\" from $i...
159 fi
160 cp $i new
161 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
162 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
163 if [ -n "${verbose}" ] ; then
164 echo Caching $i in .Recover...
165 fi
166 mv $i .Recover
167 fi
168 mv new $i
169 fi
170 done
171fi
172
36de6f40
DE
173cygnus_files="ChangeLog Make-common.in"
174if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
175 for i in $cygnus_files ; do
176 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
177 if [ -n "${verbose}" ] ; then
178 echo Keeping cygnus stuff in $i
179 fi
180 fi
181 done
182else
183 for i in $cygnus_files ; do
184 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
185 if [ -n "${verbose}" ] ; then
186 echo Removing traces of \"cygnus\" from $i...
187 fi
188 cp $i new
189 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
190 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
191 if [ -n "${verbose}" ] ; then
192 echo Caching $i in .Recover...
193 fi
194 mv $i .Recover
195 fi
196 mv new $i
197 fi
198 done
199fi
200
7bf1bbbc 201# End of file.
This page took 0.119367 seconds and 4 git commands to generate.