Fix tx19 sanitization.
[binutils-gdb.git] / gdb / config / mips / .Sanitize
1 # .Sanitize for devo/gdb/config/mips.
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 tx19_files="tm-tx19.h tm-tx19l.h tx19.mt tx19l.mt"
19
20 if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
21 keep_these_too="${tx19_files} ${keep_these_too}"
22 if [ -n "${verbose}" ] ; then
23 echo Keeping ${tx19_files}
24 fi
25 else
26 lose_these_too="${tx19_files} ${lose_these_too}"
27 if [ -n "${verbose}" ] ; then
28 echo Deleting ${tx19_files}
29 fi
30 fi
31
32 # All files listed between the "Things-to-keep:" line and the
33 # "Files-to-sed:" line will be kept. All other files will be removed.
34 # Directories listed in this section will have their own Sanitize
35 # called. Directories not listed will be removed in their entirety
36 # with rm -rf.
37
38 Things-to-keep:
39
40 bigmips.mt
41 bigmips64.mt
42 decstation.mh
43 decstation.mt
44 embed.mt
45 embed64.mt
46 embedl.mt
47 embedl64.mt
48 irix3.mh
49 irix3.mt
50 irix4.mh
51 irix5.mh
52 irix5.mt
53 littlemips.mh
54 littlemips.mt
55 mipsel64.mt
56 mipsm3.mh
57 mipsm3.mt
58 mipsv4.mh
59 mipsv4.mt
60 news-mips.mh
61 nm-irix3.h
62 nm-irix4.h
63 nm-irix5.h
64 nm-mips.h
65 nm-news-mips.h
66 nm-riscos.h
67 riscos.mh
68 tm-bigmips.h
69 tm-bigmips64.h
70 tm-embed.h
71 tm-embed64.h
72 tm-embedl.h
73 tm-embedl64.h
74 tm-irix3.h
75 tm-irix5.h
76 tm-mips.h
77 tm-mips64.h
78 tm-mipsm3.h
79 tm-mipsv4.h
80 tm-tx39.h
81 tm-tx39l.h
82 tm-vr4300.h
83 tm-vr4300el.h
84 tm-vr5000.h
85 tm-vr5000el.h
86 tm-vxmips.h
87 tx39.mt
88 tx39l.mt
89 vr4300.mt
90 vr4300el.mt
91 vr5000.mt
92 vr5000el.mt
93 vxmips.mt
94 xm-irix3.h
95 xm-irix4.h
96 xm-irix5.h
97 xm-mips.h
98 xm-mipsm3.h
99 xm-mipsv4.h
100 xm-news-mips.h
101 xm-riscos.h
102
103 Things-to-lose:
104 r3900.mt
105 r3900l.mt
106 tm-r3900.h
107 tm-r3900l.h
108
109 Do-last:
110
111 if ( echo $* | grep keep\-gm > /dev/null ) ; then
112 for i in * ; do
113 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
114 if [ -n "${verbose}" ] ; then
115 echo Keeping gm stuff in $i
116 fi
117 fi
118 done
119 else
120 for i in * ; do
121 if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then
122 if [ -n "${verbose}" ] ; then
123 echo Removing traces of \"gm\" from $i...
124 fi
125 cp $i new
126 sed '/start\-sanitize\-gm/,/end-\sanitize\-gm/d' < $i > new
127 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
128 if [ -n "${verbose}" ] ; then
129 echo Caching $i in .Recover...
130 fi
131 mv $i .Recover
132 fi
133 mv new $i
134 fi
135 done
136 fi
137
138 # End of file.