7c2839effce0d8d49f1b2d1ac58b75fb51844348
[deliverable/binutils-gdb.git] / .Sanitize
1 # Sanitize.in for devo.
2 # $Id$
3 #
4
5 # Each directory to survive it's way into a release will need a file
6 # like this one called "./.Sanitize". All keyword lines must exist,
7 # and must exist in the order specified by this file. Each directory
8 # in the tree will be processed, top down, in the following order.
9
10 # Hash started lines like this one are comments and will be deleted
11 # before anything else is done. Blank lines will also be squashed
12 # out.
13
14 # The lines between the "Do-first:" line and the "Things-to-keep:"
15 # line are executed as a /bin/sh shell script before anything else is
16 # done in this
17
18 Do-first:
19
20 echo Sanitizing `pwd`...
21
22 # All files listed between the "Things-to-keep:" line and the
23 # "Files-to-sed:" line will be kept. All other files will be removed.
24 # Directories listed in this section will have their own Sanitize
25 # called. Directories not listed will be removed in their entirety
26 # with rm -rf.
27
28 Things-to-keep:
29
30 Makefile.in
31 README
32 README.configure
33 bison
34 bfd
35 binutils
36 config
37 config.sub
38 configure
39 configure.in
40 cvs
41 diff
42 emacs
43 gas
44 gcc
45 gdb
46 gdbm
47 gnulib
48 grep
49 include
50 ld
51 libiberty
52 make
53 prms
54 rcs
55 readline
56 texinfo
57
58 Do-last:
59
60 echo Looking for signs of \"v9\"...
61
62 # Don't try to clean directories here, as the 'mv' command will fail.
63 # Also, grep fails on NFS mounted directories.
64 if ( echo $* | grep keep\-v9 > /dev/null ) ; then
65 for i in * ; do
66 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
67 echo Keeping v9 stuff in $i
68 fi
69 done
70 else
71 for i in * ; do
72 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
73 echo Cleaning the \"v9\" out of $i...
74 cp $i new
75 sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new
76 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
77 mv $i .Recover
78 fi
79 mv new $i
80 fi
81 done
82 fi
83
84 echo Looking for signs of \"life\"...
85
86 # Don't try to clean directories here, as the 'mv' command will fail.
87 # Also, grep fails on NFS mounted directories.
88 if ( echo $* | grep keep\-life > /dev/null ) ; then
89 for i in * ; do
90 if test ! -d $i && (grep sanitize-life $i > /dev/null) ; then
91 echo Keeping life stuff in $i
92 fi
93 done
94 else
95 for i in * ; do
96 if test ! -d $i && (grep sanitize-life $i > /dev/null) ; then
97 echo Cleaning the \"life\" out of $i...
98 cp $i new
99 sed '/start\-sanitize\-life/,/end-\sanitize\-life/d' < $i > new
100 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
101 mv $i .Recover
102 fi
103 mv new $i
104 fi
105 done
106 fi
107
108 echo Done in `pwd`.
109
110 #
111 #
112 # $Log$
113 # Revision 1.19 1991/10/21 22:10:13 gnu
114 # Handle "life" sanity, which Tiemann half-implemented in config.sub.
115 #
116 # Revision 1.18 1991/10/10 01:08:04 rich
117 # copy the old file to the new before cleaning it. This should
118 # propogate mode bits like execute.
119 #
120 # Revision 1.17 1991/10/02 13:06:16 rich
121 # No longer needs to propogate configure and config.sub.
122 #
123 # Revision 1.16 1991/09/13 03:59:44 gnu
124 # Third time's a charm.
125 #
126 # Revision 1.15 1991/09/13 03:20:18 gnu
127 # One more try at top-level sanity on config.sub
128 #
129 # Revision 1.14 1991/09/13 03:11:27 gnu
130 # Clean out "v9" stuff from here, and propagate configure and config.sub
131 # to all lower directories after sanity sets in.
132 #
133 # Revision 1.13 1991/09/12 00:33:59 rich
134 # add gdbm.
135 #
136 # Revision 1.12 1991/09/02 22:19:49 rich
137 # Updated list of Sanitizable directories.
138 #
139 # Revision 1.11 1991/09/02 01:12:42 rich
140 # dump the obsolete INSTALL.
141 #
142 # Revision 1.10 1991/08/25 23:40:20 rich
143 # rcs enters the soup.
144 #
145 # Revision 1.9 1991/08/25 21:48:37 rich
146 # Adding diff to the fray.
147 #
148 # Revision 1.8 1991/08/23 07:15:55 gnu
149 # Make README stick...
150 #
151 # Revision 1.7 1991/08/22 07:30:50 gnu
152 # New config.sub.
153 #
154 # Revision 1.6 1991/07/31 05:15:37 gnu
155 # Add texinfo
156 #
157 # Revision 1.5 1991/07/25 16:11:27 tiemann
158 # Don't eliminate libg++. Jimmy Hoffa disappeared before libg++ was
159 # even conceived.
160 #
161 # Revision 1.4 1991/07/24 22:25:50 steve
162 # *** empty log message ***
163 #
164 # Revision 1.3 1991/05/23 22:21:19 rich
165 # added bfd, binutils, ld, gdb, gcc.
166 #
167 # Revision 1.2 1991/05/23 21:15:10 rich
168 # Added bfd.
169 #
170 # Revision 1.1 1991/05/23 17:32:34 rich
171 # Initial revision
172 #
173 # Revision 1.1 1991/05/23 17:18:12 rich
174 # Initial revision
175 #
176 #
177 #
178
179 # End of file.
This page took 0.033776 seconds and 4 git commands to generate.