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