]> Git Repo - binutils.git/blame - gas/doc/.Sanitize
* Makefile.am: New file, based on old Makefile.in.
[binutils.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
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
25Things-to-keep:
26
b0c02418 27Makefile.in
730ad1a7 28all.texi
0c5e345c 29as.1
0c5e345c 30as.texinfo
db8e56dc 31c-a29k.texi
902f6515 32c-arm.texi
8a683c67 33c-d10v.texi
db8e56dc
KR
34c-h8300.texi
35c-h8500.texi
36c-hppa.texi
37c-i386.texi
38c-i960.texi
39c-m68k.texi
40c-mips.texi
4d2ba393 41c-ns32k.texi
db8e56dc
KR
42c-sh.texi
43c-sparc.texi
44c-vax.texi
45c-z8k.texi
24b9a4e2 46gasp.texi
4f6a1ad1 47h8.texi
01f8d309 48internals.texi
0c5e345c 49
87756e15
RP
50Things-to-lose:
51
0c5e345c
RP
52Do-last:
53
3fb52301
DE
54# Don't try to clean directories here, as the 'mv' command will fail.
55# Also, grep fails on NFS mounted directories.
56
57if [ -n "${verbose}" ] ; then
58 echo Processing \"arc\"...
59fi
60
61arc_files="all.texi as.texinfo"
62if ( echo $* | grep keep\-arc > /dev/null ) ; then
63 for i in $arc_files ; do
64 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
65 if [ -n "${verbose}" ] ; then
66 echo Keeping arc stuff in $i
67 fi
68 fi
69 done
70else
71 for i in $arc_files ; do
72 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
73 if [ -n "${verbose}" ] ; then
74 echo Removing traces of \"arc\" from $i...
75 fi
76 cp $i new
77 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
78 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
79 if [ -n "${verbose}" ] ; then
80 echo Caching $i in .Recover...
81 fi
82 mv $i .Recover
83 fi
84 mv new $i
85 fi
86 done
87fi
337350a3
MH
88if [ -n "${verbose}" ] ; then
89 echo Processing \"arc\"...
90fi
91
3fb52301
DE
92for i in * ; do
93 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
94 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
95 fi
96done
97
0c5e345c 98# End of file.
This page took 0.372524 seconds and 4 git commands to generate.