new .Sanitize files
[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
d0d80f48 81sim-inline.c
332cb5d9 82sim-inline.h
a1dc3945
AC
83sim-io.c
84sim-io.h
3b609fd5 85sim-load.c
a34abff8
AC
86sim-memopt.c
87sim-memopt.h
b9c8cd10 88sim-model.c
b320601b
DE
89sim-model.h
90sim-module.c
91sim-module.h
f5c7064a
AC
92sim-n-bits.h
93sim-n-core.h
94sim-n-endian.h
4ede3a83
DE
95sim-options.c
96sim-options.h
b320601b
DE
97sim-profile.c
98sim-profile.h
ba237406
AC
99sim-reason.c
100sim-resume.c
101sim-run.c
1ebc7e0e
DE
102sim-signal.c
103sim-signal.h
ba237406 104sim-stop.c
e9b2f579 105sim-trace.c
3b609fd5 106sim-trace.h
a1dc3945 107sim-types.h
e77fd269 108sim-utils.c
f4749781 109sim-utils.h
5697f152
DE
110sim-watch.c
111sim-watch.h
f7abc1ca 112syscall.c
db7d7ff8 113tconfig.in
7bf1bbbc
SC
114
115Things-to-lose:
116
117
118Do-last:
119
1294727e
DE
120d30v_files="ChangeLog gennltvals.sh nltvals.def"
121if ( echo $* | grep keep\-d30v > /dev/null ) ; then
122 for i in $d30v_files ; do
123 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
124 if [ -n "${verbose}" ] ; then
125 echo Keeping d30v stuff in $i
126 fi
127 fi
128 done
129else
130 for i in $d30v_files ; do
131 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
132 if [ -n "${verbose}" ] ; then
133 echo Removing traces of \"d30v\" from $i...
134 fi
135 cp $i new
136 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
137 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
138 if [ -n "${verbose}" ] ; then
139 echo Caching $i in .Recover...
140 fi
141 mv $i .Recover
142 fi
143 mv new $i
144 fi
145 done
146fi
147
36de6f40
DE
148cygnus_files="ChangeLog Make-common.in"
149if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
150 for i in $cygnus_files ; do
151 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
152 if [ -n "${verbose}" ] ; then
153 echo Keeping cygnus stuff in $i
154 fi
155 fi
156 done
157else
158 for i in $cygnus_files ; do
159 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
160 if [ -n "${verbose}" ] ; then
161 echo Removing traces of \"cygnus\" from $i...
162 fi
163 cp $i new
164 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
165 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
166 if [ -n "${verbose}" ] ; then
167 echo Caching $i in .Recover...
168 fi
169 mv $i .Recover
170 fi
171 mv new $i
172 fi
173 done
174fi
175
7bf1bbbc 176# End of file.
This page took 0.101056 seconds and 4 git commands to generate.