This commit was generated by cvs2svn to track changes on a CVS vendor
[deliverable/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 aclocal.m4
37 callback.c
38 cgen-mem.h
39 cgen-ops.h
40 cgen-scache.c
41 cgen-sim.h
42 cgen-trace.c
43 cgen-trace.h
44 cgen-types.h
45 cgen-utils.c
46 config.in
47 configure.in
48 configure
49 dv-sockser.c
50 dv-sockser.h
51 gdbinit.in
52 genmloop.sh
53 gennltvals.sh
54 gentmap.c
55 gentvals.sh
56 nltvals.def
57 nrun.c
58 run.c
59 run.1
60 sim-abort.c
61 sim-alu.h
62 sim-assert.h
63 sim-base.h
64 sim-basics.h
65 sim-bits.c
66 sim-bits.h
67 sim-break.c
68 sim-break.h
69 sim-config.c
70 sim-config.h
71 sim-core.c
72 sim-core.h
73 sim-endian.c
74 sim-endian.h
75 sim-engine.c
76 sim-engine.h
77 sim-events.c
78 sim-events.h
79 sim-fpu.c
80 sim-fpu.h
81 sim-hload.c
82 sim-hrw.c
83 sim-info.c
84 sim-inline.c
85 sim-inline.h
86 sim-io.c
87 sim-io.h
88 sim-load.c
89 sim-memopt.c
90 sim-memopt.h
91 sim-model.c
92 sim-model.h
93 sim-module.c
94 sim-module.h
95 sim-n-bits.h
96 sim-n-core.h
97 sim-n-endian.h
98 sim-options.c
99 sim-options.h
100 sim-profile.c
101 sim-profile.h
102 sim-reason.c
103 sim-resume.c
104 sim-run.c
105 sim-signal.c
106 sim-signal.h
107 sim-stop.c
108 sim-trace.c
109 sim-trace.h
110 sim-types.h
111 sim-utils.c
112 sim-utils.h
113 sim-watch.c
114 sim-watch.h
115 syscall.c
116 tconfig.in
117
118 Things-to-lose:
119
120 dv-core.c
121 dv-pal.c
122 hw-base.c
123 hw-base.h
124 hw-device.c
125 hw-device.h
126 hw-ports.c
127 hw-ports.h
128 hw-properties.c
129 hw-properties.h
130 hw-tree.c
131 hw-tree.h
132
133 Do-last:
134
135 d30v_files="ChangeLog gennltvals.sh nltvals.def"
136 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
137 for i in $d30v_files ; do
138 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
139 if [ -n "${verbose}" ] ; then
140 echo Keeping d30v stuff in $i
141 fi
142 fi
143 done
144 else
145 for i in $d30v_files ; do
146 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
147 if [ -n "${verbose}" ] ; then
148 echo Removing traces of \"d30v\" from $i...
149 fi
150 cp $i new
151 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
152 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
153 if [ -n "${verbose}" ] ; then
154 echo Caching $i in .Recover...
155 fi
156 mv $i .Recover
157 fi
158 mv new $i
159 fi
160 done
161 fi
162
163 cygnus_files="ChangeLog Make-common.in"
164 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
165 for i in $cygnus_files ; do
166 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
167 if [ -n "${verbose}" ] ; then
168 echo Keeping cygnus stuff in $i
169 fi
170 fi
171 done
172 else
173 for i in $cygnus_files ; do
174 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
175 if [ -n "${verbose}" ] ; then
176 echo Removing traces of \"cygnus\" from $i...
177 fi
178 cp $i new
179 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
180 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
181 if [ -n "${verbose}" ] ; then
182 echo Caching $i in .Recover...
183 fi
184 mv $i .Recover
185 fi
186 mv new $i
187 fi
188 done
189 fi
190
191 # End of file.
This page took 0.03397 seconds and 5 git commands to generate.