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