* Handle 10 and 20-bit versions of Break instruction. Move handling
[deliverable/binutils-gdb.git] / include / .Sanitize
CommitLineData
2323d13b 1# .Sanitize for devo/include.
0fd8d5d9 2
2323d13b 3# Each directory to survive its way into a release will need a file
0fd8d5d9
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
2323d13b 14# done in this directory.
0fd8d5d9
RP
15
16Do-first:
17
2323d13b 18
0fd8d5d9
RP
19# All files listed between the "Things-to-keep:" line and the
20# "Files-to-sed:" line will be kept. All other files will be removed.
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
8e71e6e3 27COPYING
49d6a0e6 28ChangeLog
0fd8d5d9 29ansidecl.h
11eab90c 30aout
9a0418eb 31bfdlink.h
0fd8d5d9 32bout.h
9d10b92d 33callback.h
11eab90c 34coff
c9725927 35demangle.h
d7e1be46 36dis-asm.h
11eab90c 37elf
8b1d1557 38floatformat.h
fa8e5931 39fnmatch.h
201258d5
JW
40fopen-bin.h
41fopen-same.h
a570d4b2 42fopen-vms.h
0fd8d5d9
RP
43gdbm.h
44getopt.h
8ee0532b 45hp-symtab.h
0fd8d5d9 46ieee.h
e51437f1 47libiberty.h
01c32fc4 48mpw
f7da7289 49nlm
0fd8d5d9 50oasys.h
bc68afb2 51objalloc.h
0fd8d5d9 52obstack.h
02400c00 53os9k.h
11eab90c 54opcode
d4d4c53c 55progress.h
71d51207 56regs
05e4e44f 57remote-sim.h
2acf55ff 58symcat.h
0fd8d5d9
RP
59wait.h
60
87756e15
RP
61Things-to-lose:
62
775d4a40 63
0fd8d5d9
RP
64Do-last:
65
6e8bee16
SG
66if [ -n "${verbose}" ] ; then
67 echo Processing \"tic80\"...
68fi
69
33aeaf00
FF
70tic80_files="ChangeLog dis-asm.h"
71if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
72 for i in $tic80_files ; do
73 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
74 if [ -n "${verbose}" ] ; then
75 echo Keeping tic80 stuff in $i
76 fi
77 fi
78 done
79else
80 for i in $tic80_files ; do
81 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
82 if [ -n "${verbose}" ] ; then
83 echo Removing traces of \"tic80\" from $i...
84 fi
85 cp $i new
86 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
87 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
88 if [ -n "${verbose}" ] ; then
89 echo Caching $i in .Recover...
90 fi
91 mv $i .Recover
92 fi
93 mv new $i
94 fi
95 done
96fi
97
6e8bee16
SG
98if [ -n "${verbose}" ] ; then
99 echo Processing \"d30v\"...
100fi
101
713495a9
MH
102d30v_files="ChangeLog dis-asm.h"
103if ( echo $* | grep keep\-d30v > /dev/null ) ; then
104 for i in $d30v_files ; do
105 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
106 if [ -n "${verbose}" ] ; then
107 echo Keeping d30v stuff in $i
108 fi
109 fi
110 done
111else
112 for i in $d30v_files ; do
113 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
114 if [ -n "${verbose}" ] ; then
115 echo Removing traces of \"d30v\" from $i...
116 fi
117 cp $i new
118 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
119 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
120 if [ -n "${verbose}" ] ; then
121 echo Caching $i in .Recover...
122 fi
123 mv $i .Recover
124 fi
125 mv new $i
126 fi
127 done
128fi
129
6e8bee16
SG
130if [ -n "${verbose}" ] ; then
131 echo Processing \"sky\"...
132fi
133
1eb4e377
DE
134sky_files="ChangeLog dis-asm.h"
135if ( echo $* | grep keep\-sky > /dev/null ) ; then
136 for i in $sky_files ; do
137 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
138 if [ -n "${verbose}" ] ; then
139 echo Keeping sky stuff in $i
140 fi
141 fi
142 done
143else
144 for i in $sky_files ; do
145 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
146 if [ -n "${verbose}" ] ; then
147 echo Removing traces of \"sky\" from $i...
148 fi
149 cp $i new
150 sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new
151 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
152 if [ -n "${verbose}" ] ; then
153 echo Caching $i in .Recover...
154 fi
155 mv $i .Recover
156 fi
157 mv new $i
158 fi
159 done
160fi
161
6e8bee16
SG
162if [ -n "${verbose}" ] ; then
163 echo Processing \"java\"...
164fi
165
166java_files="ChangeLog demangle.h"
167if ( echo $* | grep keep\-java > /dev/null ) ; then
168 for i in $java_files ; do
169 if test ! -d $i && (grep sanitize-java $i > /dev/null) ; then
170 if [ -n "${verbose}" ] ; then
171 echo Keeping java stuff in $i
172 fi
173 fi
174 done
175else
176 for i in * ; do
177 if test ! -d $i && (grep sanitize-java $i > /dev/null) ; then
178 if [ -n "${verbose}" ] ; then
179 echo Removing traces of \"java\" from $i...
180 fi
181 cp $i new
182 sed '/start\-sanitize\-java/,/end-\sanitize\-java/d' < $i > new
183 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
184 if [ -n "${verbose}" ] ; then
185 echo Caching $i in .Recover...
186 fi
187 mv $i .Recover
188 fi
189 mv new $i
190 fi
191 done
192fi
193
dc997928
DE
194for i in * ; do
195 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
196 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
197 fi
198done
199
0fd8d5d9 200# End of file.
This page took 0.228877 seconds and 4 git commands to generate.