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