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