* gas/config/tc-hppa.c (pa_comm): Set sy_frag for the common
[deliverable/binutils-gdb.git] / .Sanitize
CommitLineData
43e36dd2 1# .Sanitize for devo.
a93b3c77 2
5db7ecb7 3# Each directory to survive its way into a release will need a file
a93b3c77
RP
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
43e36dd2 14# done in this directory.
a93b3c77
RP
15
16Do-first:
17
eccc57e5 18cygnus_files="release release-info build-all.mk"
96c805d8 19
7d0eab7b 20if ( echo $* | grep keep\-cygnus > /dev/null) ; then
96c805d8 21 keep_these_too="${keep_these_too} ${cygnus_files}"
80cad9cc 22else
96c805d8 23 lose_these_too="${lose_these_too} ${cygnus_files}"
7d0eab7b
DZ
24fi
25
eccc57e5 26mpw_files="mpw-README mpw-configure mpw-config.in mpw-build.in ChangeLog.mpw"
96c805d8 27
5db7ecb7 28if ( echo $* | grep keep\-mpw > /dev/null) ; then
96c805d8 29 keep_these_too="${keep_these_too} ${mpw_files}"
5db7ecb7 30else
96c805d8 31 lose_these_too="${lose_these_too} ${mpw_files}"
5db7ecb7 32fi
7d0eab7b 33
a93b3c77 34# All files listed between the "Things-to-keep:" line and the
43e36dd2 35# "Do-last:" line will be kept. All other files will be removed.
a93b3c77
RP
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
40Things-to-keep:
41
c9b36b5f 42.cvsignore
6e37b215
PB
43COPYING
44COPYING.LIB
6227a92b 45CYGNUS
57d32184 46ChangeLog
a93b3c77 47Makefile.in
965a9f14 48README
28f760d3 49autoconf
d5eb68fa 50bfd
ebec4684 51binutils
6a2d7603 52byacc
a93b3c77 53config
5cc24596 54config.guess
db2de419 55config.sub
a93b3c77
RP
56configure
57configure.in
cdabe523 58cvs
8ec1b2a1 59deja-gnu
d623fd7e 60dejagnu
5781b1ba 61diff
632ee4a1 62dosrel
4e0c2de7 63dvips
cdabe523 64emacs
df9548f6 65emacs19
701df845 66etc
3cdf5901 67examples
17519312 68expect
4e0c2de7 69fileutils
49df2308 70flex
a93b3c77 71gas
ebec4684
RP
72gcc
73gdb
f3d3d2cd 74gdbm
e72c4b3a 75gdbtest
f7f4df6a 76glob
9a14a29d 77gprof
5781b1ba 78grep
4e0c2de7 79groff
a93b3c77 80include
4a01dc52 81install.sh
2dbd15d2 82ispell
ebec4684 83ld
0862386b 84libg++
e72c4b3a
RP
85libgcc
86libiberty
7c4dd2c8 87libio
4e0c2de7 88m4
cdabe523 89make
d592622a 90mmalloc
e72c4b3a 91move-if-change
6ae8fff5 92newlib
aa06ff7e 93opcodes
ba8acf46 94pagas
57d32184 95patch
d42563da 96prms
3c8735af 97rcs
a93b3c77 98readline
4e0c2de7 99sed
00d8b290 100send-pr
4e0c2de7 101shellutils
da7e4b5c 102sim
17519312 103tcl
4e0c2de7
DZ
104textutils
105tk
c9b36b5f 106test-build.mk
d239963b 107texinfo
14bed8ee 108tgas
ba8acf46 109utils
fa64be8d 110uudecode
4e0c2de7
DZ
111wdiff
112xiberty
a93b3c77 113
87756e15
RP
114Things-to-lose:
115
43e36dd2
RP
116# The lines between the "Do-last:" line and the end of the file
117# are executed as a /bin/sh shell script after everything else is
118# done.
119
a93b3c77
RP
120Do-last:
121
7b85349f
RP
122if ( echo $* | egrep verbose > /dev/null ) ; then
123 verbose=true
124else
125 verbose=
126fi
127
eecef7ef
FF
128# Remove "sanitize-Sanitize" lines.
129if [ -n "${verbose}" ] ; then
130 echo Cleaning unconditional sanitizations out of Makefile.in...
131fi
132cp Makefile.in new
133sed '/start\-sanitize\-Sanitize/,/end-\sanitize\-Sanitize/d' < Makefile.in > new
134if [ -n "${safe}" -a ! -f .Recover/Makefile.in ] ; then
135 mv Makefile.in .Recover
136fi
137mv new Makefile.in
138
7b85349f
RP
139if [ -n "${verbose}" ] ; then
140 echo Thawing away the \"chill\"...
141fi
5d4ec851
FF
142
143# Don't try to clean directories here, as the 'mv' command will fail.
144# Also, grep fails on NFS mounted directories.
145if ( echo $* | grep keep\-chill > /dev/null ) ; then
146 for i in * ; do
147 if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then
7b85349f
RP
148 if [ -n "${verbose}" ] ; then
149 echo Keeping chill stuff in $i
150 fi
5d4ec851
FF
151 fi
152 done
153else
154 for i in * ; do
155 if test ! -d $i && (grep sanitize-chill $i > /dev/null) ; then
7b85349f
RP
156 if [ -n "${verbose}" ] ; then
157 echo Thawing the \"chill\" out of $i...
158 fi
5d4ec851
FF
159 cp $i new
160 sed '/start\-sanitize\-chill/,/end-\sanitize\-chill/d' < $i > new
161 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
7b85349f
RP
162 if [ -n "${verbose}" ] ; then
163 echo Caching $i in .Recover...
164 fi
5d4ec851
FF
165 mv $i .Recover
166 fi
167 mv new $i
168 fi
169 done
5d4ec851
FF
170fi
171
5db7ecb7
SS
172if [ -n "${verbose}" ] ; then
173 echo Removing traces of \"mpw\"...
174fi
175
176# Don't try to clean directories here, as the 'mv' command will fail.
177# Also, grep fails on NFS mounted directories.
178if ( echo $* | grep keep\-mpw > /dev/null ) ; then
179 for i in * ; do
180 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
181 if [ -n "${verbose}" ] ; then
182 echo Keeping mpw stuff in $i
183 fi
184 fi
185 done
186else
187 for i in * ; do
188 if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
189 if [ -n "${verbose}" ] ; then
190 echo Removing traces of \"mpw\" from $i...
191 fi
192 cp $i new
193 sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/d' < $i > new
194 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
195 if [ -n "${verbose}" ] ; then
196 echo Caching $i in .Recover...
197 fi
198 mv $i .Recover
199 fi
200 mv new $i
201 fi
202 done
203fi
204
e11b54be
PB
205for i in * ; do
206 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
7b85349f 207 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
e11b54be
PB
208 fi
209done
57d32184
RP
210
211# eof
This page took 0.114891 seconds and 4 git commands to generate.