Improve doc of GDB config macros.
[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
a93b3c77 18# All files listed between the "Things-to-keep:" line and the
43e36dd2 19# "Do-last:" line will be kept. All other files will be removed.
a93b3c77
RP
20# Directories listed in this section will have their own Sanitize
21# called. Directories not listed will be removed in their entirety
22# with rm -rf.
23
24Things-to-keep:
25
c9b36b5f 26.cvsignore
6227a92b 27CYGNUS
57d32184 28ChangeLog
d77c6b93 29INSTALL
a93b3c77 30Makefile.in
965a9f14 31README
d77c6b93 32SUPPORTED
28f760d3 33autoconf
d5eb68fa 34bfd
ebec4684 35binutils
6a2d7603 36byacc
7d283cc1 37cfg-paper.texi
a93b3c77 38config
db2de419 39config.sub
a93b3c77 40configure
e72c4b3a 41configure.bat
a93b3c77 42configure.in
38c8a27e 43configure.man
b8bb8de3 44configure.texi
cdabe523 45cvs
8ec1b2a1 46deja-gnu
5781b1ba 47diff
cdabe523 48emacs
49df2308 49flex
a93b3c77 50gas
ebec4684
RP
51gcc
52gdb
f3d3d2cd 53gdbm
e72c4b3a 54gdbtest
f7f4df6a 55glob
9a14a29d 56gprof
5781b1ba 57grep
a93b3c77 58include
d77c6b93 59install.texinfo
2dbd15d2 60ispell
ebec4684 61ld
0862386b 62libg++
e72c4b3a
RP
63libgcc
64libiberty
cdabe523 65make
d592622a 66mmalloc
e72c4b3a 67move-if-change
6ae8fff5 68newlib
aa06ff7e 69opcodes
57d32184 70patch
d42563da 71prms
3c8735af 72rcs
a93b3c77 73readline
e72c4b3a 74send_pr
95a3881d 75standards.texi
c9b36b5f 76test-build.mk
d239963b 77texinfo
14bed8ee 78tgas
a93b3c77 79
43e36dd2
RP
80# The lines between the "Do-last:" line and the end of the file
81# are executed as a /bin/sh shell script after everything else is
82# done.
83
a93b3c77
RP
84Do-last:
85
eebff21c
JG
86echo Looking for signs of \"v9\"...
87
88# Don't try to clean directories here, as the 'mv' command will fail.
89# Also, grep fails on NFS mounted directories.
90if ( echo $* | grep keep\-v9 > /dev/null ) ; then
91 for i in * ; do
92 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
93 echo Keeping v9 stuff in $i
94 fi
95 done
96else
97 for i in * ; do
98 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
99 echo Cleaning the \"v9\" out of $i...
e00efef1 100 cp $i new
eebff21c
JG
101 sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new
102 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
103 mv $i .Recover
104 fi
105 mv new $i
eebff21c
JG
106 fi
107 done
108fi
109
320e1b86
JG
110echo Looking for signs of \"life\"...
111
112# Don't try to clean directories here, as the 'mv' command will fail.
113# Also, grep fails on NFS mounted directories.
114if ( echo $* | grep keep\-life > /dev/null ) ; then
115 for i in * ; do
116 if test ! -d $i && (grep sanitize-life $i > /dev/null) ; then
16871f33 117 echo Keeping life alive in $i
320e1b86
JG
118 fi
119 done
120else
121 for i in * ; do
122 if test ! -d $i && (grep sanitize-life $i > /dev/null) ; then
16871f33 123 echo Beating the \"life\" out of $i...
320e1b86
JG
124 cp $i new
125 sed '/start\-sanitize\-life/,/end-\sanitize\-life/d' < $i > new
126 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
127 mv $i .Recover
128 fi
129 mv new $i
130 fi
131 done
132fi
133
e11b54be
PB
134for i in * ; do
135 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
136 echo Some mentions of Sanitize are still left in $i!
137 fi
138done
57d32184
RP
139
140# eof
This page took 0.050845 seconds and 4 git commands to generate.