Thu Aug 8 12:27:52 1996 Klaus Kaempf <kkaempf@progis.de>
[deliverable/binutils-gdb.git] / gas / .Sanitize
CommitLineData
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
16Do-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
24Things-to-keep:
25
eee109cd 26CONTRIBUTORS
d4d5412d
RP
27COPYING
28ChangeLog
cdc49cba 29ChangeLog.1
d4d5412d 30Makefile.in
eee109cd 31NEWS
d4d5412d
RP
32NOTES
33NOTES.config
34README
eee109cd 35README-vms
6e71a03b
KR
36acconfig.h
37aclocal.m4
d4d5412d
RP
38app.c
39as.c
40as.h
41atof-generic.c
d4d5412d
RP
42bignum-copy.c
43bignum.h
eee109cd 44bit_fix.h
d4d5412d 45cond.c
6e71a03b 46conf.in
d4d5412d 47config
003acb2d 48config-gas.com
6e71a03b 49configure
c593cf41 50configure.bat
d4d5412d
RP
51configure.in
52debug.c
a262a1b2 53doc
9faec336
ILT
54ecoff.c
55ecoff.h
511cd41c
KR
56emul-target.h
57emul.h
d4d5412d
RP
58expr.c
59expr.h
d4d5412d 60flonum-copy.c
eee109cd 61flonum-konst.c
d4d5412d
RP
62flonum-mult.c
63flonum.h
64frags.c
65frags.h
a5a4b5ac 66gasp.c
aa4f6c56 67gdbinit.in
d4d5412d
RP
68hash.c
69hash.h
d4d5412d
RP
70input-file.c
71input-file.h
72input-scrub.c
920babce 73link.cmd
d7d28d22
RP
74listing.c
75listing.h
2d29d89d 76literal.c
4c72b6a7 77mac-as.r
7e047ac2
ILT
78macro.c
79macro.h
d4d5412d 80messages.c
0fb26eac 81mpw-config.in
4c72b6a7 82mpw-make.sed
d4d5412d 83obj.h
d4d5412d
RP
84output-file.c
85output-file.h
86read.c
87read.h
7e047ac2
ILT
88sb.c
89sb.h
29249b42 90stabs.c
d4d5412d
RP
91struc-symbol.h
92subsegs.c
93subsegs.h
94symbols.c
95symbols.h
96tc.h
f70a4714 97testsuite
be2fc7ec 98vmsconf.sh
d4d5412d
RP
99write.c
100write.h
101xmalloc.c
d4d5412d 102
87756e15
RP
103Things-to-lose:
104
d4d5412d
RP
105Do-last:
106
cdc49cba 107arc_files="ChangeLog configure.in configure Makefile.in ChangeLog.1"
6ea93cc9
DE
108if ( 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
116else
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
133fi
134
204c73d8
SS
135if ( 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
143else
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
160fi
161
3d0afe12 162
7be9a312
MH
163d10v_files="ChangeLog configure.in configure Makefile.in"
164if ( 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
172else
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
189fi
190
5c680afd
MT
191for 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
195done
196
d4d5412d 197#
d4d5412d 198# End of file.
This page took 0.225001 seconds and 4 git commands to generate.