* Makefile.in (underscore.c): Automatically generate
[deliverable/binutils-gdb.git] / .Sanitize
CommitLineData
43e36dd2 1# .Sanitize for devo.
a93b3c77
RP
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
43e36dd2 14# done in this directory.
a93b3c77
RP
15
16Do-first:
17
5d4ec851 18if ( echo $* | grep keep\-chill > /dev/null ) ; then
e90de1f5 19 keep_these_too="chillrt test-chill"
5d4ec851
FF
20fi
21
7d0eab7b
DZ
22if ( echo $* | grep keep\-cygnus > /dev/null) ; then
23 keep_these_too="${keep_these_too} release release-info"
24fi
25
26
a93b3c77 27# All files listed between the "Things-to-keep:" line and the
43e36dd2 28# "Do-last:" line will be kept. All other files will be removed.
a93b3c77
RP
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
c9b36b5f 35.cvsignore
6e37b215
PB
36COPYING
37COPYING.LIB
6227a92b 38CYGNUS
57d32184 39ChangeLog
a93b3c77 40Makefile.in
965a9f14 41README
28f760d3 42autoconf
d5eb68fa 43bfd
ebec4684 44binutils
4e0c2de7 45build-all.mk
6a2d7603 46byacc
a93b3c77 47config
5cc24596 48config.guess
db2de419 49config.sub
a93b3c77 50configure
e72c4b3a 51configure.bat
a93b3c77 52configure.in
cdabe523 53cvs
8ec1b2a1 54deja-gnu
d623fd7e 55dejagnu
5781b1ba 56diff
4e0c2de7 57dvips
cdabe523 58emacs
701df845 59etc
17519312 60expect
4e0c2de7 61fileutils
49df2308 62flex
a93b3c77 63gas
ebec4684
RP
64gcc
65gdb
f3d3d2cd 66gdbm
e72c4b3a 67gdbtest
f7f4df6a 68glob
9a14a29d 69gprof
5781b1ba 70grep
4e0c2de7 71groff
a93b3c77 72include
2dbd15d2 73ispell
ebec4684 74ld
0862386b 75libg++
e72c4b3a
RP
76libgcc
77libiberty
4e0c2de7 78m4
cdabe523 79make
d592622a 80mmalloc
e72c4b3a 81move-if-change
6ae8fff5 82newlib
aa06ff7e 83opcodes
57d32184 84patch
d42563da 85prms
3c8735af 86rcs
a93b3c77 87readline
4e0c2de7 88sed
00d8b290 89send-pr
4e0c2de7 90shellutils
da7e4b5c 91sim
17519312 92tcl
4e0c2de7
DZ
93textutils
94tk
c9b36b5f 95test-build.mk
d239963b 96texinfo
14bed8ee 97tgas
fa64be8d 98uudecode
4e0c2de7
DZ
99wdiff
100xiberty
a93b3c77 101
43e36dd2
RP
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
a93b3c77
RP
106Do-last:
107
eebff21c
JG
108echo 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.
112if ( 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
118else
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...
e00efef1 122 cp $i new
eebff21c
JG
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
eebff21c
JG
128 fi
129 done
130fi
131
5d4ec851
FF
132echo 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.
136if ( 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
142else
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
5d4ec851
FF
155fi
156
e11b54be
PB
157for 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
161done
57d32184
RP
162
163# eof
This page took 0.066603 seconds and 4 git commands to generate.