massive sanitization fixes
[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
36aclocal.m4
37callback.c
f7abc1ca
DE
38cgen-mem.h
39cgen-ops.h
b9c8cd10 40cgen-scache.c
b9c8cd10
DE
41cgen-sim.h
42cgen-trace.c
43cgen-trace.h
44cgen-types.h
45cgen-utils.c
db7d7ff8
DE
46config.in
47configure.in
48configure
88d5f8e8 49gdbinit.in
b9c8cd10 50genmloop.sh
f7abc1ca 51gennltvals.sh
db7d7ff8
DE
52gentmap.c
53gentvals.sh
54nltvals.def
c95d08a8 55nrun.c
7bf1bbbc
SC
56run.c
57run.1
ba237406 58sim-abort.c
332cb5d9 59sim-alu.h
ba237406 60sim-assert.h
e77fd269 61sim-base.h
d0d80f48 62sim-basics.h
332cb5d9
AC
63sim-bits.c
64sim-bits.h
b9d580a4
SG
65sim-break.c
66sim-break.h
710f55ce 67sim-config.c
d0d80f48 68sim-config.h
a1dc3945
AC
69sim-core.c
70sim-core.h
332cb5d9
AC
71sim-endian.c
72sim-endian.h
ba237406
AC
73sim-engine.c
74sim-engine.h
a1dc3945
AC
75sim-events.c
76sim-events.h
710f55ce
DE
77sim-fpu.c
78sim-fpu.h
fafce69a 79sim-hload.c
6dbaff8f 80sim-hrw.c
2b9cac47 81sim-info.c
d0d80f48 82sim-inline.c
332cb5d9 83sim-inline.h
a1dc3945
AC
84sim-io.c
85sim-io.h
3b609fd5 86sim-load.c
a34abff8
AC
87sim-memopt.c
88sim-memopt.h
b9c8cd10 89sim-model.c
b320601b
DE
90sim-model.h
91sim-module.c
92sim-module.h
f5c7064a
AC
93sim-n-bits.h
94sim-n-core.h
95sim-n-endian.h
4ede3a83
DE
96sim-options.c
97sim-options.h
b320601b
DE
98sim-profile.c
99sim-profile.h
ba237406
AC
100sim-reason.c
101sim-resume.c
102sim-run.c
1ebc7e0e
DE
103sim-signal.c
104sim-signal.h
ba237406 105sim-stop.c
e9b2f579 106sim-trace.c
3b609fd5 107sim-trace.h
a1dc3945 108sim-types.h
e77fd269 109sim-utils.c
f4749781 110sim-utils.h
5697f152
DE
111sim-watch.c
112sim-watch.h
f7abc1ca 113syscall.c
db7d7ff8 114tconfig.in
7bf1bbbc
SC
115
116Things-to-lose:
117
118
119Do-last:
120
1294727e
DE
121d30v_files="ChangeLog gennltvals.sh nltvals.def"
122if ( echo $* | grep keep\-d30v > /dev/null ) ; then
123 for i in $d30v_files ; do
124 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
125 if [ -n "${verbose}" ] ; then
126 echo Keeping d30v stuff in $i
127 fi
128 fi
129 done
130else
131 for i in $d30v_files ; do
132 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
133 if [ -n "${verbose}" ] ; then
134 echo Removing traces of \"d30v\" from $i...
135 fi
136 cp $i new
137 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
138 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
139 if [ -n "${verbose}" ] ; then
140 echo Caching $i in .Recover...
141 fi
142 mv $i .Recover
143 fi
144 mv new $i
145 fi
146 done
147fi
148
36de6f40
DE
149cygnus_files="ChangeLog Make-common.in"
150if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
151 for i in $cygnus_files ; do
152 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
153 if [ -n "${verbose}" ] ; then
154 echo Keeping cygnus stuff in $i
155 fi
156 fi
157 done
158else
159 for i in $cygnus_files ; do
160 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
161 if [ -n "${verbose}" ] ; then
162 echo Removing traces of \"cygnus\" from $i...
163 fi
164 cp $i new
165 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/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
7bf1bbbc 177# End of file.
This page took 0.105364 seconds and 4 git commands to generate.