]>
Commit | Line | Data |
---|---|---|
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 | |
16 | Do-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 | ||
24 | Things-to-keep: | |
25 | ||
c9b36b5f | 26 | .cvsignore |
6e37b215 PB |
27 | COPYING |
28 | COPYING.LIB | |
6227a92b | 29 | CYGNUS |
57d32184 | 30 | ChangeLog |
d77c6b93 | 31 | INSTALL |
a93b3c77 | 32 | Makefile.in |
965a9f14 | 33 | README |
d77c6b93 | 34 | SUPPORTED |
28f760d3 | 35 | autoconf |
d5eb68fa | 36 | bfd |
ebec4684 | 37 | binutils |
6a2d7603 | 38 | byacc |
7d283cc1 | 39 | cfg-paper.texi |
a93b3c77 | 40 | config |
db2de419 | 41 | config.sub |
a93b3c77 | 42 | configure |
e72c4b3a | 43 | configure.bat |
a93b3c77 | 44 | configure.in |
38c8a27e | 45 | configure.man |
b8bb8de3 | 46 | configure.texi |
cdabe523 | 47 | cvs |
8ec1b2a1 | 48 | deja-gnu |
5781b1ba | 49 | diff |
cdabe523 | 50 | emacs |
49df2308 | 51 | flex |
a93b3c77 | 52 | gas |
ebec4684 RP |
53 | gcc |
54 | gdb | |
f3d3d2cd | 55 | gdbm |
e72c4b3a | 56 | gdbtest |
f7f4df6a | 57 | glob |
9a14a29d | 58 | gprof |
5781b1ba | 59 | grep |
a93b3c77 | 60 | include |
d77c6b93 | 61 | install.texinfo |
2dbd15d2 | 62 | ispell |
ebec4684 | 63 | ld |
0862386b | 64 | libg++ |
e72c4b3a RP |
65 | libgcc |
66 | libiberty | |
cdabe523 | 67 | make |
d592622a | 68 | mmalloc |
e72c4b3a | 69 | move-if-change |
6ae8fff5 | 70 | newlib |
aa06ff7e | 71 | opcodes |
57d32184 | 72 | patch |
d42563da | 73 | prms |
3c8735af | 74 | rcs |
a93b3c77 | 75 | readline |
e72c4b3a | 76 | send_pr |
95a3881d | 77 | standards.texi |
c9b36b5f | 78 | test-build.mk |
d239963b | 79 | texinfo |
14bed8ee | 80 | tgas |
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 |
86 | Do-last: |
87 | ||
eebff21c JG |
88 | echo 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. | |
92 | if ( 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 | |
98 | else | |
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 | |
110 | fi | |
111 | ||
320e1b86 JG |
112 | echo 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. | |
116 | if ( 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 | |
122 | else | |
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 | |
134 | fi | |
135 | ||
e11b54be PB |
136 | for 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 | |
140 | done | |
57d32184 RP |
141 | |
142 | # eof |