The point of these changes is to avoid reading the frame pointer
[deliverable/binutils-gdb.git] / .Sanitize
1 # .Sanitize for devo.
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 cygnus_files="release release-info build-all.mk"
19
20 if ( echo $* | grep keep\-cygnus > /dev/null) ; then
21 keep_these_too="${keep_these_too} ${cygnus_files}"
22 else
23 lose_these_too="${lose_these_too} ${cygnus_files}"
24 fi
25
26 mpw_files="mpw-README mpw-configure mpw-config.in mpw-build.in ChangeLog.mpw"
27
28 if ( echo $* | grep keep\-mpw > /dev/null) ; then
29 keep_these_too="${keep_these_too} ${mpw_files}"
30 else
31 lose_these_too="${lose_these_too} ${mpw_files}"
32 fi
33
34 # All files listed between the "Things-to-keep:" line and the
35 # "Do-last:" line will be kept. All other files will be removed.
36 # Directories listed in this section will have their own Sanitize
37 # called. Directories not listed will be removed in their entirety
38 # with rm -rf.
39
40 Things-to-keep:
41
42 .cvsignore
43 COPYING
44 COPYING.LIB
45 COPYING.NEWLIB
46 CYGNUS
47 ChangeLog
48 Makefile.in
49 README
50 autoconf
51 bfd
52 binutils
53 byacc
54 config
55 config.guess
56 config.sub
57 configure
58 configure.in
59 cvs
60 deja-gnu
61 dejagnu
62 diff
63 dosrel
64 dvips
65 emacs
66 emacs19
67 etc
68 examples
69 expect
70 fileutils
71 flex
72 gas
73 gcc
74 gdb
75 gdbm
76 gdbtest
77 glob
78 gprof
79 grep
80 groff
81 include
82 install.sh
83 ispell
84 ld
85 libg++
86 libgcc
87 libgloss
88 libiberty
89 libio
90 librx
91 m4
92 make
93 mmalloc
94 move-if-change
95 newlib
96 opcodes
97 pagas
98 patch
99 prms
100 rcs
101 readline
102 sed
103 send-pr
104 shellutils
105 sim
106 tcl
107 textutils
108 tk
109 test-build.mk
110 texinfo
111 tgas
112 utils
113 uudecode
114 wdiff
115 xiberty
116
117 Things-to-lose:
118
119 # The lines between the "Do-last:" line and the end of the file
120 # are executed as a /bin/sh shell script after everything else is
121 # done.
122
123 Do-last:
124
125 if ( echo $* | egrep verbose > /dev/null ) ; then
126 verbose=true
127 else
128 verbose=
129 fi
130
131 # Remove "sanitize-Sanitize" lines.
132 if [ -n "${verbose}" ] ; then
133 echo Cleaning unconditional sanitizations out of Makefile.in...
134 fi
135 cp Makefile.in new
136 sed '/start\-sanitize\-Sanitize/,/end-\sanitize\-Sanitize/d' < Makefile.in > new
137 if [ -n "${safe}" -a ! -f .Recover/Makefile.in ] ; then
138 mv Makefile.in .Recover
139 fi
140 mv new Makefile.in
141
142 if [ -n "${verbose}" ] ; then
143 echo Thawing away the \"chill\"...
144 fi
145
146 # Don't try to clean directories here, as the 'mv' command will fail.
147 # Also, grep fails on NFS mounted directories.
148 if ( echo $* | grep keep\-chill > /dev/null ) ; then
149 for i in * ; do
150 if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then
151 if [ -n "${verbose}" ] ; then
152 echo Keeping chill stuff in $i
153 fi
154 fi
155 done
156 else
157 for i in * ; do
158 if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then
159 if [ -n "${verbose}" ] ; then
160 echo Thawing the \"chill\" out of $i...
161 fi
162 cp $i new
163 sed '/start\-sanitize\-chill/,/end-\sanitize\-chill/d' < $i > new
164 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
165 if [ -n "${verbose}" ] ; then
166 echo Caching $i in .Recover...
167 fi
168 mv $i .Recover
169 fi
170 mv new $i
171 fi
172 done
173 fi
174
175 if [ -n "${verbose}" ] ; then
176 echo Removing traces of \"mpw\"...
177 fi
178
179 # Don't try to clean directories here, as the 'mv' command will fail.
180 # Also, grep fails on NFS mounted directories.
181 if ( echo $* | grep keep\-mpw > /dev/null ) ; then
182 for i in * ; do
183 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
184 if [ -n "${verbose}" ] ; then
185 echo Keeping mpw stuff in $i
186 fi
187 fi
188 done
189 else
190 for i in * ; do
191 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
192 if [ -n "${verbose}" ] ; then
193 echo Removing traces of \"mpw\" from $i...
194 fi
195 cp $i new
196 sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/d' < $i > new
197 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
198 if [ -n "${verbose}" ] ; then
199 echo Caching $i in .Recover...
200 fi
201 mv $i .Recover
202 fi
203 mv new $i
204 fi
205 done
206 fi
207
208 for i in * ; do
209 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
210 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
211 fi
212 done
213
214 # eof
This page took 0.03474 seconds and 4 git commands to generate.