* Make-common.in (CGEN_INCLUDE_DEPS): Define.
[binutils-gdb.git] / sim / common / .Sanitize
1 # .Sanitize for devo/sim/common.
2
3 # Each directory to survive its way into a release will need a file
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
14 # done in this directory.
15
16 Do-first:
17
18 cygnus_files="cgen.sh"
19 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
20 keep_these_too="${cygnus_files} ${keep_these_too}"
21 else
22 lose_these_too="${cygnus_files} ${lose_these_too}"
23 fi
24
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
31 Things-to-keep:
32
33 ChangeLog
34 Make-common.in
35 Makefile.in
36 acconfig.h
37 aclocal.m4
38 callback.c
39 cgen-cpu.h
40 cgen-engine.h
41 cgen-mem.h
42 cgen-ops.h
43 cgen-run.c
44 cgen-scache.c
45 cgen-scache.h
46 cgen-sim.h
47 cgen-trace.c
48 cgen-trace.h
49 cgen-types.h
50 cgen-utils.c
51 config.in
52 configure.in
53 configure
54 dv-core.c
55 dv-glue.c
56 dv-pal.c
57 dv-sockser.c
58 dv-sockser.h
59 gdbinit.in
60 genmloop.sh
61 gennltvals.sh
62 gentmap.c
63 gentvals.sh
64 hw-alloc.c
65 hw-alloc.h
66 hw-base.c
67 hw-base.h
68 hw-device.c
69 hw-device.h
70 hw-events.c
71 hw-events.h
72 hw-handles.c
73 hw-handles.h
74 hw-instances.c
75 hw-instances.h
76 hw-main.h
77 hw-ports.c
78 hw-ports.h
79 hw-properties.c
80 hw-properties.h
81 hw-tree.c
82 hw-tree.h
83 nltvals.def
84 nrun.c
85 run.c
86 run.1
87 sim-abort.c
88 sim-alu.h
89 sim-assert.h
90 sim-base.h
91 sim-basics.h
92 sim-bits.c
93 sim-bits.h
94 sim-break.c
95 sim-break.h
96 sim-config.c
97 sim-config.h
98 sim-core.c
99 sim-core.h
100 sim-cpu.c
101 sim-cpu.h
102 sim-endian.c
103 sim-endian.h
104 sim-engine.c
105 sim-engine.h
106 sim-events.c
107 sim-events.h
108 sim-fpu.c
109 sim-fpu.h
110 sim-hload.c
111 sim-hrw.c
112 sim-hw.c
113 sim-hw.h
114 sim-info.c
115 sim-inline.c
116 sim-inline.h
117 sim-io.c
118 sim-io.h
119 sim-load.c
120 sim-memopt.c
121 sim-memopt.h
122 sim-model.c
123 sim-model.h
124 sim-module.c
125 sim-module.h
126 sim-n-bits.h
127 sim-n-core.h
128 sim-n-endian.h
129 sim-options.c
130 sim-options.h
131 sim-profile.c
132 sim-profile.h
133 sim-reason.c
134 sim-reg.c
135 sim-resume.c
136 sim-run.c
137 sim-signal.c
138 sim-signal.h
139 sim-stop.c
140 sim-trace.c
141 sim-trace.h
142 sim-types.h
143 sim-utils.c
144 sim-utils.h
145 sim-watch.c
146 sim-watch.h
147 syscall.c
148 tconfig.in
149
150 Things-to-lose:
151
152 Do-last:
153
154 cygnus_files="ChangeLog Make-common.in"
155 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
156 for i in $cygnus_files ; do
157 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
158 if [ -n "${verbose}" ] ; then
159 echo Keeping cygnus stuff in $i
160 fi
161 fi
162 done
163 else
164 for i in $cygnus_files ; do
165 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
166 if [ -n "${verbose}" ] ; then
167 echo Removing traces of \"cygnus\" from $i...
168 fi
169 cp $i new
170 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
171 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
172 if [ -n "${verbose}" ] ; then
173 echo Caching $i in .Recover...
174 fi
175 mv $i .Recover
176 fi
177 mv new $i
178 fi
179 done
180 fi
181
182 # End of file.