]>
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 |
701df845 | 51 | etc |
17519312 | 52 | expect |
49df2308 | 53 | flex |
a93b3c77 | 54 | gas |
ebec4684 RP |
55 | gcc |
56 | gdb | |
f3d3d2cd | 57 | gdbm |
e72c4b3a | 58 | gdbtest |
f7f4df6a | 59 | glob |
9a14a29d | 60 | gprof |
5781b1ba | 61 | grep |
a93b3c77 | 62 | include |
d77c6b93 | 63 | install.texinfo |
2dbd15d2 | 64 | ispell |
ebec4684 | 65 | ld |
0862386b | 66 | libg++ |
e72c4b3a RP |
67 | libgcc |
68 | libiberty | |
cdabe523 | 69 | make |
d592622a | 70 | mmalloc |
e72c4b3a | 71 | move-if-change |
6ae8fff5 | 72 | newlib |
aa06ff7e | 73 | opcodes |
57d32184 | 74 | patch |
d42563da | 75 | prms |
3c8735af | 76 | rcs |
a93b3c77 | 77 | readline |
e72c4b3a | 78 | send_pr |
95a3881d | 79 | standards.texi |
17519312 | 80 | tcl |
c9b36b5f | 81 | test-build.mk |
d239963b | 82 | texinfo |
14bed8ee | 83 | tgas |
6cfbcc45 | 84 | z8ksim |
a93b3c77 | 85 | |
43e36dd2 RP |
86 | # The lines between the "Do-last:" line and the end of the file |
87 | # are executed as a /bin/sh shell script after everything else is | |
88 | # done. | |
89 | ||
a93b3c77 RP |
90 | Do-last: |
91 | ||
eebff21c JG |
92 | echo Looking for signs of \"v9\"... |
93 | ||
94 | # Don't try to clean directories here, as the 'mv' command will fail. | |
95 | # Also, grep fails on NFS mounted directories. | |
96 | if ( echo $* | grep keep\-v9 > /dev/null ) ; then | |
97 | for i in * ; do | |
98 | if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then | |
99 | echo Keeping v9 stuff in $i | |
100 | fi | |
101 | done | |
102 | else | |
103 | for i in * ; do | |
104 | if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then | |
105 | echo Cleaning the \"v9\" out of $i... | |
e00efef1 | 106 | cp $i new |
eebff21c JG |
107 | sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new |
108 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
109 | mv $i .Recover | |
110 | fi | |
111 | mv new $i | |
eebff21c JG |
112 | fi |
113 | done | |
114 | fi | |
115 | ||
e11b54be PB |
116 | for i in * ; do |
117 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then | |
118 | echo Some mentions of Sanitize are still left in $i! | |
119 | fi | |
120 | done | |
57d32184 RP |
121 | |
122 | # eof |