regenerate fr30-opc.c
[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
734fb33c 47mh-aix43
d96234d2 48mh-apollo68
d4e36233 49mh-cxux
354a246b 50mh-cygwin
dd1f25e0 51mh-decstation
1f2f0a94
SC
52mh-delta88
53mh-dgux
32731d2b 54mh-dgux386
0186b094 55mh-elfalphapic
eebd76cb 56mh-go32
a9cad591 57mh-hp300
1b05371e 58mh-hpux
3cbb8192 59mh-hpux8
407a8389 60mh-irix4
aab15bdb 61mh-irix5
f3eca1ac 62mh-irix6
4677e30f 63mh-lynxos
461004f3 64mh-lynxrs6k
0e1ad456 65mh-m68kpic
0b0bd98b 66mh-mingw32
b0680d31 67mh-ncr3000
d376e43b 68mh-ncrsvr43
e4115748 69mh-necv4
6764c4cd 70mh-papic
897832ee 71mh-ppcpic
7bf617cf 72mh-riscos
77e4df42 73mh-sco
4358b911 74mh-solaris
6764c4cd 75mh-sparcpic
97c86946 76mh-sun3
1f2f0a94 77mh-sysv
18ab66f2 78mh-sysv4
21191d34 79mh-sysv5
d3c06c91 80mh-vaxult2
6764c4cd 81mh-x86pic
a528763a 82mpw
3c7c1a88 83mpw-mh-mpw
0186b094 84mt-elfalphapic
232e4b35 85mt-linux
0e1ad456 86mt-m68kpic
6764c4cd 87mt-netware
b2c17b4c 88mt-ospace
45329a2c 89mt-papic
897832ee 90mt-ppcpic
45329a2c 91mt-sparcpic
6764c4cd
JM
92mt-v810
93mt-x86pic
0fd8d5d9 94
87756e15 95Things-to-lose:
c5a81aaf 96acinclude.m4
b2c17b4c
ILT
97
98
99# The lines between the "Do-last:" line and the end of the file
100# are executed as a /bin/sh shell script after everything else is
101# done.
102
63e79660 103Do-last:
0fd8d5d9 104
54d5e0fb 105r5900_files="ChangeLog"
54d5e0fb
AMT
106if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
107 for i in $r5900_files ; do
108 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
109 if [ -n "${verbose}" ] ; then
110 echo Keeping r5900 stuff in $i
111 fi
112 fi
113 done
114else
115 for i in $r5900_files ; do
116 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
117 if [ -n "${verbose}" ] ; then
118 echo Removing traces of \"r5900\" from $i...
119 fi
120 cp $i new
121 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
122 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
123 if [ -n "${verbose}" ] ; then
124 echo Caching $i in .Recover...
125 fi
126 mv $i .Recover
127 fi
128 mv new $i
129 fi
130 done
131fi
132
66f3fbe1
DE
133sky_files="ChangeLog"
134if ( echo $* | grep keep\-sky > /dev/null ) ; then
135 for i in $sky_files ; do
136 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
137 if [ -n "${verbose}" ] ; then
138 echo Keeping sky stuff in $i
139 fi
140 fi
141 done
142else
143 for i in $sky_files ; do
144 if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
145 if [ -n "${verbose}" ] ; then
146 echo Removing traces of \"sky\" from $i...
147 fi
148 cp $i new
149 sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new
150 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
151 if [ -n "${verbose}" ] ; then
152 echo Caching $i in .Recover...
153 fi
154 mv $i .Recover
155 fi
156 mv new $i
157 fi
158 done
159fi
160
6cd41c5e 161cygnus_files="mh-go32"
6cd41c5e
ILT
162if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
163 for i in $cygnus_files ; do
164 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
165 if [ -n "${verbose}" ] ; then
166 echo Keeping cygnus stuff in $i
167 fi
168 fi
169 done
170else
171 for i in $cygnus_files ; do
172 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
173 if [ -n "${verbose}" ] ; then
174 echo Removing traces of \"cygnus\" from $i...
175 fi
176 cp $i new
177 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
178 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
179 if [ -n "${verbose}" ] ; then
180 echo Caching $i in .Recover...
181 fi
182 mv $i .Recover
183 fi
184 mv new $i
185 fi
186 done
187fi
54d5e0fb 188
b2c17b4c 189# eof
This page took 0.218937 seconds and 4 git commands to generate.