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