new files -- part of HP merge.
[deliverable/binutils-gdb.git] / binutils / .Sanitize
1 # .Sanitize for devo/binutils
2
3 # Each directory to survive its way into a release will need a file
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
14 # done in this directory.
15
16 Do-first:
17
18 sky_files="link.c.in"
19
20 if ( echo $* | grep keep\-sky > /dev/null ) ; then
21 keep_these_too="${sky_files} ${keep_these_too}"
22 else
23 lose_these_too="${sky_files} ${lose_these_too}"
24 fi
25
26 # All files listed between the "Things-to-keep:" line and the
27 # "Do-last:" line will be kept. All other files will be removed.
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
32 Things-to-keep:
33
34 ChangeLog
35 Makefile.am
36 Makefile.in
37 NEWS
38 README
39 acconfig.h
40 acinclude.m4
41 aclocal.m4
42 addr2line.1
43 addr2line.c
44 ar.1
45 ar.c
46 arlex.l
47 arparse.y
48 arsup.c
49 arsup.h
50 binutils.texi
51 bucomm.c
52 bucomm.h
53 budbg.h
54 coffdump.c
55 coffgrok.c
56 coffgrok.h
57 config.in
58 configure
59 configure.bat
60 configure.com
61 configure.in
62 cxxfilt.man
63 debug.c
64 debug.h
65 deflex.l
66 defparse.y
67 dep-in.sed
68 dlltool.c
69 dlltool.h
70 dllwrap.c
71 dyn-string.c
72 dyn-string.h
73 filemode.c
74 ieee.c
75 is-ranlib.c
76 is-strip.c
77 mac-binutils.r
78 makefile.vms-in
79 maybe-ranlib.c
80 maybe-strip.c
81 mpw-config.in
82 mpw-make.sed
83 nlmconv.1
84 nlmconv.c
85 nlmconv.h
86 nlmheader.y
87 nm.1
88 nm.c
89 not-ranlib.c
90 not-strip.c
91 objcopy.1
92 objcopy.c
93 objdump.1
94 objdump.c
95 po
96 prdbg.c
97 ranlib.1
98 ranlib.sh
99 rclex.l
100 rcparse.y
101 rdcoff.c
102 rddbg.c
103 readelf.c
104 resbin.c
105 rescoff.c
106 resrc.c
107 resres.c
108 sanity.sh
109 size.1
110 size.c
111 srconv.c
112 stabs.c
113 stamp-h.in
114 strings.1
115 strings.c
116 strip.1
117 sysdump.c
118 sysinfo.y
119 syslex.l
120 sysroff.info
121 testsuite
122 version.c
123 windres.c
124 windres.h
125 winduni.c
126 winduni.h
127 wrstabs.c
128
129 Things-to-lose:
130
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
137 Do-last:
138
139 v850e_files="readelf.c"
140 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
141 for i in $v850e_files ; do
142 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
143 if [ -n "${verbose}" ] ; then
144 echo Keeping v850e stuff in $i
145 fi
146 fi
147 done
148 else
149 for i in $v850e_files ; do
150 if test -r $i && (grep sanitize-v850e $i > /dev/null) ; then
151 if [ -n "${verbose}" ] ; then
152 echo Removing traces of \"v850e\" from $i...
153 fi
154 cp $i new
155 sed '/start\-sanitize\-v850e/,/end\-sanitize\-v850e/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
165 fi
166
167 m32rx_files="readelf.c"
168 if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
169 for i in $m32rx_files ; do
170 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
171 if [ -n "${verbose}" ] ; then
172 echo Keeping m32rx stuff in $i
173 fi
174 fi
175 done
176 else
177 for i in $m32rx_files ; do
178 if test -r $i && (grep sanitize-m32rx $i > /dev/null) ; then
179 if [ -n "${verbose}" ] ; then
180 echo Removing traces of \"m32rx\" from $i...
181 fi
182 cp $i new
183 sed '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/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
193 fi
194
195 sky_files="ChangeLog Makefile.in Makefile.am configure.in configure"
196 if ( echo $* | grep keep\-sky > /dev/null ) ; then
197 for i in $sky_files ; do
198 if test ! -d $i && (grep 'sanitize[-_]sky' $i > /dev/null) ; then
199 if [ -n "${verbose}" ] ; then
200 echo Keeping sky stuff in $i
201 fi
202 fi
203 done
204 else
205 for i in $sky_files ; do
206 if test ! -d $i && (grep 'sanitize[-_]sky' $i > /dev/null) ; then
207 if [ -n "${verbose}" ] ; then
208 echo Removing traces of \"sky\" from $i...
209 fi
210 cp $i new
211 sed '/start[-_]sanitize[-_]sky/,/end[-_]sanitize[-_]sky/d' < $i > new
212 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
213 if [ -n "${verbose}" ] ; then
214 echo Caching $i in .Recover...
215 fi
216 mv $i .Recover
217 fi
218 mv new $i
219 fi
220 done
221 fi
222
223 # This must come after all other sanitizations. Re-sanitize the .pot
224 # file.
225 if [ -n "${verbose}" ]; then
226 echo Re-computing files for gettext ...
227 fi
228
229 if [ -n "${safe}" -a ! -f po/.Recover/POTFILES.in ]; then
230 if [ -n "${verbose}" ]; then
231 echo Caching po/POTFILES.in in .Recover...
232 fi
233 mv po/POTFILES.in po/.Recover
234 fi
235 find . -name '*.[ch]' | sed -e 's,^\./,,' > po/POTFILES.in
236
237 if [ -n "${safe}" -a ! -f po/.Recover/binutils.pot ]; then
238 if [ -n "${verbose}" ]; then
239 echo Caching po/binutils.pot in .Recover...
240 fi
241 mv po/binutils.pot po/.Recover
242 fi
243 # If this fails, Sanitization must fail.
244 xgettext -c -k_ -kN_ -f po/POTFILES.in -o po/binutils.pot || exit 1
245
246 # eof
This page took 0.047814 seconds and 4 git commands to generate.