* dwarf2.c (parse_comp_unit): Drop use of unit->name when it is null.
[deliverable/binutils-gdb.git] / config / .Sanitize
CommitLineData
3c7c1a88 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
0fd8d5d9
RP
30# All files listed between the "Things-to-keep:" line and the
31# "Files-to-sed:" line will be kept. All other files will be removed.
32# Directories listed in this section will have their own Sanitize
33# called. Directories not listed will be removed in their entirety
34# with rm -rf.
35
36Things-to-keep:
37
a19cc981 38ChangeLog
70faae66 39mh-a68bsd
04947ce1 40mh-aix386
d96234d2 41mh-apollo68
d4e36233 42mh-cxux
48240671 43mh-cygwin32
dd1f25e0 44mh-decstation
1f2f0a94
SC
45mh-delta88
46mh-dgux
32731d2b 47mh-dgux386
0186b094 48mh-elfalphapic
eebd76cb 49mh-go32
a9cad591 50mh-hp300
1b05371e 51mh-hpux
3cbb8192 52mh-hpux8
407a8389 53mh-irix4
aab15bdb 54mh-irix5
f3eca1ac 55mh-irix6
4677e30f 56mh-lynxos
461004f3 57mh-lynxrs6k
0e1ad456 58mh-m68kpic
0b0bd98b 59mh-mingw32
b0680d31 60mh-ncr3000
d376e43b 61mh-ncrsvr43
e4115748 62mh-necv4
6764c4cd 63mh-papic
897832ee 64mh-ppcpic
7bf617cf 65mh-riscos
77e4df42 66mh-sco
4358b911 67mh-solaris
6764c4cd 68mh-sparcpic
97c86946 69mh-sun3
1f2f0a94 70mh-sysv
18ab66f2 71mh-sysv4
d3c06c91 72mh-vaxult2
6764c4cd 73mh-x86pic
a528763a 74mpw
3c7c1a88 75mpw-mh-mpw
0186b094 76mt-elfalphapic
232e4b35 77mt-linux
0e1ad456 78mt-m68kpic
6764c4cd 79mt-netware
45329a2c 80mt-papic
897832ee 81mt-ppcpic
45329a2c 82mt-sparcpic
6764c4cd
JM
83mt-v810
84mt-x86pic
0fd8d5d9 85
87756e15
RP
86Things-to-lose:
87
63e79660 88Do-last:
0fd8d5d9 89
54d5e0fb
AMT
90r5900_files="ChangeLog"
91
92if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
93 for i in $r5900_files ; do
94 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
95 if [ -n "${verbose}" ] ; then
96 echo Keeping r5900 stuff in $i
97 fi
98 fi
99 done
100else
101 for i in $r5900_files ; do
102 if test ! -d $i && (grep sanitize-r5900 $i > /dev/null) ; then
103 if [ -n "${verbose}" ] ; then
104 echo Removing traces of \"r5900\" from $i...
105 fi
106 cp $i new
107 sed '/start\-sanitize\-r5900/,/end-\sanitize\-r5900/d' < $i > new
108 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
109 if [ -n "${verbose}" ] ; then
110 echo Caching $i in .Recover...
111 fi
112 mv $i .Recover
113 fi
114 mv new $i
115 fi
116 done
117fi
118
6cd41c5e
ILT
119cygnus_files="mh-go32"
120
121if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
122 for i in $cygnus_files ; do
123 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
124 if [ -n "${verbose}" ] ; then
125 echo Keeping cygnus stuff in $i
126 fi
127 fi
128 done
129else
130 for i in $cygnus_files ; do
131 if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
132 if [ -n "${verbose}" ] ; then
133 echo Removing traces of \"cygnus\" from $i...
134 fi
135 cp $i new
136 sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
137 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
138 if [ -n "${verbose}" ] ; then
139 echo Caching $i in .Recover...
140 fi
141 mv $i .Recover
142 fi
143 mv new $i
144 fi
145 done
146fi
54d5e0fb 147
0fd8d5d9 148# End of file.
This page took 0.204084 seconds and 4 git commands to generate.