* Makefile.am: New file, based on old Makefile.in.
[deliverable/binutils-gdb.git] / gas / .Sanitize
1 # .Sanitize for devo/gas.
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 # 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
26 CONTRIBUTORS
27 COPYING
28 ChangeLog
29 ChangeLog.1
30 Makefile.am
31 Makefile.in
32 NEWS
33 README
34 README-vms
35 acconfig.h
36 acinclude.m4
37 aclocal.m4
38 app.c
39 as.c
40 as.h
41 atof-generic.c
42 bignum-copy.c
43 bignum.h
44 bit_fix.h
45 cgen.c
46 cond.c
47 config
48 config.in
49 config-gas.com
50 configure
51 configure.bat
52 configure.in
53 debug.c
54 dep-in.sed
55 depend.c
56 doc
57 ecoff.c
58 ecoff.h
59 emul-target.h
60 emul.h
61 expr.c
62 expr.h
63 flonum-copy.c
64 flonum-konst.c
65 flonum-mult.c
66 flonum.h
67 frags.c
68 frags.h
69 gasp.c
70 gdbinit.in
71 hash.c
72 hash.h
73 input-file.c
74 input-file.h
75 input-scrub.c
76 link.cmd
77 listing.c
78 listing.h
79 literal.c
80 itbl-lex.l
81 itbl-ops.c
82 itbl-ops.h
83 itbl-parse.y
84 mac-as.r
85 macro.c
86 macro.h
87 makefile.vms
88 messages.c
89 mpw-config.in
90 mpw-make.sed
91 obj.h
92 output-file.c
93 output-file.h
94 read.c
95 read.h
96 sb.c
97 sb.h
98 stabs.c
99 stamp-h.in
100 struc-symbol.h
101 subsegs.c
102 subsegs.h
103 symbols.c
104 symbols.h
105 tc.h
106 testsuite
107 vmsconf.sh
108 write.c
109 write.h
110
111 Things-to-lose:
112
113 Do-last:
114
115 arc_files="ChangeLog configure.in configure Makefile.in ChangeLog.1"
116 if ( echo $* | grep keep\-arc > /dev/null ) ; then
117 for i in $arc_files ; do
118 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
119 if [ -n "${verbose}" ] ; then
120 echo Keeping arc stuff in $i
121 fi
122 fi
123 done
124 else
125 for i in $arc_files ; do
126 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
127 if [ -n "${verbose}" ] ; then
128 echo Removing traces of \"arc\" from $i...
129 fi
130 cp $i new
131 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/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
143 if ( echo $* | grep keep\-gm > /dev/null ) ; then
144 for i in * ; do
145 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
146 if [ -n "${verbose}" ] ; then
147 echo Keeping gm stuff in $i
148 fi
149 fi
150 done
151 else
152 for i in * ; do
153 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
154 if [ -n "${verbose}" ] ; then
155 echo Removing traces of \"gm\" from $i...
156 fi
157 cp $i new
158 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
159 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
160 if [ -n "${verbose}" ] ; then
161 echo Caching $i in .Recover...
162 fi
163 mv $i .Recover
164 fi
165 mv new $i
166 fi
167 done
168 fi
169
170
171 v850_files="ChangeLog configure.in configure Makefile.in write.c"
172 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
173 for i in $v850_files ; do
174 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
175 if [ -n "${verbose}" ] ; then
176 echo Keeping v850 stuff in $i
177 fi
178 fi
179 done
180 else
181 for i in $v850_files ; do
182 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
183 if [ -n "${verbose}" ] ; then
184 echo Removing traces of \"v850\" from $i...
185 fi
186 cp $i new
187 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
188 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
189 if [ -n "${verbose}" ] ; then
190 echo Caching $i in .Recover...
191 fi
192 mv $i .Recover
193 fi
194 mv new $i
195 fi
196 done
197 fi
198
199 r5900_files="ChangeLog"
200 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
201 for i in $r5900_files ; do
202 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
203 if [ -n "${verbose}" ] ; then
204 echo Keeping r5900 stuff in $i
205 fi
206 fi
207 done
208 else
209 for i in $r5900_files ; do
210 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
211 if [ -n "${verbose}" ] ; then
212 echo Removing traces of \"r5900\" from $i...
213 fi
214 cp $i new
215 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
216 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
217 if [ -n "${verbose}" ] ; then
218 echo Caching $i in .Recover...
219 fi
220 mv $i .Recover
221 fi
222 mv new $i
223 fi
224 done
225 fi
226
227 tic80_files="ChangeLog configure.in configure"
228 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
229 for i in $tic80_files ; do
230 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
231 if [ -n "${verbose}" ] ; then
232 echo Keeping tic80 stuff in $i
233 fi
234 fi
235 done
236 else
237 for i in $tic80_files ; do
238 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
239 if [ -n "${verbose}" ] ; then
240 echo Removing traces of \"tic80\" from $i...
241 fi
242 cp $i new
243 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
244 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
245 if [ -n "${verbose}" ] ; then
246 echo Caching $i in .Recover...
247 fi
248 mv $i .Recover
249 fi
250 mv new $i
251 fi
252 done
253 fi
254
255 d30v_files="ChangeLog configure configure.in"
256 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
257 for i in $d30v_files ; do
258 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
259 if [ -n "${verbose}" ] ; then
260 echo Keeping d30v stuff in $i
261 fi
262 fi
263 done
264 else
265 for i in $d30v_files ; do
266 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
267 if [ -n "${verbose}" ] ; then
268 echo Removing traces of \"d30v\" from $i...
269 fi
270 cp $i new
271 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
272 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
273 if [ -n "${verbose}" ] ; then
274 echo Caching $i in .Recover...
275 fi
276 mv $i .Recover
277 fi
278 mv new $i
279 fi
280 done
281 fi
282
283 for i in * ; do
284 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
285 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
286 fi
287 done
288
289 #
290 # End of file.
This page took 0.035918 seconds and 4 git commands to generate.