]>
Commit | Line | Data |
---|---|---|
0c5e345c | 1 | # Sanitize.in for devo. |
0c5e345c RP |
2 | # |
3 | ||
4 | # Each directory to survive it's way into a release will need a file | |
5 | # like this one called "./.Sanitize". All keyword lines must exist, | |
6 | # and must exist in the order specified by this file. Each directory | |
7 | # in the tree will be processed, top down, in the following order. | |
8 | ||
9 | # Hash started lines like this one are comments and will be deleted | |
10 | # before anything else is done. Blank lines will also be squashed | |
11 | # out. | |
12 | ||
13 | # The lines between the "Do-first:" line and the "Things-to-keep:" | |
14 | # line are executed as a /bin/sh shell script before anything else is | |
15 | # done in this | |
16 | ||
17 | Do-first: | |
18 | ||
19 | # All files listed between the "Things-to-keep:" line and the | |
20 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
21 | # Directories listed in this section will have their own Sanitize | |
22 | # called. Directories not listed will be removed in their entirety | |
23 | # with rm -rf. | |
24 | ||
25 | Things-to-keep: | |
26 | ||
b0c02418 | 27 | Makefile.in |
730ad1a7 | 28 | all.texi |
0c5e345c | 29 | as.1 |
0c5e345c | 30 | as.texinfo |
db8e56dc KR |
31 | c-a29k.texi |
32 | c-h8300.texi | |
33 | c-h8500.texi | |
34 | c-hppa.texi | |
35 | c-i386.texi | |
36 | c-i960.texi | |
37 | c-m68k.texi | |
38 | c-mips.texi | |
4d2ba393 | 39 | c-ns32k.texi |
db8e56dc KR |
40 | c-sh.texi |
41 | c-sparc.texi | |
42 | c-vax.texi | |
43 | c-z8k.texi | |
24b9a4e2 | 44 | gasp.texi |
4f6a1ad1 | 45 | h8.texi |
01f8d309 | 46 | internals.texi |
0c5e345c | 47 | |
87756e15 RP |
48 | Things-to-lose: |
49 | ||
0c5e345c RP |
50 | Do-last: |
51 | ||
3fb52301 DE |
52 | # Don't try to clean directories here, as the 'mv' command will fail. |
53 | # Also, grep fails on NFS mounted directories. | |
54 | ||
55 | if [ -n "${verbose}" ] ; then | |
56 | echo Processing \"arc\"... | |
57 | fi | |
58 | ||
59 | arc_files="all.texi as.texinfo" | |
60 | if ( echo $* | grep keep\-arc > /dev/null ) ; then | |
61 | for i in $arc_files ; do | |
62 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
63 | if [ -n "${verbose}" ] ; then | |
64 | echo Keeping arc stuff in $i | |
65 | fi | |
66 | fi | |
67 | done | |
68 | else | |
69 | for i in $arc_files ; do | |
70 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
71 | if [ -n "${verbose}" ] ; then | |
72 | echo Removing traces of \"arc\" from $i... | |
73 | fi | |
74 | cp $i new | |
75 | sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new | |
76 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
77 | if [ -n "${verbose}" ] ; then | |
78 | echo Caching $i in .Recover... | |
79 | fi | |
80 | mv $i .Recover | |
81 | fi | |
82 | mv new $i | |
83 | fi | |
84 | done | |
85 | fi | |
86 | ||
87 | for i in * ; do | |
88 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then | |
89 | echo '***' Some mentions of Sanitize are still left in $i! 1>&2 | |
90 | fi | |
91 | done | |
92 | ||
0c5e345c | 93 | # End of file. |