No longer need to sanitize out tx39 bits
[deliverable/binutils-gdb.git] / config / .Sanitize
1 # .Sanitize for devo/config
2
3 # Each directory to survive its way into a release will need a file
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
14 # done in this directory.
15
16 Do-first:
17
18 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
19 keep_these_too="${keep_these_too} mt-r5900"
20 else
21 lose_these_too="${lose_these_too} mt-r5900"
22 fi
23
24 if ( echo $* | grep lose\-mswin > /dev/null ) ; then
25 lose_these_too="${lose_these_too} mh-windows"
26 else
27 keep_these_too="${keep_these_too} mh-windows"
28 fi
29
30 if ( echo $* | grep keep\-sky > /dev/null ) ; then
31 keep_these_too="${keep_these_too} mt-sky"
32 else
33 lose_these_too="${lose_these_too} mt-sky"
34 fi
35
36 # All files listed between the "Things-to-keep:" line and the
37 # "Do-last:" line will be kept. All other files will be removed.
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
42 Things-to-keep:
43
44 ChangeLog
45 mh-a68bsd
46 mh-aix386
47 mh-apollo68
48 mh-cxux
49 mh-cygwin32
50 mh-decstation
51 mh-delta88
52 mh-dgux
53 mh-dgux386
54 mh-elfalphapic
55 mh-go32
56 mh-hp300
57 mh-hpux
58 mh-hpux8
59 mh-irix4
60 mh-irix5
61 mh-irix6
62 mh-lynxos
63 mh-lynxrs6k
64 mh-m68kpic
65 mh-mingw32
66 mh-ncr3000
67 mh-ncrsvr43
68 mh-necv4
69 mh-papic
70 mh-ppcpic
71 mh-riscos
72 mh-sco
73 mh-solaris
74 mh-sparcpic
75 mh-sun3
76 mh-sysv
77 mh-sysv4
78 mh-sysv5
79 mh-vaxult2
80 mh-x86pic
81 mpw
82 mpw-mh-mpw
83 mt-elfalphapic
84 mt-linux
85 mt-m68kpic
86 mt-netware
87 mt-ospace
88 mt-papic
89 mt-ppcpic
90 mt-sparcpic
91 mt-v810
92 mt-x86pic
93
94 Things-to-lose:
95 acinclude.m4
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
102 Do-last:
103
104 r5900_files="ChangeLog"
105 if ( 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
113 else
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
130 fi
131
132 sky_files="ChangeLog"
133 if ( 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
141 else
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
158 fi
159
160 cygnus_files="mh-go32"
161 if ( 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
169 else
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
186 fi
187
188 # eof
This page took 0.033443 seconds and 4 git commands to generate.