* v850-opc.c: Close unterminated comment.
[deliverable/binutils-gdb.git] / gas / doc / .Sanitize
CommitLineData
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
17Do-first:
18
337350a3
MH
19d10v_files="c-d10v.texi"
20if ( echo $* | grep keep\-d10v > /dev/null ) ; then
21 keep_these_too="${d10v_files} ${keep_these_too}"
22else
23 lose_these_too="${d10v_files} ${lose_these_too}"
24fi
25
0c5e345c
RP
26# All files listed between the "Things-to-keep:" line and the
27# "Files-to-sed:" line will be kept. All other files will be removed.
28# Directories listed in this section will have their own Sanitize
29# called. Directories not listed will be removed in their entirety
30# with rm -rf.
31
32Things-to-keep:
33
b0c02418 34Makefile.in
730ad1a7 35all.texi
0c5e345c 36as.1
0c5e345c 37as.texinfo
db8e56dc
KR
38c-a29k.texi
39c-h8300.texi
40c-h8500.texi
41c-hppa.texi
42c-i386.texi
43c-i960.texi
44c-m68k.texi
45c-mips.texi
4d2ba393 46c-ns32k.texi
db8e56dc
KR
47c-sh.texi
48c-sparc.texi
49c-vax.texi
50c-z8k.texi
24b9a4e2 51gasp.texi
4f6a1ad1 52h8.texi
01f8d309 53internals.texi
0c5e345c 54
87756e15
RP
55Things-to-lose:
56
0c5e345c
RP
57Do-last:
58
3fb52301
DE
59# Don't try to clean directories here, as the 'mv' command will fail.
60# Also, grep fails on NFS mounted directories.
61
62if [ -n "${verbose}" ] ; then
63 echo Processing \"arc\"...
64fi
65
66arc_files="all.texi as.texinfo"
67if ( echo $* | grep keep\-arc > /dev/null ) ; then
68 for i in $arc_files ; do
69 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
70 if [ -n "${verbose}" ] ; then
71 echo Keeping arc stuff in $i
72 fi
73 fi
74 done
75else
76 for i in $arc_files ; do
77 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
78 if [ -n "${verbose}" ] ; then
79 echo Removing traces of \"arc\" from $i...
80 fi
81 cp $i new
82 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
83 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
84 if [ -n "${verbose}" ] ; then
85 echo Caching $i in .Recover...
86 fi
87 mv $i .Recover
88 fi
89 mv new $i
90 fi
91 done
92fi
337350a3
MH
93if [ -n "${verbose}" ] ; then
94 echo Processing \"arc\"...
95fi
96
97d10v_files="all.texi as.texinfo"
98if ( echo $* | grep keep\-d10v > /dev/null ) ; then
99 for i in $d10v_files ; do
100 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
101 if [ -n "${verbose}" ] ; then
102 echo Keeping d10v stuff in $i
103 fi
104 fi
105 done
106else
107 for i in $d10v_files ; do
108 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
109 if [ -n "${verbose}" ] ; then
110 echo Removing traces of \"d10v\" from $i...
111 fi
112 cp $i new
113 sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new
114 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
115 if [ -n "${verbose}" ] ; then
116 echo Caching $i in .Recover...
117 fi
118 mv $i .Recover
119 fi
120 mv new $i
121 fi
122 done
123fi
3fb52301
DE
124
125for i in * ; do
126 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
127 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
128 fi
129done
130
0c5e345c 131# End of file.
This page took 0.197144 seconds and 4 git commands to generate.