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