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