regenerate fr30-opc.c
[deliverable/binutils-gdb.git] / config / .Sanitize
... / ...
CommitLineData
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
16Do-first:
17
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
24if ( echo $* | grep lose\-mswin > /dev/null ) ; then
25 lose_these_too="${lose_these_too} mh-windows"
26else
27 keep_these_too="${keep_these_too} mh-windows"
28fi
29
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
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
42Things-to-keep:
43
44ChangeLog
45mh-a68bsd
46mh-aix386
47mh-aix43
48mh-apollo68
49mh-cxux
50mh-cygwin
51mh-decstation
52mh-delta88
53mh-dgux
54mh-dgux386
55mh-elfalphapic
56mh-go32
57mh-hp300
58mh-hpux
59mh-hpux8
60mh-irix4
61mh-irix5
62mh-irix6
63mh-lynxos
64mh-lynxrs6k
65mh-m68kpic
66mh-mingw32
67mh-ncr3000
68mh-ncrsvr43
69mh-necv4
70mh-papic
71mh-ppcpic
72mh-riscos
73mh-sco
74mh-solaris
75mh-sparcpic
76mh-sun3
77mh-sysv
78mh-sysv4
79mh-sysv5
80mh-vaxult2
81mh-x86pic
82mpw
83mpw-mh-mpw
84mt-elfalphapic
85mt-linux
86mt-m68kpic
87mt-netware
88mt-ospace
89mt-papic
90mt-ppcpic
91mt-sparcpic
92mt-v810
93mt-x86pic
94
95Things-to-lose:
96acinclude.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
103Do-last:
104
105r5900_files="ChangeLog"
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
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
161cygnus_files="mh-go32"
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
188
189# eof
This page took 0.023925 seconds and 4 git commands to generate.