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 | |
eee109cd | 35 | README-vms |
6e71a03b KR |
36 | acconfig.h |
37 | aclocal.m4 | |
d4d5412d RP |
38 | app.c |
39 | as.c | |
40 | as.h | |
41 | atof-generic.c | |
d4d5412d RP |
42 | bignum-copy.c |
43 | bignum.h | |
eee109cd | 44 | bit_fix.h |
d4d5412d | 45 | cond.c |
6e71a03b | 46 | conf.in |
d4d5412d | 47 | config |
003acb2d | 48 | config-gas.com |
6e71a03b | 49 | configure |
c593cf41 | 50 | configure.bat |
d4d5412d RP |
51 | configure.in |
52 | debug.c | |
a262a1b2 | 53 | doc |
9faec336 ILT |
54 | ecoff.c |
55 | ecoff.h | |
511cd41c KR |
56 | emul-target.h |
57 | emul.h | |
d4d5412d RP |
58 | expr.c |
59 | expr.h | |
d4d5412d | 60 | flonum-copy.c |
eee109cd | 61 | flonum-konst.c |
d4d5412d RP |
62 | flonum-mult.c |
63 | flonum.h | |
64 | frags.c | |
65 | frags.h | |
a5a4b5ac | 66 | gasp.c |
aa4f6c56 | 67 | gdbinit.in |
d4d5412d RP |
68 | hash.c |
69 | hash.h | |
d4d5412d RP |
70 | input-file.c |
71 | input-file.h | |
72 | input-scrub.c | |
920babce | 73 | link.cmd |
d7d28d22 RP |
74 | listing.c |
75 | listing.h | |
2d29d89d | 76 | literal.c |
4c72b6a7 | 77 | mac-as.r |
7e047ac2 ILT |
78 | macro.c |
79 | macro.h | |
d4d5412d | 80 | messages.c |
0fb26eac | 81 | mpw-config.in |
4c72b6a7 | 82 | mpw-make.sed |
d4d5412d | 83 | obj.h |
d4d5412d RP |
84 | output-file.c |
85 | output-file.h | |
86 | read.c | |
87 | read.h | |
7e047ac2 ILT |
88 | sb.c |
89 | sb.h | |
29249b42 | 90 | stabs.c |
d4d5412d RP |
91 | struc-symbol.h |
92 | subsegs.c | |
93 | subsegs.h | |
94 | symbols.c | |
95 | symbols.h | |
96 | tc.h | |
f70a4714 | 97 | testsuite |
be2fc7ec | 98 | vmsconf.sh |
d4d5412d RP |
99 | write.c |
100 | write.h | |
101 | xmalloc.c | |
d4d5412d | 102 | |
87756e15 RP |
103 | Things-to-lose: |
104 | ||
d4d5412d RP |
105 | Do-last: |
106 | ||
cdc49cba | 107 | arc_files="ChangeLog configure.in configure Makefile.in ChangeLog.1" |
6ea93cc9 DE |
108 | if ( echo $* | grep keep\-arc > /dev/null ) ; then |
109 | for i in $arc_files ; do | |
110 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
111 | if [ -n "${verbose}" ] ; then | |
112 | echo Keeping arc stuff in $i | |
113 | fi | |
114 | fi | |
115 | done | |
116 | else | |
117 | for i in $arc_files ; do | |
118 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
119 | if [ -n "${verbose}" ] ; then | |
120 | echo Removing traces of \"arc\" from $i... | |
121 | fi | |
122 | cp $i new | |
123 | sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new | |
124 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
125 | if [ -n "${verbose}" ] ; then | |
126 | echo Caching $i in .Recover... | |
127 | fi | |
128 | mv $i .Recover | |
129 | fi | |
130 | mv new $i | |
131 | fi | |
132 | done | |
133 | fi | |
134 | ||
204c73d8 SS |
135 | if ( echo $* | grep keep\-gm > /dev/null ) ; then |
136 | for i in * ; do | |
137 | if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then | |
138 | if [ -n "${verbose}" ] ; then | |
139 | echo Keeping gm stuff in $i | |
140 | fi | |
141 | fi | |
142 | done | |
143 | else | |
144 | for i in * ; do | |
145 | if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then | |
146 | if [ -n "${verbose}" ] ; then | |
147 | echo Removing traces of \"gm\" from $i... | |
148 | fi | |
149 | cp $i new | |
150 | sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/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 | |
160 | fi | |
161 | ||
3d0afe12 | 162 | |
7be9a312 MH |
163 | d10v_files="ChangeLog configure.in configure Makefile.in" |
164 | if ( echo $* | grep keep\-d10v > /dev/null ) ; then | |
165 | for i in $d10v_files ; do | |
166 | if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then | |
167 | if [ -n "${verbose}" ] ; then | |
168 | echo Keeping d10v stuff in $i | |
169 | fi | |
170 | fi | |
171 | done | |
172 | else | |
173 | for i in $d10v_files ; do | |
174 | if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then | |
175 | if [ -n "${verbose}" ] ; then | |
176 | echo Removing traces of \"d10v\" from $i... | |
177 | fi | |
178 | cp $i new | |
179 | sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/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 | ||
5c680afd MT |
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 | ||
d4d5412d | 197 | # |
d4d5412d | 198 | # End of file. |