Remove dup inftarg.o from NATDEPFILES.
[deliverable/binutils-gdb.git] / .Sanitize
... / ...
CommitLineData
1# .Sanitize for devo.
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
14# done in this directory.
15
16Do-first:
17
18# All files listed between the "Things-to-keep:" line and the
19# "Do-last:" line will be kept. All other files will be removed.
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
26.cvsignore
27COPYING
28COPYING.LIB
29CYGNUS
30ChangeLog
31INSTALL
32Makefile.in
33README
34SUPPORTED
35autoconf
36bfd
37binutils
38byacc
39cfg-paper.texi
40config
41config.sub
42configure
43configure.bat
44configure.in
45configure.man
46configure.texi
47cvs
48deja-gnu
49diff
50emacs
51flex
52gas
53gcc
54gdb
55gdbm
56gdbtest
57glob
58gprof
59grep
60include
61install.texinfo
62ispell
63ld
64libg++
65libgcc
66libiberty
67make
68mmalloc
69move-if-change
70newlib
71opcodes
72patch
73prms
74rcs
75readline
76send_pr
77standards.texi
78test-build.mk
79texinfo
80tgas
81
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
86Do-last:
87
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...
102 cp $i new
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
108 fi
109 done
110fi
111
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
119 echo Keeping life alive in $i
120 fi
121 done
122else
123 for i in * ; do
124 if test ! -d $i && (grep sanitize-life $i > /dev/null) ; then
125 echo Beating the \"life\" out of $i...
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
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
141
142# eof
This page took 0.028618 seconds and 4 git commands to generate.