srconv.c (writeINT): When size == -2, use 2 bytes for the h8300 and 4 bytes
[deliverable/binutils-gdb.git] / .Sanitize
CommitLineData
43e36dd2 1# .Sanitize for devo.
a93b3c77 2
694ea471
KR
3########################
4# YO! READ ME!!!!!!!!!
5# If you're about to add a file or directory which isn't checked out as part
6# of every module in devo (e.g., if "cvs co gas+utils" won't get it, or if
7# "cvs co gcc" won't get it), then don't, Don't, DON'T add it to the regular
8# things-to-keep or things-to-lose sections. Instead, add it to the setting
9# of keep_these_too or lose_these_too before those variables are rescanned
10# to check for the existence of the items listed in them.
11#
12# Otherwise, somebody will check out some package that doesn't include your
13# new file, and will get warnings from Sanitize when everything is really
14# okay. You don't want to get people in the habit of ignoring complaints from
15# Sanitize, do you? No, I didn't think so.
16########################
17
5db7ecb7 18# Each directory to survive its way into a release will need a file
a93b3c77
RP
19# like this one called "./.Sanitize". All keyword lines must exist,
20# and must exist in the order specified by this file. Each directory
21# in the tree will be processed, top down, in the following order.
22
23# Hash started lines like this one are comments and will be deleted
24# before anything else is done. Blank lines will also be squashed
25# out.
26
27# The lines between the "Do-first:" line and the "Things-to-keep:"
28# line are executed as a /bin/sh shell script before anything else is
43e36dd2 29# done in this directory.
a93b3c77
RP
30
31Do-first:
32
1ed0529e 33keep_these_too="${keep_these_too} .cvsignore CYGNUS autoconf
e03b0bca
KR
34 bfd binutils byacc cvs deja-gnu dejagnu diff dosrel dvips emacs emacs19
35 examples expect fileutils flex gas gcc gdb gdbm gdbtest glob gprof grep
36 groff include install.sh ispell ld libg++ libgcc libgloss libiberty
f38cb096
JM
37 libio librx libstdc++ m4 make mmalloc move-if-change newlib opcodes
38 pagas patch prms rcs readline sed send-pr shellutils sim tcl textutils
694ea471
KR
39 tk texinfo tgas utils uudecode wdiff xiberty
40 configure.bat makeall.bat
41 mpw-README mpw-configure mpw-config.in mpw-build.in"
42
43lose_these_too="${lose_these_too} testsuite"
e03b0bca 44
2822305b 45cygnus_files="release release-info build-all.mk test-build.mk COPYING.NEWLIB"
96c805d8 46
7d0eab7b 47if ( echo $* | grep keep\-cygnus > /dev/null) ; then
96c805d8 48 keep_these_too="${keep_these_too} ${cygnus_files}"
80cad9cc 49else
96c805d8 50 lose_these_too="${lose_these_too} ${cygnus_files}"
7d0eab7b
DZ
51fi
52
fc5a05e9
SS
53gdbtk_files="tcl tk"
54
55if ( echo $* | grep lose\-gdbtk > /dev/null) ; then
56 lose_these_too="${lose_these_too} ${gdbtk_files}"
57 if [ -n "${verbose}" ] ; then
58 echo Deleting ${gdbtk_files}
59 fi
60else
61 keep_these_too="${keep_these_too} ${gdbtk_files}"
62 if [ -n "${verbose}" ] ; then
63 echo Keeping ${gdbtk_files}
64 fi
5db7ecb7 65fi
7d0eab7b 66
77cbdd35 67# This is for newlib net releases.
77cbdd35
DE
68newlib_files="COPYING.NEWLIB"
69
70if ( echo $* | grep keep\-newlib > /dev/null) ; then
71 keep_these_too="${keep_these_too} ${newlib_files}"
72else
73 lose_these_too="${lose_these_too} ${newlib_files}"
74fi
75
e03b0bca
KR
76# This top-level directory is special. We often check out only subsets
77# of this directory, and complaining about directories or files we didn't
78# check out just gets obnoxious.
79
694ea471 80list="`(for i in ${keep_these_too}; do echo $i ; done) | sort -u`"
e03b0bca
KR
81keep_these_too=
82
83for file in $list ; do
84 if [ -r $file ] || [ -d $file ] ; then
85 keep_these_too="${keep_these_too} $file"
86 fi
87done
88
694ea471 89list="`(for i in ${lose_these_too}; do echo $i ; done) | sort -u` "
e03b0bca
KR
90lose_these_too=
91
92for file in $list ; do
93 if [ -r $file ] || [ -d $file ] ; then
94 lose_these_too="${lose_these_too} $file"
95 fi
96done
97
a93b3c77 98# All files listed between the "Things-to-keep:" line and the
43e36dd2 99# "Do-last:" line will be kept. All other files will be removed.
a93b3c77
RP
100# Directories listed in this section will have their own Sanitize
101# called. Directories not listed will be removed in their entirety
102# with rm -rf.
103
104Things-to-keep:
105
6e37b215
PB
106COPYING
107COPYING.LIB
57d32184 108ChangeLog
a93b3c77 109Makefile.in
965a9f14 110README
a93b3c77 111config
8c2d15d1
DE
112cfg-ml-com.in
113cfg-ml-pos.in
5cc24596 114config.guess
db2de419 115config.sub
a93b3c77
RP
116configure
117configure.in
701df845 118etc
a93b3c77 119
87756e15
RP
120Things-to-lose:
121
43e36dd2
RP
122# The lines between the "Do-last:" line and the end of the file
123# are executed as a /bin/sh shell script after everything else is
124# done.
125
a93b3c77
RP
126Do-last:
127
bf150019
DE
128# Don't try to clean directories here, as the 'mv' command will fail.
129# Also, grep fails on NFS mounted directories.
130
7b85349f
RP
131if ( echo $* | egrep verbose > /dev/null ) ; then
132 verbose=true
133else
134 verbose=
135fi
136
eecef7ef
FF
137# Remove "sanitize-Sanitize" lines.
138if [ -n "${verbose}" ] ; then
139 echo Cleaning unconditional sanitizations out of Makefile.in...
140fi
141cp Makefile.in new
142sed '/start\-sanitize\-Sanitize/,/end-\sanitize\-Sanitize/d' < Makefile.in > new
143if [ -n "${safe}" -a ! -f .Recover/Makefile.in ] ; then
144 mv Makefile.in .Recover
145fi
146mv new Makefile.in
147
7b85349f
RP
148if [ -n "${verbose}" ] ; then
149 echo Thawing away the \"chill\"...
150fi
5d4ec851 151
5d4ec851
FF
152if ( echo $* | grep keep\-chill > /dev/null ) ; then
153 for i in * ; do
154 if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then
7b85349f
RP
155 if [ -n "${verbose}" ] ; then
156 echo Keeping chill stuff in $i
157 fi
5d4ec851
FF
158 fi
159 done
160else
161 for i in * ; do
162 if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then
7b85349f
RP
163 if [ -n "${verbose}" ] ; then
164 echo Thawing the \"chill\" out of $i...
165 fi
5d4ec851
FF
166 cp $i new
167 sed '/start\-sanitize\-chill/,/end-\sanitize\-chill/d' < $i > new
168 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
7b85349f
RP
169 if [ -n "${verbose}" ] ; then
170 echo Caching $i in .Recover...
171 fi
5d4ec851
FF
172 mv $i .Recover
173 fi
174 mv new $i
175 fi
176 done
5d4ec851
FF
177fi
178
86118528
KR
179if [ -n "${verbose}" ] ; then
180 echo Processing \"arc\"...
181fi
182
f162a6a1 183arc_files="config.sub configure.in cfg-ml-com.in"
bf150019 184
86118528 185if ( echo $* | grep keep\-arc > /dev/null ) ; then
bf150019 186 for i in $arc_files ; do
86118528
KR
187 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
188 if [ -n "${verbose}" ] ; then
189 echo Keeping arc stuff in $i
190 fi
191 fi
192 done
193else
194 for i in * ; do
195 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
196 if [ -n "${verbose}" ] ; then
197 echo Removing traces of \"arc\" from $i...
198 fi
199 cp $i new
200 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
bf150019
DE
201 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
202 if [ -n "${verbose}" ] ; then
203 echo Caching $i in .Recover...
204 fi
205 mv $i .Recover
206 fi
207 mv new $i
208 fi
209 done
210fi
211
212psion_files="config.sub configure.in"
213
214if ( echo $* | grep keep\-psion > /dev/null ) ; then
215 for i in $psion_files; do
216 if test ! -d $i && (grep sanitize-psion $i > /dev/null) ; then
217 if [ -n "${verbose}" ] ; then
218 echo Keeping psion stuff in $i
219 fi
220 fi
221 done
222else
223 for i in * ; do
224 if test ! -d $i && (grep sanitize-psion $i > /dev/null) ; then
225 if [ -n "${verbose}" ] ; then
226 echo Removing traces of \"psion\" from $i...
227 fi
228 cp $i new
229 sed '/start\-sanitize\-psion/,/end-\sanitize\-psion/d' < $i > new
86118528
KR
230 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
231 if [ -n "${verbose}" ] ; then
232 echo Caching $i in .Recover...
233 fi
234 mv $i .Recover
235 fi
236 mv new $i
237 fi
238 done
239fi
240
03c4ce2f 241rce_files="config.sub"
5c680afd 242
03c4ce2f
MT
243if ( echo $* | grep keep\-rce > /dev/null ) ; then
244 for i in $rce_files ; do
245 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
5c680afd 246 if [ -n "${verbose}" ] ; then
03c4ce2f 247 echo Keeping rce stuff in $i
5c680afd
MT
248 fi
249 fi
250 done
251else
03c4ce2f
MT
252 for i in $rce_files ; do
253 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
5c680afd 254 if [ -n "${verbose}" ] ; then
03c4ce2f 255 echo Removing traces of \"rce\" from $i...
5c680afd
MT
256 fi
257 cp $i new
03c4ce2f 258 sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new
5c680afd
MT
259 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
260 if [ -n "${verbose}" ] ; then
261 echo Caching $i in .Recover...
262 fi
263 mv $i .Recover
264 fi
265 mv new $i
266 fi
267 done
268fi
269
e11b54be
PB
270for i in * ; do
271 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
7b85349f 272 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
e11b54be
PB
273 fi
274done
57d32184
RP
275
276# eof
This page took 0.150028 seconds and 4 git commands to generate.