Wed Mar 12 21:44:19 1997 Eric Youngdale <eric@andante.jic.com>
[deliverable/binutils-gdb.git] / sim / .Sanitize
CommitLineData
b0c9f026
SC
1# .Sanitize for devo/sim.
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
16Do-first:
17
81ca9d3b
DE
18m32r_files="m32r"
19if ( echo $* | grep keep\-m32r > /dev/null ) ; then
20 keep_these_too="${m32r_files} ${keep_these_too}"
21else
22 lose_these_too="${m32r_files} ${lose_these_too}"
23fi
24
82feb39e
JL
25v850_files="v850"
26if ( echo $* | grep keep\-v850 > /dev/null ) ; then
27 keep_these_too="${v850_files} ${keep_these_too}"
28else
29 lose_these_too="${v850_files} ${lose_these_too}"
30fi
31
317df3b5
AC
32d30v_files="d30v igen"
33if ( echo $* | grep keep\-d30v > /dev/null ) ; then
34 keep_these_too="${d30v_files} ${keep_these_too}"
35else
36 lose_these_too="${d30v_files} ${lose_these_too}"
37fi
38
b0c9f026
SC
39# All files listed between the "Things-to-keep:" line and the
40# "Files-to-sed:" line will be kept. All other files will be removed.
41# Directories listed in this section will have their own Sanitize
42# called. Directories not listed will be removed in their entirety
43# with rm -rf.
44
45Things-to-keep:
46
83a4c26f 47ChangeLog
55538130 48Makefile.in
117224ea 49README-HACKING
d32033ad 50arm
1ffd292b 51configure
b0c9f026 52configure.in
60181796 53common
22540e2d 54d10v
fd58f4b1 55erc32
b0c9f026 56h8300
a66ad4b2 57h8500
2f82f755 58mips
c1848bd2 59mn10200
05ccbdfd 60mn10300
cb7a6892 61ppc
594266fc 62sh
4a5947d0 63w65
b0c9f026
SC
64z8k
65
87756e15
RP
66Things-to-lose:
67
b0c9f026
SC
68Do-last:
69
d9c0593f
DE
70m32r_files="configure configure.in ChangeLog"
71if ( echo $* | grep keep\-m32r > /dev/null ) ; then
72 for i in $m32r_files ; do
73 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
74 if [ -n "${verbose}" ] ; then
75 echo Keeping m32r stuff in $i
76 fi
77 fi
78 done
79else
80 for i in $m32r_files ; do
81 if test ! -d $i && (grep sanitize-m32r $i > /dev/null) ; then
82 if [ -n "${verbose}" ] ; then
83 echo Removing traces of \"m32r\" from $i...
84 fi
85 cp $i new
86 sed '/start\-sanitize\-m32r/,/end-\sanitize\-m32r/d' < $i > new
87 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
88 if [ -n "${verbose}" ] ; then
89 echo Caching $i in .Recover...
90 fi
91 mv $i .Recover
92 fi
93 mv new $i
94 fi
95 done
96fi
97
82feb39e
JL
98v850_files="configure configure.in ChangeLog"
99if ( echo $* | grep keep\-v850 > /dev/null ) ; then
100 for i in $v850_files ; do
101 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
102 if [ -n "${verbose}" ] ; then
103 echo Keeping v850 stuff in $i
104 fi
105 fi
106 done
107else
108 for i in $v850_files ; do
109 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
110 if [ -n "${verbose}" ] ; then
111 echo Removing traces of \"v850\" from $i...
112 fi
113 cp $i new
114 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
115 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
116 if [ -n "${verbose}" ] ; then
117 echo Caching $i in .Recover...
118 fi
119 mv $i .Recover
120 fi
121 mv new $i
122 fi
123 done
124fi
317df3b5
AC
125
126d30v_files="configure configure.in ChangeLog"
127if ( echo $* | grep keep\-d30v > /dev/null ) ; then
128 for i in $d30v_files ; do
129 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
130 if [ -n "${verbose}" ] ; then
131 echo Keeping d30v stuff in $i
132 fi
133 fi
134 done
135else
136 for i in $d30v_files ; do
137 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
138 if [ -n "${verbose}" ] ; then
139 echo Removing traces of \"d30v\" from $i...
140 fi
141 cp $i new
142 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
143 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
144 if [ -n "${verbose}" ] ; then
145 echo Caching $i in .Recover...
146 fi
147 mv $i .Recover
148 fi
149 mv new $i
150 fi
151 done
152fi
153
745a0437
MH
154for i in * ; do
155 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
156 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
157 fi
158done
159
b0c9f026 160# End of file.
This page took 0.151429 seconds and 4 git commands to generate.