Commit | Line | Data |
---|---|---|
a6148eeb | 1 | # .Sanitize for devo/gas. |
d4d5412d | 2 | |
4f5d16c7 | 3 | # Each directory to survive its way into a release will need a file |
d4d5412d 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 | |
a6148eeb | 14 | # done in this directory. |
d4d5412d RP |
15 | |
16 | Do-first: | |
17 | ||
d4d5412d RP |
18 | # All files listed between the "Things-to-keep:" line and the |
19 | # "Files-to-sed:" 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 | ||
eee109cd | 26 | CONTRIBUTORS |
d4d5412d RP |
27 | COPYING |
28 | ChangeLog | |
cdc49cba | 29 | ChangeLog.1 |
d4d5412d | 30 | Makefile.in |
eee109cd | 31 | NEWS |
d4d5412d RP |
32 | NOTES |
33 | NOTES.config | |
34 | README | |
920babce | 35 | README-quirks |
eee109cd | 36 | README-vms |
d4d5412d RP |
37 | README.coff |
38 | README.rich | |
6e71a03b KR |
39 | acconfig.h |
40 | aclocal.m4 | |
d4d5412d RP |
41 | app.c |
42 | as.c | |
43 | as.h | |
44 | atof-generic.c | |
d4d5412d RP |
45 | bignum-copy.c |
46 | bignum.h | |
eee109cd | 47 | bit_fix.h |
d4d5412d | 48 | cond.c |
6e71a03b | 49 | conf.in |
d4d5412d | 50 | config |
003acb2d | 51 | config-gas.com |
6e71a03b | 52 | configure |
c593cf41 | 53 | configure.bat |
d4d5412d RP |
54 | configure.in |
55 | debug.c | |
a262a1b2 | 56 | doc |
9faec336 ILT |
57 | ecoff.c |
58 | ecoff.h | |
511cd41c KR |
59 | emul-target.h |
60 | emul.h | |
d4d5412d RP |
61 | expr.c |
62 | expr.h | |
d4d5412d | 63 | flonum-copy.c |
eee109cd | 64 | flonum-konst.c |
d4d5412d RP |
65 | flonum-mult.c |
66 | flonum.h | |
67 | frags.c | |
68 | frags.h | |
a5a4b5ac | 69 | gasp.c |
aa4f6c56 | 70 | gdbinit.in |
d4d5412d RP |
71 | hash.c |
72 | hash.h | |
d4d5412d RP |
73 | input-file.c |
74 | input-file.h | |
75 | input-scrub.c | |
920babce | 76 | link.cmd |
d7d28d22 RP |
77 | listing.c |
78 | listing.h | |
2d29d89d | 79 | literal.c |
4c72b6a7 | 80 | mac-as.r |
7e047ac2 ILT |
81 | macro.c |
82 | macro.h | |
d4d5412d | 83 | messages.c |
0fb26eac | 84 | mpw-config.in |
4c72b6a7 | 85 | mpw-make.sed |
d4d5412d | 86 | obj.h |
d4d5412d RP |
87 | output-file.c |
88 | output-file.h | |
89 | read.c | |
90 | read.h | |
7e047ac2 ILT |
91 | sb.c |
92 | sb.h | |
29249b42 | 93 | stabs.c |
d4d5412d RP |
94 | struc-symbol.h |
95 | subsegs.c | |
96 | subsegs.h | |
97 | symbols.c | |
98 | symbols.h | |
99 | tc.h | |
f70a4714 | 100 | testsuite |
be2fc7ec | 101 | vmsconf.sh |
d4d5412d RP |
102 | write.c |
103 | write.h | |
104 | xmalloc.c | |
d4d5412d | 105 | |
87756e15 RP |
106 | Things-to-lose: |
107 | ||
d4d5412d RP |
108 | Do-last: |
109 | ||
cdc49cba | 110 | i960xl_files="ChangeLog ChangeLog.1" |
10db66ec KR |
111 | if ( echo $* | grep keep\-i960xl > /dev/null ) ; then |
112 | if [ -n "${verbose}" ] ; then | |
113 | echo Keeping i960xl stuff in $i960xl_files. | |
114 | fi | |
115 | else | |
116 | if [ -n "${verbose}" ]; then | |
117 | echo -n Cleaning i960xl in `pwd`: | |
118 | fi | |
119 | for f in $i960xl_files ; do | |
120 | if [ -n "${verbose}" ] ; then | |
121 | echo -n " " $f | |
122 | fi | |
123 | sed '/start\-sanitize\-i960xl/,/end\-sanitize\-i960xl/d' < $f > new | |
124 | if [ -n "${safe}" ] ; then | |
125 | mv $f .Recover | |
126 | fi | |
127 | mv new $f | |
128 | done | |
0afed96a KR |
129 | if [ -n "${verbose}" ]; then |
130 | echo "" | |
131 | fi | |
10db66ec KR |
132 | fi |
133 | ||
cdc49cba | 134 | sh3e_files="ChangeLog ChangeLog.1" |
68d04794 JL |
135 | if ( echo $* | grep keep\-sh3e > /dev/null ) ; then |
136 | if [ -n "${verbose}" ] ; then | |
137 | echo Keeping sh3e stuff in $sh3e_files. | |
138 | fi | |
139 | else | |
140 | if [ -n "${verbose}" ]; then | |
141 | echo -n Cleaning sh3e in `pwd`: | |
142 | fi | |
143 | for f in $sh3e_files ; do | |
144 | if [ -n "${verbose}" ] ; then | |
145 | echo -n " " $f | |
146 | fi | |
147 | sed -e '/start\-sanitize\-sh3e/,/end\-sanitize\-sh3e/d' -e '/ xl /d' < $f > new | |
148 | if [ -n "${safe}" ] ; then | |
149 | mv $f .Recover | |
150 | fi | |
151 | mv new $f | |
152 | done | |
0afed96a KR |
153 | if [ -n "${verbose}" ]; then |
154 | echo "" | |
155 | fi | |
68d04794 JL |
156 | fi |
157 | ||
46618ae6 | 158 | rce_files="configure.in configure ChangeLog Makefile.in ChangeLog.1" |
9f554efd | 159 | |
03c4ce2f MT |
160 | if ( echo $* | grep keep\-rce > /dev/null ) ; then |
161 | for i in $rce_files ; do | |
162 | if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then | |
5c680afd | 163 | if [ -n "${verbose}" ] ; then |
03c4ce2f | 164 | echo Keeping rce stuff in $i |
5c680afd MT |
165 | fi |
166 | fi | |
167 | done | |
168 | else | |
03c4ce2f MT |
169 | for i in $rce_files ; do |
170 | if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then | |
5c680afd | 171 | if [ -n "${verbose}" ] ; then |
03c4ce2f | 172 | echo Removing traces of \"rce\" from $i... |
5c680afd MT |
173 | fi |
174 | cp $i new | |
03c4ce2f | 175 | sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new |
5c680afd MT |
176 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
177 | if [ -n "${verbose}" ] ; then | |
178 | echo Caching $i in .Recover... | |
179 | fi | |
180 | mv $i .Recover | |
181 | fi | |
182 | mv new $i | |
183 | fi | |
184 | done | |
185 | fi | |
186 | ||
cdc49cba | 187 | arc_files="ChangeLog configure.in configure Makefile.in ChangeLog.1" |
6ea93cc9 DE |
188 | if ( echo $* | grep keep\-arc > /dev/null ) ; then |
189 | for i in $arc_files ; do | |
190 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
191 | if [ -n "${verbose}" ] ; then | |
192 | echo Keeping arc stuff in $i | |
193 | fi | |
194 | fi | |
195 | done | |
196 | else | |
197 | for i in $arc_files ; do | |
198 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
199 | if [ -n "${verbose}" ] ; then | |
200 | echo Removing traces of \"arc\" from $i... | |
201 | fi | |
202 | cp $i new | |
203 | sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new | |
204 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
205 | if [ -n "${verbose}" ] ; then | |
206 | echo Caching $i in .Recover... | |
207 | fi | |
208 | mv $i .Recover | |
209 | fi | |
210 | mv new $i | |
211 | fi | |
212 | done | |
213 | fi | |
214 | ||
204c73d8 SS |
215 | if ( echo $* | grep keep\-gm > /dev/null ) ; then |
216 | for i in * ; do | |
217 | if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then | |
218 | if [ -n "${verbose}" ] ; then | |
219 | echo Keeping gm stuff in $i | |
220 | fi | |
221 | fi | |
222 | done | |
223 | else | |
224 | for i in * ; do | |
225 | if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then | |
226 | if [ -n "${verbose}" ] ; then | |
227 | echo Removing traces of \"gm\" from $i... | |
228 | fi | |
229 | cp $i new | |
230 | sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new | |
231 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
232 | if [ -n "${verbose}" ] ; then | |
233 | echo Caching $i in .Recover... | |
234 | fi | |
235 | mv $i .Recover | |
236 | fi | |
237 | mv new $i | |
238 | fi | |
239 | done | |
240 | fi | |
241 | ||
5c680afd MT |
242 | for i in * ; do |
243 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then | |
244 | echo '***' Some mentions of Sanitize are still left in $i! 1>&2 | |
245 | fi | |
246 | done | |
247 | ||
d4d5412d | 248 | # |
d4d5412d | 249 | # End of file. |