Commit | Line | Data |
---|---|---|
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 | |
16 | Do-first: | |
17 | ||
18 | # All files listed between the "Things-to-keep:" line and the | |
19 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
20 | # Directories listed in this section will have their own Sanitize | |
21 | # called. Directories not listed will be removed in their entirety | |
22 | # with rm -rf. | |
23 | ||
24 | Things-to-keep: | |
25 | ||
f025d903 | 26 | ChangeLog |
db7d7ff8 DE |
27 | Make-common.in |
28 | Makefile.in | |
29 | aclocal.m4 | |
30 | callback.c | |
189e2694 | 31 | cgen.sh |
f7abc1ca DE |
32 | cgen-mem.h |
33 | cgen-ops.h | |
b9c8cd10 | 34 | cgen-scache.c |
b9c8cd10 DE |
35 | cgen-sim.h |
36 | cgen-trace.c | |
37 | cgen-trace.h | |
38 | cgen-types.h | |
39 | cgen-utils.c | |
db7d7ff8 DE |
40 | config.in |
41 | configure.in | |
42 | configure | |
88d5f8e8 | 43 | gdbinit.in |
b9c8cd10 | 44 | genmloop.sh |
f7abc1ca | 45 | gennltvals.sh |
db7d7ff8 DE |
46 | gentmap.c |
47 | gentvals.sh | |
48 | nltvals.def | |
c95d08a8 | 49 | nrun.c |
7bf1bbbc SC |
50 | run.c |
51 | run.1 | |
ba237406 | 52 | sim-abort.c |
332cb5d9 | 53 | sim-alu.h |
ba237406 | 54 | sim-assert.h |
e77fd269 | 55 | sim-base.h |
d0d80f48 | 56 | sim-basics.h |
332cb5d9 AC |
57 | sim-bits.c |
58 | sim-bits.h | |
b9d580a4 SG |
59 | sim-break.c |
60 | sim-break.h | |
710f55ce | 61 | sim-config.c |
d0d80f48 | 62 | sim-config.h |
a1dc3945 AC |
63 | sim-core.c |
64 | sim-core.h | |
332cb5d9 AC |
65 | sim-endian.c |
66 | sim-endian.h | |
ba237406 AC |
67 | sim-engine.c |
68 | sim-engine.h | |
a1dc3945 AC |
69 | sim-events.c |
70 | sim-events.h | |
710f55ce DE |
71 | sim-fpu.c |
72 | sim-fpu.h | |
fafce69a | 73 | sim-hload.c |
6dbaff8f | 74 | sim-hrw.c |
d0d80f48 | 75 | sim-inline.c |
332cb5d9 | 76 | sim-inline.h |
a1dc3945 AC |
77 | sim-io.c |
78 | sim-io.h | |
3b609fd5 | 79 | sim-load.c |
a34abff8 AC |
80 | sim-memopt.c |
81 | sim-memopt.h | |
b9c8cd10 | 82 | sim-model.c |
b320601b DE |
83 | sim-model.h |
84 | sim-module.c | |
85 | sim-module.h | |
f5c7064a AC |
86 | sim-n-bits.h |
87 | sim-n-core.h | |
88 | sim-n-endian.h | |
4ede3a83 DE |
89 | sim-options.c |
90 | sim-options.h | |
b320601b DE |
91 | sim-profile.c |
92 | sim-profile.h | |
ba237406 AC |
93 | sim-reason.c |
94 | sim-resume.c | |
95 | sim-run.c | |
1ebc7e0e DE |
96 | sim-signal.c |
97 | sim-signal.h | |
ba237406 | 98 | sim-stop.c |
e9b2f579 | 99 | sim-trace.c |
3b609fd5 | 100 | sim-trace.h |
a1dc3945 | 101 | sim-types.h |
e77fd269 | 102 | sim-utils.c |
f4749781 | 103 | sim-utils.h |
5697f152 DE |
104 | sim-watch.c |
105 | sim-watch.h | |
603ece73 | 106 | sim-xcat.h |
f7abc1ca | 107 | syscall.c |
db7d7ff8 | 108 | tconfig.in |
7bf1bbbc SC |
109 | |
110 | Things-to-lose: | |
111 | ||
112 | ||
113 | Do-last: | |
114 | ||
1294727e DE |
115 | d30v_files="ChangeLog gennltvals.sh nltvals.def" |
116 | if ( echo $* | grep keep\-d30v > /dev/null ) ; then | |
117 | for i in $d30v_files ; do | |
118 | if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then | |
119 | if [ -n "${verbose}" ] ; then | |
120 | echo Keeping d30v stuff in $i | |
121 | fi | |
122 | fi | |
123 | done | |
124 | else | |
125 | for i in $d30v_files ; do | |
126 | if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then | |
127 | if [ -n "${verbose}" ] ; then | |
128 | echo Removing traces of \"d30v\" from $i... | |
129 | fi | |
130 | cp $i new | |
131 | sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new | |
132 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
133 | if [ -n "${verbose}" ] ; then | |
134 | echo Caching $i in .Recover... | |
135 | fi | |
136 | mv $i .Recover | |
137 | fi | |
138 | mv new $i | |
139 | fi | |
140 | done | |
141 | fi | |
142 | ||
7bf1bbbc | 143 | # End of file. |