5d033a8dc5b744e2dd33607a977ff6679dc60d9f
[external/binutils.git] / gas / doc / .Sanitize
1 # Sanitize.in for devo.
2 # $Id$
3 #
4
5 # Each directory to survive it's way into a release will need a file
6 # like this one called "./.Sanitize".  All keyword lines must exist,
7 # and must exist in the order specified by this file.  Each directory
8 # in the tree will be processed, top down, in the following order.
9
10 # Hash started lines like this one are comments and will be deleted
11 # before anything else is done.  Blank lines will also be squashed
12 # out.
13
14 # The lines between the "Do-first:" line and the "Things-to-keep:"
15 # line are executed as a /bin/sh shell script before anything else is
16 # done in this 
17
18 Do-first:
19
20 # All files listed between the "Things-to-keep:" line and the
21 # "Files-to-sed:" line will be kept.  All other files will be removed.
22 # Directories listed in this section will have their own Sanitize
23 # called.  Directories not listed will be removed in their entirety
24 # with rm -rf.
25
26 Things-to-keep:
27
28 Makefile.in
29 configure.in
30 all.texi
31 as.1
32 as.texinfo
33 h8.texi
34
35 Do-last:
36
37 shdirty="as.texinfo h8.texi all.texi"
38
39 if ( echo $* | grep keep\-sh > /dev/null ) ; then
40         echo Keeping Hitachi SH in ${shdirty}
41 else
42         for i in ${shdirty} ; do
43                 echo Sanitizing Hitachi SH in $i
44                 rm -f new
45                 sed '/start Hitachi-SH/,/^end Hitachi-SH/d' < $i > new
46                 if grep -s "[- ]SH" new ; then
47                         echo *****SANITIZING HITACHI SH IN $i FAILED*****\a\a
48                 fi
49                 if [ -n "${safe}" ] ; then
50                         mv $i .Recover
51                 else
52                         rm $i
53                 fi
54                 mv new $i
55         done
56 fi
57 #
58 #
59 # $Log$
60 # Revision 1.11  1993/04/15 23:55:45  pesch
61 # Add h8.texi to things-to-keep
62 #
63 # Revision 1.10  1993/04/15  23:06:08  pesch
64 # Arrange to clean out references to Hitachi SH.
65 #
66 # Revision 1.9  1993/04/08  03:12:53  pesch
67 # Converted to Texinfo conditionals; no longer need M4.
68 # Checked makeinfo output for "all" config; other old M4 configs now sanitized
69 # out, will be replaced by .texi configs as each config is tested.
70 #
71 # Revision 1.8  1993/03/02  17:57:05  raeburn
72 # ChangeLog is gone
73 #
74 # Revision 1.7  1993/02/13  10:12:26  zoo
75 # removing excess verbosity
76 #
77 # Revision 1.6  1992/12/08  09:39:03  raeburn
78 # as-m680x0.texinfo does not exist
79 #
80 # Revision 1.5  1992/11/19  19:48:43  sac
81 #       z8000 documentation
82 #       * Makefile.in, all.m4, as-all.texinfo as.texinfo: all modified
83 #
84 # Revision 1.4  1992/03/10  00:50:59  rich
85 # keep ChangeLog and as-all.texinfo
86 #
87 # Revision 1.3  1992/02/24  13:54:45  tiemann
88 # Keep Makefile.in and configure.in.  Don't keep Makefile.
89 #
90 # Revision 1.2  1992/02/21  09:08:37  rich
91 # don't keep *.dvi
92 #
93 # Revision 1.1  1992/02/14  00:28:22  pesch
94 # Might as well keep the contents of the gas/doc subdir, as well as the
95 # dir itself.
96 #
97
98 # End of file.