]> Git Repo - binutils.git/blob - gas/doc/.Sanitize
Add clauses for tx19, vr4xxx, vr4320, tx49, and r5900
[binutils.git] / gas / doc / .Sanitize
1 # .Sanitize for devo/gas/doc
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 # All files listed between the "Things-to-keep:" line and the
19 # "Do-last:" line will be kept.  All other files will be removed.
20 # Directories listed in this section will have their own Sanitize
21 # called.  Directories not listed will be removed in their entirety
22 # with rm -rf.
23
24 Things-to-keep:
25
26 Makefile.am
27 Makefile.in
28 all.texi
29 as.1
30 as.texinfo
31 c-a29k.texi
32 c-arm.texi
33 c-d10v.texi
34 c-d30v.texi
35 c-h8300.texi
36 c-h8500.texi
37 c-hppa.texi
38 c-i386.texi
39 c-i960.texi
40 c-m32r.texi
41 c-m68k.texi
42 c-mips.texi
43 c-ns32k.texi
44 c-sh.texi
45 c-sparc.texi
46 c-v850.texi
47 c-vax.texi
48 c-z8k.texi
49 gasp.texi
50 h8.texi
51 internals.texi
52
53 Things-to-lose:
54
55
56
57 # The lines between the "Do-last:" line and the end of the file
58 # are executed as a /bin/sh shell script after everything else is
59 # done.
60
61 Do-last:
62
63 cygnus_files="c-m32r.texi c-mips.texi as.texinfo"
64 if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
65         for i in $cygnus_files ; do
66                 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
67                         if [ -n "${verbose}" ] ; then
68                                 echo Keeping cygnus stuff in $i
69                         fi
70                 fi
71         done
72 else
73         for i in $cygnus_files ; do
74                 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
75                         if [ -n "${verbose}" ] ; then
76                                 echo Removing traces of \"cygnus\" from $i...
77                         fi
78                         cp $i new
79                         sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
80                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
81                                 if [ -n "${verbose}" ] ; then
82                                         echo Caching $i in .Recover...
83                                 fi
84                                 mv $i .Recover
85                         fi
86                         mv new $i
87                 fi
88         done
89 fi
90
91 r5900_files="c-mips.texi"
92 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
93         for i in $r5900_files ; do
94                 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
95                         if [ -n "${verbose}" ] ; then
96                                 echo Keeping r5900 stuff in $i
97                         fi
98                 fi
99         done
100 else
101         for i in * ; do
102                 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
103                         if [ -n "${verbose}" ] ; then
104                                 echo Removing traces of \"r5900\" from $i...
105                         fi
106                         cp $i new
107                         sed '/start\-sanitize\-r5900/,/end\-sanitize\-r5900/d' < $i > new
108                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
109                                 if [ -n "${verbose}" ] ; then
110                                         echo Caching $i in .Recover...
111                                 fi
112                                 mv $i .Recover
113                         fi
114                         mv new $i
115                 fi
116         done
117 fi
118
119 tx19_files="c-mips.texi"
120 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
121         for i in $tx19_files ; do
122                 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
123                         if [ -n "${verbose}" ] ; then
124                                 echo Keeping tx19 stuff in $i
125                         fi
126                 fi
127         done
128 else
129         for i in * ; do
130                 if test ! -d $i && (grep sanitize-tx19 $i > /dev/null) ; then
131                         if [ -n "${verbose}" ] ; then
132                                 echo Removing traces of \"tx19\" from $i...
133                         fi
134                         cp $i new
135                         sed '/start\-sanitize\-tx19/,/end\-sanitize\-tx19/d' < $i > new
136                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
137                                 if [ -n "${verbose}" ] ; then
138                                         echo Caching $i in .Recover...
139                                 fi
140                                 mv $i .Recover
141                         fi
142                         mv new $i
143                 fi
144         done
145 fi
146
147 tx49_files="c-mips.texi"
148 if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
149         for i in $tx49_files ; do
150                 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
151                         if [ -n "${verbose}" ] ; then
152                                 echo Keeping tx49 stuff in $i
153                         fi
154                 fi
155         done
156 else
157         for i in * ; do
158                 if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
159                         if [ -n "${verbose}" ] ; then
160                                 echo Removing traces of \"tx49\" from $i...
161                         fi
162                         cp $i new
163                         sed '/start\-sanitize\-tx49/,/end\-sanitize\-tx49/d' < $i > new
164                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
165                                 if [ -n "${verbose}" ] ; then
166                                         echo Caching $i in .Recover...
167                                 fi
168                                 mv $i .Recover
169                         fi
170                         mv new $i
171                 fi
172         done
173 fi
174
175 tx59_files="c-mips.texi"
176 if ( echo $* | grep keep\-tx59 > /dev/null ) ; then
177         for i in $tx59_files ; do
178                 if test ! -d $i && (grep sanitize-tx59 $i > /dev/null) ; then
179                         if [ -n "${verbose}" ] ; then
180                                 echo Keeping tx59 stuff in $i
181                         fi
182                 fi
183         done
184 else
185         for i in * ; do
186                 if test ! -d $i && (grep sanitize-tx59 $i > /dev/null) ; then
187                         if [ -n "${verbose}" ] ; then
188                                 echo Removing traces of \"tx59\" from $i...
189                         fi
190                         cp $i new
191                         sed '/start\-sanitize\-tx59/,/end\-sanitize\-tx59/d' < $i > new
192                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
193                                 if [ -n "${verbose}" ] ; then
194                                         echo Caching $i in .Recover...
195                                 fi
196                                 mv $i .Recover
197                         fi
198                         mv new $i
199                 fi
200         done
201 fi
202
203 vr4xxx_files="c-mips.texi"
204 if ( echo $* | grep keep\-vr4xxx > /dev/null ) ; then
205         for i in $vr4xxx_files ; do
206                 if test ! -d $i && (grep sanitize-vr4xxx $i > /dev/null) ; then
207                         if [ -n "${verbose}" ] ; then
208                                 echo Keeping vr4xxx stuff in $i
209                         fi
210                 fi
211         done
212 else
213         for i in $vr4xxx_files ; do
214                 if test -r $i && (grep sanitize-vr4xxx $i > /dev/null) ; then
215                         if [ -n "${verbose}" ] ; then
216                                 echo Removing traces of \"vr4xxx\" from $i...
217                         fi
218                         cp $i new
219                         sed '/start\-sanitize\-vr4xxx/,/end\-sanitize\-vr4xxx/d' < $i > new
220                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
221                                 if [ -n "${verbose}" ] ; then
222                                         echo Caching $i in .Recover...
223                                 fi
224                                 mv $i .Recover
225                         fi
226                         mv new $i
227                 fi
228         done
229 fi
230
231 vr4320_files="c-mips.texi"
232 if ( echo $* | grep keep\-vr4320 > /dev/null ) ; then
233         for i in $vr4320_files ; do
234                 if test ! -d $i && (grep sanitize-vr4320 $i > /dev/null) ; then
235                         if [ -n "${verbose}" ] ; then
236                                 echo Keeping vr4320 stuff in $i
237                         fi
238                 fi
239         done
240 else
241         for i in $vr4320_files ; do
242                 if test -r $i && (grep sanitize-vr4320 $i > /dev/null) ; then
243                         if [ -n "${verbose}" ] ; then
244                                 echo Removing traces of \"vr4320\" from $i...
245                         fi
246                         cp $i new
247                         sed '/start\-sanitize\-vr4320/,/end\-sanitize\-vr4320/d' < $i > new
248                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
249                                 if [ -n "${verbose}" ] ; then
250                                         echo Caching $i in .Recover...
251                                 fi
252                                 mv $i .Recover
253                         fi
254                         mv new $i
255                 fi
256         done
257 fi
258
259 for i in * ; do
260         if test ! -d $i && (grep sanitize $i > /dev/null) ; then
261                 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
262         fi
263 done
264
265 # eof
This page took 0.038154 seconds and 4 git commands to generate.