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