* scripttempl/elf.sc: Merge .sdata.* etc sections.
[deliverable/binutils-gdb.git] / config / .Sanitize
CommitLineData
b2c17b4c 1# .Sanitize for devo/config
b6597455
SS
2
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
b6597455 14# done in this directory.
0fd8d5d9
RP
15
16Do-first:
17
276c2d7d
GRK
18if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
19 keep_these_too="${keep_these_too} mt-r5900"
20else
21 lose_these_too="${lose_these_too} mt-r5900"
22fi
23
5266a484 24if ( echo $* | grep lose\-mswin > /dev/null ) ; then
043fadbe 25 lose_these_too="${lose_these_too} mh-windows"
5266a484
FF
26else
27 keep_these_too="${keep_these_too} mh-windows"
043fadbe
FF
28fi
29
66f3fbe1
DE
30if ( echo $* | grep keep\-sky > /dev/null ) ; then
31 keep_these_too="${keep_these_too} mt-sky"
32else
33 lose_these_too="${lose_these_too} mt-sky"
34fi
35
0fd8d5d9 36# All files listed between the "Things-to-keep:" line and the
b2c17b4c 37# "Do-last:" line will be kept. All other files will be removed.
0fd8d5d9
RP
38# Directories listed in this section will have their own Sanitize
39# called. Directories not listed will be removed in their entirety
40# with rm -rf.
41
42Things-to-keep:
43
a19cc981 44ChangeLog
70faae66 45mh-a68bsd
04947ce1 46mh-aix386
d96234d2 47mh-apollo68
d4e36233 48mh-cxux
48240671 49mh-cygwin32
dd1f25e0 50mh-decstation
1f2f0a94
SC
51mh-delta88
52mh-dgux
32731d2b 53mh-dgux386
0186b094 54mh-elfalphapic
eebd76cb 55mh-go32
a9cad591 56mh-hp300
1b05371e 57mh-hpux
3cbb8192 58mh-hpux8
407a8389 59mh-irix4
aab15bdb 60mh-irix5
f3eca1ac 61mh-irix6
4677e30f 62mh-lynxos
461004f3 63mh-lynxrs6k
0e1ad456 64mh-m68kpic
0b0bd98b 65mh-mingw32
b0680d31 66mh-ncr3000
d376e43b 67mh-ncrsvr43
e4115748 68mh-necv4
6764c4cd 69mh-papic
897832ee 70mh-ppcpic
7bf617cf 71mh-riscos
77e4df42 72mh-sco
4358b911 73mh-solaris
6764c4cd 74mh-sparcpic
97c86946 75mh-sun3
1f2f0a94 76mh-sysv
18ab66f2 77mh-sysv4
21191d34 78mh-sysv5
d3c06c91 79mh-vaxult2
6764c4cd 80mh-x86pic
a528763a 81mpw
3c7c1a88 82mpw-mh-mpw
0186b094 83mt-elfalphapic
232e4b35 84mt-linux
0e1ad456 85mt-m68kpic
6764c4cd 86mt-netware
b2c17b4c 87mt-ospace
45329a2c 88mt-papic
897832ee 89mt-ppcpic
45329a2c 90mt-sparcpic
6764c4cd
JM
91mt-v810
92mt-x86pic
0fd8d5d9 93
87756e15 94Things-to-lose:
c5a81aaf 95acinclude.m4
b2c17b4c
ILT
96
97
98# The lines between the "Do-last:" line and the end of the file
99# are executed as a /bin/sh shell script after everything else is
100# done.
101
63e79660 102Do-last:
0fd8d5d9 103
54d5e0fb 104r5900_files="ChangeLog"
54d5e0fb
AMT
105if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
106 for i in $r5900_files ; do
107 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
108 if [ -n "${verbose}" ] ; then
109 echo Keeping r5900 stuff in $i
110 fi
111 fi
112 done
113else
114 for i in $r5900_files ; do
115 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
116 if [ -n "${verbose}" ] ; then
117 echo Removing traces of \"r5900\" from $i...
118 fi
119 cp $i new
120 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
121 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
122 if [ -n "${verbose}" ] ; then
123 echo Caching $i in .Recover...
124 fi
125 mv $i .Recover
126 fi
127 mv new $i
128 fi
129 done
130fi
131
66f3fbe1
DE
132sky_files="ChangeLog"
133if ( echo $* | grep keep\-sky > /dev/null ) ; then
134 for i in $sky_files ; do
135 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
136 if [ -n "${verbose}" ] ; then
137 echo Keeping sky stuff in $i
138 fi
139 fi
140 done
141else
142 for i in $sky_files ; do
143 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
144 if [ -n "${verbose}" ] ; then
145 echo Removing traces of \"sky\" from $i...
146 fi
147 cp $i new
148 sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new
149 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
150 if [ -n "${verbose}" ] ; then
151 echo Caching $i in .Recover...
152 fi
153 mv $i .Recover
154 fi
155 mv new $i
156 fi
157 done
158fi
159
6cd41c5e 160cygnus_files="mh-go32"
6cd41c5e
ILT
161if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
162 for i in $cygnus_files ; do
163 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
164 if [ -n "${verbose}" ] ; then
165 echo Keeping cygnus stuff in $i
166 fi
167 fi
168 done
169else
170 for i in $cygnus_files ; do
171 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
172 if [ -n "${verbose}" ] ; then
173 echo Removing traces of \"cygnus\" from $i...
174 fi
175 cp $i new
176 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
177 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
178 if [ -n "${verbose}" ] ; then
179 echo Caching $i in .Recover...
180 fi
181 mv $i .Recover
182 fi
183 mv new $i
184 fi
185 done
186fi
54d5e0fb 187
b2c17b4c 188# eof
This page took 0.221192 seconds and 4 git commands to generate.