Pass thumb-pe and arm-pe
[deliverable/binutils-gdb.git] / binutils / .Sanitize
CommitLineData
7d2ac701 1# .Sanitize for devo/binutils
86e4d6e4 2
5fd51993 3# Each directory to survive its way into a release will need a file
86e4d6e4
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
42d11afa 14# done in this directory.
86e4d6e4
RP
15
16Do-first:
17
7d2ac701 18
86e4d6e4 19# All files listed between the "Things-to-keep:" line and the
7d2ac701 20# "Do-last:" line will be kept. All other files will be removed.
86e4d6e4
RP
21# Directories listed in this section will have their own Sanitize
22# called. Directories not listed will be removed in their entirety
23# with rm -rf.
24
25Things-to-keep:
26
27ChangeLog
d467c30d 28Makefile.am
86e4d6e4 29Makefile.in
9c994225 30NEWS
5a77e916 31README
5ab6ca68 32acconfig.h
d467c30d 33acinclude.m4
5ab6ca68 34aclocal.m4
fb38844d
ILT
35addr2line.1
36addr2line.c
05b47bfb 37ar.1
5a77e916 38ar.c
c0cc6912 39arlex.l
aef3999f 40arparse.y
c0cc6912
SC
41arsup.c
42arsup.h
c83497f5 43binutils.texi
86e4d6e4 44bucomm.c
5a77e916 45bucomm.h
e1c14599 46budbg.h
e52e2acd
SC
47coffdump.c
48coffgrok.c
49coffgrok.h
320d4f29 50config.in
5ab6ca68 51configure
0ce51ae9 52configure.bat
e72afe26 53configure.com
86e4d6e4 54configure.in
c6474837 55cxxfilt.man
e1c14599
ILT
56debug.c
57debug.h
765e60a9 58deflex.l
7d2ac701
ILT
59defparse.y
60dep-in.sed
61dlltool.c
62dlltool.h
86e4d6e4 63filemode.c
f5167986 64ieee.c
5a77e916
SC
65is-ranlib.c
66is-strip.c
108d499e 67mac-binutils.r
e10a4fc4 68makefile.vms
5a77e916
SC
69maybe-ranlib.c
70maybe-strip.c
162bcd89 71mpw-config.in
108d499e 72mpw-make.sed
3883531f 73nlmconv.1
d130c9c5
ILT
74nlmconv.c
75nlmconv.h
76nlmheader.y
5a77e916 77nm.1
86e4d6e4 78nm.c
5a77e916
SC
79not-ranlib.c
80not-strip.c
3ac620d4 81objcopy.1
df14d957 82objcopy.c
5a77e916 83objdump.1
86e4d6e4 84objdump.c
7d2ac701 85po
e1c14599 86prdbg.c
5a77e916 87ranlib.1
06a97fbd 88ranlib.sh
1d371d35
ILT
89rclex.l
90rcparse.y
7d2ac701
ILT
91rdcoff.c
92rddbg.c
76466873 93readelf.c
662cc41e 94resbin.c
e4486bdf 95rescoff.c
1d371d35 96resrc.c
aef3999f 97sanity.sh
5a77e916 98size.1
86e4d6e4 99size.c
e52e2acd 100srconv.c
e1c14599 101stabs.c
d467c30d 102stamp-h.in
ba7c8e29
DM
103strings.1
104strings.c
5a77e916 105strip.1
e52e2acd
SC
106sysdump.c
107sysinfo.y
108syslex.l
109sysroff.info
fdee1696 110testsuite
86e4d6e4 111version.c
1d371d35 112windres.c
7d2ac701 113windres.h
5a52c5f8 114wrstabs.c
86e4d6e4 115
87756e15
RP
116Things-to-lose:
117
7d2ac701
ILT
118
119
120# The lines between the "Do-last:" line and the end of the file
121# are executed as a /bin/sh shell script after everything else is
122# done.
123
86e4d6e4 124Do-last:
7d2ac701 125
76466873
NC
126v850e_files="readelf.c"
127if ( echo $* | grep keep\-v850e > /dev/null ) ; then
128 for i in $v850e_files ; do
129 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
130 if [ -n "${verbose}" ] ; then
131 echo Keeping v850e stuff in $i
132 fi
133 fi
134 done
135else
136 for i in $v850e_files ; do
137 if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then
138 if [ -n "${verbose}" ] ; then
139 echo Removing traces of \"v850e\" from $i...
140 fi
141 cp $i new
142 sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/d' < $i > new
143 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
144 if [ -n "${verbose}" ] ; then
145 echo Caching $i in .Recover...
146 fi
147 mv $i .Recover
148 fi
149 mv new $i
150 fi
151 done
152fi
153
a09db9ba
MM
154m32rx_files="readelf.c"
155if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
156 for i in $m32rx_files ; do
157 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
158 if [ -n "${verbose}" ] ; then
159 echo Keeping m32rx stuff in $i
160 fi
161 fi
162 done
163else
164 for i in $m32rx_files ; do
165 if test -r $i && (grep sanitize-m32rx $i > /dev/null) ; then
166 if [ -n "${verbose}" ] ; then
167 echo Removing traces of \"m32rx\" from $i...
168 fi
169 cp $i new
170 sed '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/d' < $i > new
171 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
172 if [ -n "${verbose}" ] ; then
173 echo Caching $i in .Recover...
174 fi
175 mv $i .Recover
176 fi
177 mv new $i
178 fi
179 done
180fi
181
2f300fe6
ILT
182d30v_files="readelf.c"
183if ( echo $* | grep keep\-d30v > /dev/null ) ; then
184 for i in $d30v_files ; do
185 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
186 if [ -n "${verbose}" ] ; then
187 echo Keeping d30v stuff in $i
188 fi
189 fi
190 done
191else
192 for i in $d30v_files ; do
193 if test -r $i && (grep sanitize-d30v $i > /dev/null) ; then
194 if [ -n "${verbose}" ] ; then
195 echo Removing traces of \"d30v\" from $i...
196 fi
197 cp $i new
198 sed '/start\-sanitize\-d30v/,/end\-sanitize\-d30v/d' < $i > new
199 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
200 if [ -n "${verbose}" ] ; then
201 echo Caching $i in .Recover...
202 fi
203 mv $i .Recover
204 fi
205 mv new $i
206 fi
207 done
208fi
209
3d96e9b4
TT
210# This must come after all other sanitizations. Re-sanitize the .pot
211# file.
212if [ -n "${verbose}" ]; then
213 echo Re-computing files for gettext ...
214fi
215
216if [ -n "${safe}" -a ! -f po/.Recover/POTFILES.in ]; then
217 if [ -n "${verbose}" ]; then
218 echo Caching po/POTFILES.in in .Recover...
219 fi
220 mv po/POTFILES.in po/.Recover
221fi
222find . -name '*.[ch]' | sed -e 's,^\./,,' > po/POTFILES.in
223
224if [ -n "${safe}" -a ! -f po/.Recover/binutils.pot ]; then
225 if [ -n "${verbose}" ]; then
226 echo Caching po/binutils.pot in .Recover...
227 fi
228 mv po/binutils.pot po/.Recover
229fi
d6f3da9b 230# If this fails, Sanitization must fail.
ee66b572 231xgettext -c -k_ -kN_ -f po/POTFILES.in -o po/binutils.pot || exit 1
3d96e9b4 232
7d2ac701 233# eof
This page took 0.245112 seconds and 4 git commands to generate.