e9cf078de43b597f924f78dcfa209a0b86774f3c
[deliverable/binutils-gdb.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 mn10200.h
65 mn10300.h
66 np1.h
67 ns32k.h
68 pn.h
69 ppc.h
70 pyr.h
71 sparc.h
72 tahoe.h
73 vax.h
74
75 Things-to-lose:
76
77 Do-last:
78
79 arc_files="ChangeLog"
80 if ( echo $* | grep keep\-arc > /dev/null ) ; then
81 for i in $arc_files ; do
82 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
83 if [ -n "${verbose}" ] ; then
84 echo Keeping arc stuff in $i
85 fi
86 fi
87 done
88 else
89 for i in $arc_files ; do
90 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
91 if [ -n "${verbose}" ] ; then
92 echo Removing traces of \"arc\" from $i...
93 fi
94 cp $i new
95 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
96 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
97 if [ -n "${verbose}" ] ; then
98 echo Caching $i in .Recover...
99 fi
100 mv $i .Recover
101 fi
102 mv new $i
103 fi
104 done
105 fi
106
107
108 d10v_files="ChangeLog"
109 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
110 for i in $d10v_files ; do
111 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
112 if [ -n "${verbose}" ] ; then
113 echo Keeping d10v stuff in $i
114 fi
115 fi
116 done
117 else
118 for i in $d10v_files ; do
119 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
120 if [ -n "${verbose}" ] ; then
121 echo Removing traces of \"d10v\" from $i...
122 fi
123 cp $i new
124 sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new
125 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
126 if [ -n "${verbose}" ] ; then
127 echo Caching $i in .Recover...
128 fi
129 mv $i .Recover
130 fi
131 mv new $i
132 fi
133 done
134 fi
135
136 v850_files="ChangeLog"
137 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
138 for i in $v850_files ; do
139 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
140 if [ -n "${verbose}" ] ; then
141 echo Keeping v850 stuff in $i
142 fi
143 fi
144 done
145 else
146 for i in $v850_files ; do
147 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
148 if [ -n "${verbose}" ] ; then
149 echo Removing traces of \"v850\" from $i...
150 fi
151 cp $i new
152 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
153 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
154 if [ -n "${verbose}" ] ; then
155 echo Caching $i in .Recover...
156 fi
157 mv $i .Recover
158 fi
159 mv new $i
160 fi
161 done
162 fi
163
164
165 for i in * ; do
166 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
167 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
168 fi
169 done
170
171 # End of file.
This page took 0.038268 seconds and 3 git commands to generate.