* tic80.h (TIC80MAGIC): Renamed to TIC80_AOUTHDR_MAGIC.
[deliverable/binutils-gdb.git] / include / .Sanitize
1 # .Sanitize for devo/include.
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
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
25 Things-to-keep:
26
27 COPYING
28 ChangeLog
29 ansidecl.h
30 aout
31 bfdlink.h
32 bout.h
33 callback.h
34 coff
35 demangle.h
36 dis-asm.h
37 elf
38 floatformat.h
39 fnmatch.h
40 fopen-bin.h
41 fopen-same.h
42 fopen-vms.h
43 gdbm.h
44 getopt.h
45 hp-symtab.h
46 ieee.h
47 libiberty.h
48 mpw
49 nlm
50 oasys.h
51 obstack.h
52 os9k.h
53 opcode
54 progress.h
55 wait.h
56
57 Things-to-lose:
58
59
60 Do-last:
61
62 arc_files="ChangeLog dis-asm.h"
63 if ( echo $* | grep keep\-arc > /dev/null ) ; then
64 for i in $arc_files ; do
65 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
66 if [ -n "${verbose}" ] ; then
67 echo Keeping arc stuff in $i
68 fi
69 fi
70 done
71 else
72 for i in $arc_files ; do
73 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
74 if [ -n "${verbose}" ] ; then
75 echo Removing traces of \"arc\" from $i...
76 fi
77 cp $i new
78 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
79 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
80 if [ -n "${verbose}" ] ; then
81 echo Caching $i in .Recover...
82 fi
83 mv $i .Recover
84 fi
85 mv new $i
86 fi
87 done
88 fi
89
90
91 d10v_files="ChangeLog dis-asm.h"
92 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
93 for i in $d10v_files ; do
94 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
95 if [ -n "${verbose}" ] ; then
96 echo Keeping d10v stuff in $i
97 fi
98 fi
99 done
100 else
101 for i in $d10v_files ; do
102 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
103 if [ -n "${verbose}" ] ; then
104 echo Removing traces of \"d10v\" from $i...
105 fi
106 cp $i new
107 sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/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 m32r_files="ChangeLog dis-asm.h"
120 if ( echo $* | grep keep\-m32r > /dev/null ) ; then
121 for i in $m32r_files ; do
122 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
123 if [ -n "${verbose}" ] ; then
124 echo Keeping m32r stuff in $i
125 fi
126 fi
127 done
128 else
129 for i in $m32r_files ; do
130 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
131 if [ -n "${verbose}" ] ; then
132 echo Removing traces of \"m32r\" from $i...
133 fi
134 cp $i new
135 sed '/start\-sanitize\-m32r/,/end-\sanitize\-m32r/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 v850_files="ChangeLog dis-asm.h"
148 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
149 for i in $v850_files ; do
150 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
151 if [ -n "${verbose}" ] ; then
152 echo Keeping v850 stuff in $i
153 fi
154 fi
155 done
156 else
157 for i in $v850_files ; do
158 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
159 if [ -n "${verbose}" ] ; then
160 echo Removing traces of \"v850\" from $i...
161 fi
162 cp $i new
163 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/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 tic80_files="ChangeLog dis-asm.h"
176 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
177 for i in $tic80_files ; do
178 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
179 if [ -n "${verbose}" ] ; then
180 echo Keeping tic80 stuff in $i
181 fi
182 fi
183 done
184 else
185 for i in $tic80_files ; do
186 if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
187 if [ -n "${verbose}" ] ; then
188 echo Removing traces of \"tic80\" from $i...
189 fi
190 cp $i new
191 sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/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 for i in * ; do
204 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
205 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
206 fi
207 done
208
209 # End of file.
This page took 0.035697 seconds and 4 git commands to generate.