]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gas/.Sanitize
* itbl-test.c: New file. Stand-alone assembler and dissassembler for
[thirdparty/binutils-gdb.git] / gas / .Sanitize
CommitLineData
a6148eeb 1# .Sanitize for devo/gas.
d4d5412d 2
4f5d16c7 3# Each directory to survive its way into a release will need a file
d4d5412d
RP
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
a6148eeb 14# done in this directory.
d4d5412d
RP
15
16Do-first:
17
d4d5412d
RP
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
24Things-to-keep:
25
eee109cd 26CONTRIBUTORS
d4d5412d
RP
27COPYING
28ChangeLog
cdc49cba 29ChangeLog.1
d4d5412d 30Makefile.in
eee109cd 31NEWS
d4d5412d 32README
eee109cd 33README-vms
6e71a03b
KR
34acconfig.h
35aclocal.m4
d4d5412d
RP
36app.c
37as.c
38as.h
39atof-generic.c
d4d5412d
RP
40bignum-copy.c
41bignum.h
eee109cd 42bit_fix.h
d4d5412d 43cond.c
f649d525 44conf-a-gas.com
6e71a03b 45conf.in
d4d5412d 46config
003acb2d 47config-gas.com
6e71a03b 48configure
c593cf41 49configure.bat
d4d5412d
RP
50configure.in
51debug.c
a262a1b2 52doc
9faec336
ILT
53ecoff.c
54ecoff.h
511cd41c
KR
55emul-target.h
56emul.h
d4d5412d
RP
57expr.c
58expr.h
d4d5412d 59flonum-copy.c
eee109cd 60flonum-konst.c
d4d5412d
RP
61flonum-mult.c
62flonum.h
63frags.c
64frags.h
a5a4b5ac 65gasp.c
aa4f6c56 66gdbinit.in
d4d5412d
RP
67hash.c
68hash.h
d4d5412d
RP
69input-file.c
70input-file.h
71input-scrub.c
920babce 72link.cmd
d7d28d22
RP
73listing.c
74listing.h
2d29d89d 75literal.c
4c72b6a7 76mac-as.r
7e047ac2
ILT
77macro.c
78macro.h
f649d525 79makefile.vms
d4d5412d 80messages.c
0fb26eac 81mpw-config.in
4c72b6a7 82mpw-make.sed
d4d5412d 83obj.h
d4d5412d
RP
84output-file.c
85output-file.h
86read.c
87read.h
7e047ac2
ILT
88sb.c
89sb.h
29249b42 90stabs.c
d4d5412d
RP
91struc-symbol.h
92subsegs.c
93subsegs.h
94symbols.c
95symbols.h
96tc.h
f70a4714 97testsuite
be2fc7ec 98vmsconf.sh
d4d5412d
RP
99write.c
100write.h
d4d5412d 101
87756e15
RP
102Things-to-lose:
103
d4d5412d
RP
104Do-last:
105
cdc49cba 106arc_files="ChangeLog configure.in configure Makefile.in ChangeLog.1"
6ea93cc9
DE
107if ( echo $* | grep keep\-arc > /dev/null ) ; then
108 for i in $arc_files ; do
109 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
110 if [ -n "${verbose}" ] ; then
111 echo Keeping arc stuff in $i
112 fi
113 fi
114 done
115else
116 for i in $arc_files ; do
117 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
118 if [ -n "${verbose}" ] ; then
119 echo Removing traces of \"arc\" from $i...
120 fi
121 cp $i new
122 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
123 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
124 if [ -n "${verbose}" ] ; then
125 echo Caching $i in .Recover...
126 fi
127 mv $i .Recover
128 fi
129 mv new $i
130 fi
131 done
132fi
133
204c73d8
SS
134if ( echo $* | grep keep\-gm > /dev/null ) ; then
135 for i in * ; do
136 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
137 if [ -n "${verbose}" ] ; then
138 echo Keeping gm stuff in $i
139 fi
140 fi
141 done
142else
143 for i in * ; do
144 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
145 if [ -n "${verbose}" ] ; then
146 echo Removing traces of \"gm\" from $i...
147 fi
148 cp $i new
149 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
150 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
151 if [ -n "${verbose}" ] ; then
152 echo Caching $i in .Recover...
153 fi
154 mv $i .Recover
155 fi
156 mv new $i
157 fi
158 done
159fi
160
3d0afe12 161
7be9a312
MH
162d10v_files="ChangeLog configure.in configure Makefile.in"
163if ( echo $* | grep keep\-d10v > /dev/null ) ; then
164 for i in $d10v_files ; do
165 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
166 if [ -n "${verbose}" ] ; then
167 echo Keeping d10v stuff in $i
168 fi
169 fi
170 done
171else
172 for i in $d10v_files ; do
173 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
174 if [ -n "${verbose}" ] ; then
175 echo Removing traces of \"d10v\" from $i...
176 fi
177 cp $i new
178 sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new
179 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
180 if [ -n "${verbose}" ] ; then
181 echo Caching $i in .Recover...
182 fi
183 mv $i .Recover
184 fi
185 mv new $i
186 fi
187 done
188fi
189
edc4ed85 190v850_files="ChangeLog configure.in configure Makefile.in write.c"
c6aa56bc
C
191if ( echo $* | grep keep\-v850 > /dev/null ) ; then
192 for i in $v850_files ; do
193 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
194 if [ -n "${verbose}" ] ; then
195 echo Keeping v850 stuff in $i
196 fi
197 fi
198 done
199else
200 for i in $v850_files ; do
201 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
202 if [ -n "${verbose}" ] ; then
203 echo Removing traces of \"v850\" from $i...
204 fi
205 cp $i new
206 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
207 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
208 if [ -n "${verbose}" ] ; then
209 echo Caching $i in .Recover...
210 fi
211 mv $i .Recover
212 fi
213 mv new $i
214 fi
215 done
216fi
217
64556643
FF
218tic80_files="ChangeLog configure.in configure"
219if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
220 for i in $tic80_files ; do
221 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
222 if [ -n "${verbose}" ] ; then
223 echo Keeping tic80 stuff in $i
224 fi
225 fi
226 done
227else
228 for i in $tic80_files ; do
229 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
230 if [ -n "${verbose}" ] ; then
231 echo Removing traces of \"tic80\" from $i...
232 fi
233 cp $i new
234 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
235 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
236 if [ -n "${verbose}" ] ; then
237 echo Caching $i in .Recover...
238 fi
239 mv $i .Recover
240 fi
241 mv new $i
242 fi
243 done
244fi
245
5c680afd
MT
246for i in * ; do
247 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
248 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
249 fi
250done
251
d4d5412d 252#
d4d5412d 253# End of file.