]>
Commit | Line | Data |
---|---|---|
e33bfde7 | 1 | # .Sanitize for devo/gas/doc |
0c5e345c | 2 | |
e33bfde7 | 3 | # Each directory to survive its way into a release will need a file |
0c5e345c RP |
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 | |
e33bfde7 | 14 | # done in this directory. |
0c5e345c RP |
15 | |
16 | Do-first: | |
17 | ||
18 | # All files listed between the "Things-to-keep:" line and the | |
e33bfde7 | 19 | # "Do-last:" line will be kept. All other files will be removed. |
0c5e345c 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 | ||
29e28dd6 | 26 | Makefile.am |
b0c02418 | 27 | Makefile.in |
730ad1a7 | 28 | all.texi |
0c5e345c | 29 | as.1 |
0c5e345c | 30 | as.texinfo |
db8e56dc | 31 | c-a29k.texi |
902f6515 | 32 | c-arm.texi |
8a683c67 | 33 | c-d10v.texi |
cc88a106 | 34 | c-d30v.texi |
db8e56dc KR |
35 | c-h8300.texi |
36 | c-h8500.texi | |
37 | c-hppa.texi | |
38 | c-i386.texi | |
39 | c-i960.texi | |
3b70a885 | 40 | c-m32r.texi |
db8e56dc KR |
41 | c-m68k.texi |
42 | c-mips.texi | |
4d2ba393 | 43 | c-ns32k.texi |
db8e56dc KR |
44 | c-sh.texi |
45 | c-sparc.texi | |
ae6ecba5 | 46 | c-v850.texi |
db8e56dc KR |
47 | c-vax.texi |
48 | c-z8k.texi | |
24b9a4e2 | 49 | gasp.texi |
4f6a1ad1 | 50 | h8.texi |
01f8d309 | 51 | internals.texi |
0c5e345c | 52 | |
87756e15 RP |
53 | Things-to-lose: |
54 | ||
e33bfde7 ILT |
55 | |
56 | ||
57 | # The lines between the "Do-last:" line and the end of the file | |
58 | # are executed as a /bin/sh shell script after everything else is | |
59 | # done. | |
60 | ||
0c5e345c RP |
61 | Do-last: |
62 | ||
68eaa141 NC |
63 | v850e_files="c-v850.texi" |
64 | if ( echo $* | grep keep\-v850e > /dev/null ) ; then | |
68eaa141 NC |
65 | for i in $v850e_files ; do |
66 | if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then | |
67 | if [ -n "${verbose}" ] ; then | |
68 | echo Keeping v850e stuff in $i | |
69 | fi | |
70 | fi | |
71 | done | |
ae6ecba5 | 72 | else |
68eaa141 | 73 | for i in $v850e_files ; do |
ae6ecba5 | 74 | if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then |
68eaa141 | 75 | if [ -n "${verbose}" ] ; then |
ae6ecba5 | 76 | echo Removing traces of \"v850e\" from $i... |
68eaa141 NC |
77 | fi |
78 | cp $i new | |
ae6ecba5 | 79 | sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new |
68eaa141 | 80 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then |
4f2e777e MM |
81 | if [ -n "${verbose}" ] ; then |
82 | echo Caching $i in .Recover... | |
83 | fi | |
84 | mv $i .Recover | |
85 | fi | |
86 | mv new $i | |
68eaa141 NC |
87 | fi |
88 | done | |
89 | fi | |
90 | ||
085e370b | 91 | m32rx_files="c-m32r.texi as.texinfo" |
d745e6d9 NC |
92 | if ( echo $* | grep keep\-m32rx > /dev/null ) ; then |
93 | for i in $m32rx_files ; do | |
94 | if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then | |
95 | if [ -n "${verbose}" ] ; then | |
96 | echo Keeping m32rx stuff in $i | |
97 | fi | |
98 | fi | |
99 | done | |
100 | else | |
101 | for i in $m32rx_files ; do | |
102 | if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then | |
103 | if [ -n "${verbose}" ] ; then | |
104 | echo Removing traces of \"m32rx\" from $i... | |
105 | fi | |
106 | cp $i new | |
107 | sed '/start\-sanitize\-m32rx/,/end-\sanitize\-m32rx/d' < $i > new | |
108 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
109 | if [ -n "${verbose}" ] ; then | |
110 | echo Caching $i in .Recover... | |
111 | fi | |
112 | mv $i .Recover | |
113 | fi | |
114 | mv new $i | |
115 | fi | |
116 | done | |
117 | fi | |
118 | ||
3fb52301 DE |
119 | for i in * ; do |
120 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then | |
121 | echo '***' Some mentions of Sanitize are still left in $i! 1>&2 | |
122 | fi | |
123 | done | |
124 | ||
e33bfde7 | 125 | # eof |