31ebb7c5f1b8c5c033e3b12036cdf53d225dce0d
[deliverable/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 fi
21
22 if ( echo $* | grep keep\-cygnus > /dev/null) ; then
23 keep_these_too="${keep_these_too} release release-info"
24 fi
25
26
27 # All files listed between the "Things-to-keep:" line and the
28 # "Do-last:" line will be kept. All other files will be removed.
29 # Directories listed in this section will have their own Sanitize
30 # called. Directories not listed will be removed in their entirety
31 # with rm -rf.
32
33 Things-to-keep:
34
35 .cvsignore
36 COPYING
37 COPYING.LIB
38 CYGNUS
39 ChangeLog
40 Makefile.in
41 README
42 autoconf
43 bfd
44 binutils
45 build-all.mk
46 byacc
47 config
48 config.guess
49 config.sub
50 configure
51 configure.bat
52 configure.in
53 cvs
54 deja-gnu
55 dejagnu
56 diff
57 dvips
58 emacs
59 etc
60 expect
61 fileutils
62 flex
63 gas
64 gcc
65 gdb
66 gdbm
67 gdbtest
68 glob
69 gprof
70 grep
71 groff
72 include
73 ispell
74 ld
75 libg++
76 libgcc
77 libiberty
78 m4
79 make
80 mmalloc
81 move-if-change
82 newlib
83 opcodes
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 uudecode
99 wdiff
100 xiberty
101
102 # The lines between the "Do-last:" line and the end of the file
103 # are executed as a /bin/sh shell script after everything else is
104 # done.
105
106 Do-last:
107
108 echo Looking for signs of \"v9\"...
109
110 # Don't try to clean directories here, as the 'mv' command will fail.
111 # Also, grep fails on NFS mounted directories.
112 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
113 for i in * ; do
114 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
115 echo Keeping v9 stuff in $i
116 fi
117 done
118 else
119 for i in * ; do
120 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
121 echo Cleaning the \"v9\" out of $i...
122 cp $i new
123 sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new
124 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
125 mv $i .Recover
126 fi
127 mv new $i
128 fi
129 done
130 fi
131
132 echo Thawing away the \"chill\"...
133
134 # Don't try to clean directories here, as the 'mv' command will fail.
135 # Also, grep fails on NFS mounted directories.
136 if ( echo $* | grep keep\-chill > /dev/null ) ; then
137 for i in * ; do
138 if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then
139 echo Keeping chill stuff in $i
140 fi
141 done
142 else
143 for i in * ; do
144 if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then
145 echo Thawing the \"chill\" out of $i...
146 cp $i new
147 sed '/start\-sanitize\-chill/,/end-\sanitize\-chill/d' < $i > new
148 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
149 echo Caching $i in .Recover...
150 mv $i .Recover
151 fi
152 mv new $i
153 fi
154 done
155 fi
156
157 for i in * ; do
158 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
159 echo Some mentions of Sanitize are still left in $i!
160 fi
161 done
162
163 # eof
This page took 0.032884 seconds and 4 git commands to generate.