* Make-common.in (SCHEME,SCHEMEFLAGS): Delete.
[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
451a9c05
AC
68hw-handles.c
69hw-handles.h
70hw-instances.c
71hw-instances.h
48f83b1a 72hw-main.h
39e953a7
AC
73hw-ports.c
74hw-ports.h
75hw-properties.c
76hw-properties.h
77hw-tree.c
78hw-tree.h
db7d7ff8 79nltvals.def
c95d08a8 80nrun.c
7bf1bbbc
SC
81run.c
82run.1
ba237406 83sim-abort.c
332cb5d9 84sim-alu.h
ba237406 85sim-assert.h
e77fd269 86sim-base.h
d0d80f48 87sim-basics.h
332cb5d9
AC
88sim-bits.c
89sim-bits.h
b9d580a4
SG
90sim-break.c
91sim-break.h
710f55ce 92sim-config.c
d0d80f48 93sim-config.h
a1dc3945
AC
94sim-core.c
95sim-core.h
433a8eaf
DE
96sim-cpu.c
97sim-cpu.h
332cb5d9
AC
98sim-endian.c
99sim-endian.h
ba237406
AC
100sim-engine.c
101sim-engine.h
a1dc3945
AC
102sim-events.c
103sim-events.h
710f55ce
DE
104sim-fpu.c
105sim-fpu.h
fafce69a 106sim-hload.c
6dbaff8f 107sim-hrw.c
48f83b1a
AC
108sim-hw.c
109sim-hw.h
2b9cac47 110sim-info.c
d0d80f48 111sim-inline.c
332cb5d9 112sim-inline.h
a1dc3945
AC
113sim-io.c
114sim-io.h
3b609fd5 115sim-load.c
a34abff8
AC
116sim-memopt.c
117sim-memopt.h
b9c8cd10 118sim-model.c
b320601b
DE
119sim-model.h
120sim-module.c
121sim-module.h
f5c7064a
AC
122sim-n-bits.h
123sim-n-core.h
124sim-n-endian.h
4ede3a83
DE
125sim-options.c
126sim-options.h
b320601b
DE
127sim-profile.c
128sim-profile.h
ba237406
AC
129sim-reason.c
130sim-resume.c
131sim-run.c
1ebc7e0e
DE
132sim-signal.c
133sim-signal.h
ba237406 134sim-stop.c
e9b2f579 135sim-trace.c
3b609fd5 136sim-trace.h
a1dc3945 137sim-types.h
e77fd269 138sim-utils.c
f4749781 139sim-utils.h
5697f152
DE
140sim-watch.c
141sim-watch.h
f7abc1ca 142syscall.c
db7d7ff8 143tconfig.in
7bf1bbbc
SC
144
145Things-to-lose:
146
7bf1bbbc
SC
147Do-last:
148
1294727e
DE
149d30v_files="ChangeLog gennltvals.sh nltvals.def"
150if ( echo $* | grep keep\-d30v > /dev/null ) ; then
151 for i in $d30v_files ; do
152 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
153 if [ -n "${verbose}" ] ; then
154 echo Keeping d30v stuff in $i
155 fi
156 fi
157 done
158else
159 for i in $d30v_files ; do
160 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
161 if [ -n "${verbose}" ] ; then
162 echo Removing traces of \"d30v\" from $i...
163 fi
164 cp $i new
165 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
166 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
167 if [ -n "${verbose}" ] ; then
168 echo Caching $i in .Recover...
169 fi
170 mv $i .Recover
171 fi
172 mv new $i
173 fi
174 done
175fi
176
36de6f40
DE
177cygnus_files="ChangeLog Make-common.in"
178if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
179 for i in $cygnus_files ; do
180 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
181 if [ -n "${verbose}" ] ; then
182 echo Keeping cygnus stuff in $i
183 fi
184 fi
185 done
186else
187 for i in $cygnus_files ; do
188 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
189 if [ -n "${verbose}" ] ; then
190 echo Removing traces of \"cygnus\" from $i...
191 fi
192 cp $i new
193 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
194 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
195 if [ -n "${verbose}" ] ; then
196 echo Caching $i in .Recover...
197 fi
198 mv $i .Recover
199 fi
200 mv new $i
201 fi
202 done
203fi
204
7bf1bbbc 205# End of file.
This page took 0.118688 seconds and 4 git commands to generate.