Since d10v is public now, remove all sanitization statements
[deliverable/binutils-gdb.git] / include / elf / .Sanitize
1 # Sanitize.in for devo.
2 # $Id$
3 #
4
5 # Each directory to survive it's way into a release will need a file
6 # like this one called "./.Sanitize". All keyword lines must exist,
7 # and must exist in the order specified by this file. Each directory
8 # in the tree will be processed, top down, in the following order.
9
10 # Hash started lines like this one are comments and will be deleted
11 # before anything else is done. Blank lines will also be squashed
12 # out.
13
14 # The lines between the "Do-first:" line and the "Things-to-keep:"
15 # line are executed as a /bin/sh shell script before anything else is
16 # done in this
17
18 Do-first:
19
20 arc_files="arc.h"
21
22 if ( echo $* | grep keep\-arc > /dev/null ) ; then
23 keep_these_too="${arc_files} ${keep_these_too}"
24 else
25 lose_these_too="${arc_files} ${lose_these_too}"
26 fi
27
28 v850_files="v850.h"
29
30 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
31 keep_these_too="${v850_files} ${keep_these_too}"
32 else
33 lose_these_too="${v850_files} ${lose_these_too}"
34 fi
35
36 m32r_files="m32r.h"
37
38 if ( echo $* | grep keep\-m32r > /dev/null ) ; then
39 keep_these_too="${m32r_files} ${keep_these_too}"
40 else
41 lose_these_too="${m32r_files} ${lose_these_too}"
42 fi
43
44 # All files listed between the "Things-to-keep:" line and the
45 # "Files-to-sed:" line will be kept. All other files will be removed.
46 # Directories listed in this section will have their own Sanitize
47 # called. Directories not listed will be removed in their entirety
48 # with rm -rf.
49
50 Things-to-keep:
51
52 ChangeLog
53 alpha.h
54 common.h
55 dwarf.h
56 dwarf2.h
57 external.h
58 hppa.h
59 internal.h
60 mips.h
61 ppc.h
62 sparc.h
63
64 Things-to-lose:
65
66 Do-last:
67
68 arc_files="ChangeLog common.h"
69 if ( echo $* | grep keep\-arc > /dev/null ) ; then
70 for i in $arc_files ; do
71 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
72 if [ -n "${verbose}" ] ; then
73 echo Keeping arc stuff in $i
74 fi
75 fi
76 done
77 else
78 for i in $arc_files ; do
79 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
80 if [ -n "${verbose}" ] ; then
81 echo Removing traces of \"arc\" from $i...
82 fi
83 cp $i new
84 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
85 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
86 if [ -n "${verbose}" ] ; then
87 echo Caching $i in .Recover...
88 fi
89 mv $i .Recover
90 fi
91 mv new $i
92 fi
93 done
94 fi
95
96 d30v_files="ChangeLog common.h"
97 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
98 for i in $d30v_files ; do
99 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
100 if [ -n "${verbose}" ] ; then
101 echo Keeping d30v stuff in $i
102 fi
103 fi
104 done
105 else
106 for i in $d30v_files ; do
107 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
108 if [ -n "${verbose}" ] ; then
109 echo Removing traces of \"d30v\" from $i...
110 fi
111 cp $i new
112 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
113 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
114 if [ -n "${verbose}" ] ; then
115 echo Caching $i in .Recover...
116 fi
117 mv $i .Recover
118 fi
119 mv new $i
120 fi
121 done
122 fi
123
124 m32r_files="ChangeLog common.h"
125 if ( echo $* | grep keep\-m32r > /dev/null ) ; then
126 for i in $m32r_files ; do
127 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
128 if [ -n "${verbose}" ] ; then
129 echo Keeping m32r stuff in $i
130 fi
131 fi
132 done
133 else
134 for i in $m32r_files ; do
135 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
136 if [ -n "${verbose}" ] ; then
137 echo Removing traces of \"m32r\" from $i...
138 fi
139 cp $i new
140 sed '/start\-sanitize\-m32r/,/end-\sanitize\-m32r/d' < $i > new
141 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
142 if [ -n "${verbose}" ] ; then
143 echo Caching $i in .Recover...
144 fi
145 mv $i .Recover
146 fi
147 mv new $i
148 fi
149 done
150 fi
151
152 v850_files="ChangeLog common.h"
153 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
154 for i in $v850_files ; do
155 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
156 if [ -n "${verbose}" ] ; then
157 echo Keeping v850 stuff in $i
158 fi
159 fi
160 done
161 else
162 for i in $v850_files ; do
163 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
164 if [ -n "${verbose}" ] ; then
165 echo Removing traces of \"v850\" from $i...
166 fi
167 cp $i new
168 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
169 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
170 if [ -n "${verbose}" ] ; then
171 echo Caching $i in .Recover...
172 fi
173 mv $i .Recover
174 fi
175 mv new $i
176 fi
177 done
178 fi
179
180 for i in * ; do
181 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
182 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
183 fi
184 done
185
186 # End of file.
This page took 0.041245 seconds and 4 git commands to generate.