* config/tc-h8300.c (do_a_fix_imm): Rename last argument to
[deliverable/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
RP
32NOTES
33NOTES.config
34README
920babce 35README-quirks
eee109cd 36README-vms
d4d5412d
RP
37README.coff
38README.rich
6e71a03b
KR
39acconfig.h
40aclocal.m4
d4d5412d
RP
41app.c
42as.c
43as.h
44atof-generic.c
d4d5412d
RP
45bignum-copy.c
46bignum.h
eee109cd 47bit_fix.h
d4d5412d 48cond.c
6e71a03b 49conf.in
d4d5412d 50config
003acb2d 51config-gas.com
6e71a03b 52configure
c593cf41 53configure.bat
d4d5412d
RP
54configure.in
55debug.c
a262a1b2 56doc
9faec336
ILT
57ecoff.c
58ecoff.h
511cd41c
KR
59emul-target.h
60emul.h
d4d5412d
RP
61expr.c
62expr.h
d4d5412d 63flonum-copy.c
eee109cd 64flonum-konst.c
d4d5412d
RP
65flonum-mult.c
66flonum.h
67frags.c
68frags.h
a5a4b5ac 69gasp.c
aa4f6c56 70gdbinit.in
d4d5412d
RP
71hash.c
72hash.h
d4d5412d
RP
73input-file.c
74input-file.h
75input-scrub.c
920babce 76link.cmd
d7d28d22
RP
77listing.c
78listing.h
2d29d89d 79literal.c
4c72b6a7 80mac-as.r
7e047ac2
ILT
81macro.c
82macro.h
d4d5412d 83messages.c
0fb26eac 84mpw-config.in
4c72b6a7 85mpw-make.sed
d4d5412d 86obj.h
d4d5412d
RP
87output-file.c
88output-file.h
89read.c
90read.h
7e047ac2
ILT
91sb.c
92sb.h
29249b42 93stabs.c
d4d5412d
RP
94struc-symbol.h
95subsegs.c
96subsegs.h
97symbols.c
98symbols.h
99tc.h
f70a4714 100testsuite
be2fc7ec 101vmsconf.sh
d4d5412d
RP
102write.c
103write.h
104xmalloc.c
d4d5412d 105
87756e15
RP
106Things-to-lose:
107
d4d5412d
RP
108Do-last:
109
46618ae6 110rce_files="configure.in configure ChangeLog Makefile.in ChangeLog.1"
9f554efd 111
03c4ce2f
MT
112if ( echo $* | grep keep\-rce > /dev/null ) ; then
113 for i in $rce_files ; do
114 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
5c680afd 115 if [ -n "${verbose}" ] ; then
03c4ce2f 116 echo Keeping rce stuff in $i
5c680afd
MT
117 fi
118 fi
119 done
120else
03c4ce2f
MT
121 for i in $rce_files ; do
122 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
5c680afd 123 if [ -n "${verbose}" ] ; then
03c4ce2f 124 echo Removing traces of \"rce\" from $i...
5c680afd
MT
125 fi
126 cp $i new
03c4ce2f 127 sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new
5c680afd
MT
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
137fi
138
cdc49cba 139arc_files="ChangeLog configure.in configure Makefile.in ChangeLog.1"
6ea93cc9
DE
140if ( echo $* | grep keep\-arc > /dev/null ) ; then
141 for i in $arc_files ; do
142 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
143 if [ -n "${verbose}" ] ; then
144 echo Keeping arc stuff in $i
145 fi
146 fi
147 done
148else
149 for i in $arc_files ; do
150 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
151 if [ -n "${verbose}" ] ; then
152 echo Removing traces of \"arc\" from $i...
153 fi
154 cp $i new
155 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
156 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
157 if [ -n "${verbose}" ] ; then
158 echo Caching $i in .Recover...
159 fi
160 mv $i .Recover
161 fi
162 mv new $i
163 fi
164 done
165fi
166
204c73d8
SS
167if ( echo $* | grep keep\-gm > /dev/null ) ; then
168 for i in * ; do
169 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
170 if [ -n "${verbose}" ] ; then
171 echo Keeping gm stuff in $i
172 fi
173 fi
174 done
175else
176 for i in * ; do
177 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
178 if [ -n "${verbose}" ] ; then
179 echo Removing traces of \"gm\" from $i...
180 fi
181 cp $i new
182 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
183 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
184 if [ -n "${verbose}" ] ; then
185 echo Caching $i in .Recover...
186 fi
187 mv $i .Recover
188 fi
189 mv new $i
190 fi
191 done
192fi
193
5c680afd
MT
194for i in * ; do
195 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
196 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
197 fi
198done
199
d4d5412d 200#
d4d5412d 201# End of file.
This page took 0.193553 seconds and 4 git commands to generate.