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