* sim-info.c (sim_info): Be verbose when either VERBOSE or STATE_VERBOSE_P.
[deliverable/binutils-gdb.git] / gas / doc / .Sanitize
1 # Sanitize.in for devo.
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 d30v_files="c-d30v.texi"
20
21 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
22 keep_these_too="${d30v_files} ${keep_these_too}"
23 else
24 lose_these_too="${d30v_files} ${lose_these_too}"
25 fi
26
27 # All files listed between the "Things-to-keep:" line and the
28 # "Files-to-sed:" line will be kept. All other files will be removed.
29 # Directories listed in this section will have their own Sanitize
30 # called. Directories not listed will be removed in their entirety
31 # with rm -rf.
32
33 Things-to-keep:
34
35 Makefile.am
36 Makefile.in
37 all.texi
38 as.1
39 as.texinfo
40 c-a29k.texi
41 c-arm.texi
42 c-d10v.texi
43 c-h8300.texi
44 c-h8500.texi
45 c-hppa.texi
46 c-i386.texi
47 c-i960.texi
48 c-m32r.texi
49 c-m68k.texi
50 c-mips.texi
51 c-ns32k.texi
52 c-sh.texi
53 c-sparc.texi
54 c-v850.texi
55 c-vax.texi
56 c-z8k.texi
57 gasp.texi
58 h8.texi
59 internals.texi
60
61 Things-to-lose:
62
63 Do-last:
64
65 v850e_files="c-v850.texi"
66 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
67 for i in $v850e_files ; do
68 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
69 if [ -n "${verbose}" ] ; then
70 echo Keeping v850e stuff in $i
71 fi
72 fi
73 done
74 else
75 for i in $v850e_files ; do
76 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
77 if [ -n "${verbose}" ] ; then
78 echo Removing traces of \"v850e\" from $i...
79 fi
80 cp $i new
81 sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new
82 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
83 if [ -n "${verbose}" ] ; then
84 echo Caching $i in .Recover...
85 fi
86 mv $i .Recover
87 fi
88 mv new $i
89 fi
90 done
91 fi
92
93 d30v_files="as.texinfo all.texi"
94 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
95 for i in $d30v_files ; do
96 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
97 if [ -n "${verbose}" ] ; then
98 echo Keeping d30v stuff in $i
99 fi
100 fi
101 done
102 else
103 for i in $d30v_files ; do
104 if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
105 if [ -n "${verbose}" ] ; then
106 echo Removing traces of \"d30v\" from $i...
107 fi
108 cp $i new
109 sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $i > new
110 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
111 if [ -n "${verbose}" ] ; then
112 echo Caching $i in .Recover...
113 fi
114 mv $i .Recover
115 fi
116 mv new $i
117 fi
118 done
119 fi
120
121 m32rx_files="c-m32r.texi as.texinfo"
122 if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
123 for i in $m32rx_files ; do
124 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
125 if [ -n "${verbose}" ] ; then
126 echo Keeping m32rx stuff in $i
127 fi
128 fi
129 done
130 else
131 for i in $m32rx_files ; do
132 if test ! -d $i && (grep sanitize-m32rx $i > /dev/null) ; then
133 if [ -n "${verbose}" ] ; then
134 echo Removing traces of \"m32rx\" from $i...
135 fi
136 cp $i new
137 sed '/start\-sanitize\-m32rx/,/end-\sanitize\-m32rx/d' < $i > new
138 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
139 if [ -n "${verbose}" ] ; then
140 echo Caching $i in .Recover...
141 fi
142 mv $i .Recover
143 fi
144 mv new $i
145 fi
146 done
147 fi
148
149 # Don't try to clean directories here, as the 'mv' command will fail.
150 # Also, grep fails on NFS mounted directories.
151
152 for i in * ; do
153 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
154 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
155 fi
156 done
157
158 # End of file.
This page took 0.032392 seconds and 4 git commands to generate.