1998-10-20 Syd Polk <spolk@cygnus.com>
[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-aix43
48 mh-apollo68
49 mh-cxux
50 mh-cygwin32
51 mh-decstation
52 mh-delta88
53 mh-dgux
54 mh-dgux386
55 mh-elfalphapic
56 mh-go32
57 mh-hp300
58 mh-hpux
59 mh-hpux8
60 mh-irix4
61 mh-irix5
62 mh-irix6
63 mh-lynxos
64 mh-lynxrs6k
65 mh-m68kpic
66 mh-mingw32
67 mh-ncr3000
68 mh-ncrsvr43
69 mh-necv4
70 mh-papic
71 mh-ppcpic
72 mh-riscos
73 mh-sco
74 mh-solaris
75 mh-sparcpic
76 mh-sun3
77 mh-sysv
78 mh-sysv4
79 mh-sysv5
80 mh-vaxult2
81 mh-x86pic
82 mpw
83 mpw-mh-mpw
84 mt-elfalphapic
85 mt-linux
86 mt-m68kpic
87 mt-netware
88 mt-ospace
89 mt-papic
90 mt-ppcpic
91 mt-sparcpic
92 mt-v810
93 mt-x86pic
94
95 Things-to-lose:
96 acinclude.m4
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
103 Do-last:
104
105 r5900_files="ChangeLog"
106 if ( 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
114 else
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
131 fi
132
133 sky_files="ChangeLog"
134 if ( 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
142 else
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
159 fi
160
161 cygnus_files="mh-go32"
162 if ( 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
170 else
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
187 fi
188
189 # eof
This page took 0.049063 seconds and 4 git commands to generate.