]> Git Repo - binutils.git/blob - include/opcode/.Sanitize
* v850.h: New file.
[binutils.git] / include / opcode / .Sanitize
1 # .Sanitize for devo/include/opcode.
2
3 # Each directory to survive it's 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 
15
16 Do-first:
17
18 arc_files="arc.h"
19
20 if ( echo $* | grep keep\-arc > /dev/null ) ; then
21         keep_these_too="${arc_files} ${keep_these_too}"
22 else
23         lose_these_too="${arc_files} ${lose_these_too}"
24 fi
25
26 d10v_files="d10v.h"
27
28 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
29         keep_these_too="${d10v_files} ${keep_these_too}"
30 else
31         lose_these_too="${d10v_files} ${lose_these_too}"
32 fi
33
34 v850_files="v850.h"
35
36 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
37         keep_these_too="${v850_files} ${keep_these_too}"
38 else
39         lose_these_too="${v850_files} ${lose_these_too}"
40 fi
41
42
43 # All files listed between the "Things-to-keep:" line and the
44 # "Files-to-sed:" line will be kept.  All other files will be removed.
45 # Directories listed in this section will have their own Sanitize
46 # called.  Directories not listed will be removed in their entirety
47 # with rm -rf.
48
49 Things-to-keep:
50
51 ChangeLog
52 a29k.h
53 alpha.h
54 arm.h
55 convex.h
56 h8300.h
57 hppa.h
58 i386.h
59 i860.h
60 i960.h
61 m68k.h
62 m88k.h
63 mips.h
64 np1.h
65 ns32k.h
66 pn.h
67 ppc.h
68 pyr.h
69 sparc.h
70 tahoe.h
71 vax.h
72
73 Things-to-lose:
74
75 Do-last:
76
77 arc_files="ChangeLog"
78 if ( echo $* | grep keep\-arc > /dev/null ) ; then
79         for i in $arc_files ; do
80                 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
81                         if [ -n "${verbose}" ] ; then
82                                 echo Keeping arc stuff in $i
83                         fi
84                 fi
85         done
86 else
87         for i in $arc_files ; do
88                 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
89                         if [ -n "${verbose}" ] ; then
90                                 echo Removing traces of \"arc\" from $i...
91                         fi
92                         cp $i new
93                         sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
94                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
95                                 if [ -n "${verbose}" ] ; then
96                                         echo Caching $i in .Recover...
97                                 fi
98                                 mv $i .Recover
99                         fi
100                         mv new $i
101                 fi
102         done
103 fi
104
105
106 d10v_files="ChangeLog"
107 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
108         for i in $d10v_files ; do
109                 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
110                         if [ -n "${verbose}" ] ; then
111                                 echo Keeping d10v stuff in $i
112                         fi
113                 fi
114         done
115 else
116         for i in $d10v_files ; do
117                 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
118                         if [ -n "${verbose}" ] ; then
119                                 echo Removing traces of \"d10v\" from $i...
120                         fi
121                         cp $i new
122                         sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new
123                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
124                                 if [ -n "${verbose}" ] ; then
125                                         echo Caching $i in .Recover...
126                                 fi
127                                 mv $i .Recover
128                         fi
129                         mv new $i
130                 fi
131         done
132 fi
133
134 v850_files="ChangeLog"
135 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
136         for i in $v850_files ; do
137                 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
138                         if [ -n "${verbose}" ] ; then
139                                 echo Keeping v850 stuff in $i
140                         fi
141                 fi
142         done
143 else
144         for i in $v850_files ; do
145                 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
146                         if [ -n "${verbose}" ] ; then
147                                 echo Removing traces of \"v850\" from $i...
148                         fi
149                         cp $i new
150                         sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
151                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
152                                 if [ -n "${verbose}" ] ; then
153                                         echo Caching $i in .Recover...
154                                 fi
155                                 mv $i .Recover
156                         fi
157                         mv new $i
158                 fi
159         done
160 fi
161
162
163 for i in * ; do
164         if test ! -d $i && (grep sanitize $i > /dev/null) ; then
165                 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
166         fi
167 done
168
169 # End of file.
This page took 0.031479 seconds and 4 git commands to generate.