m32rx -> cygnus sanitization change.
[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 cygnus_files="readelf.c"
140 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
141 for i in $cygnus_files ; do
142 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
143 if [ -n "${verbose}" ] ; then
144 echo Keeping cygnus stuff in $i
145 fi
146 fi
147 done
148 else
149 for i in $cygnus_files ; do
150 if test -r $i && (grep sanitize-cygnus $i > /dev/null) ; then
151 if [ -n "${verbose}" ] ; then
152 echo Removing traces of \"cygnus\" from $i...
153 fi
154 cp $i new
155 sed '/start\-sanitize\-cygnus/,/end\-sanitize\-cygnus/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 sky_files="ChangeLog Makefile.in Makefile.am configure.in configure"
168 if ( 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
176 else
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
193 fi
194
195 # This must come after all other sanitizations. Re-sanitize the .pot
196 # file.
197 if [ -n "${verbose}" ]; then
198 echo Re-computing files for gettext ...
199 fi
200
201 if [ -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
206 fi
207 find . -name '*.[ch]' | sed -e 's,^\./,,' > po/POTFILES.in
208
209 if [ -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
214 fi
215 # If this fails, Sanitization must fail.
216 xgettext -c -k_ -kN_ -f po/POTFILES.in -o po/binutils.pot || exit 1
217
218 # eof
This page took 0.034534 seconds and 4 git commands to generate.