]> Git Repo - binutils.git/blob - gas/doc/.Sanitize
* config/tc-mn10300.h (pre_defined_registers) Remove.
[binutils.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 d10v_files="c-d10v.texi"
20 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
21         keep_these_too="${d10v_files} ${keep_these_too}"
22 else
23         lose_these_too="${d10v_files} ${lose_these_too}"
24 fi 
25
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
32 Things-to-keep:
33
34 Makefile.in
35 all.texi
36 as.1
37 as.texinfo
38 c-a29k.texi
39 c-h8300.texi
40 c-h8500.texi
41 c-hppa.texi
42 c-i386.texi
43 c-i960.texi
44 c-m68k.texi
45 c-mips.texi
46 c-ns32k.texi
47 c-sh.texi
48 c-sparc.texi
49 c-vax.texi
50 c-z8k.texi
51 gasp.texi
52 h8.texi
53 internals.texi
54
55 Things-to-lose:
56
57 Do-last:
58
59 # Don't try to clean directories here, as the 'mv' command will fail.
60 # Also, grep fails on NFS mounted directories.
61
62 if [ -n "${verbose}" ] ; then
63         echo Processing \"arc\"...
64 fi
65
66 arc_files="all.texi as.texinfo"
67 if ( 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
75 else
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
92 fi
93 if [ -n "${verbose}" ] ; then
94         echo Processing \"arc\"...
95 fi
96
97 d10v_files="all.texi as.texinfo"
98 if ( 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
106 else
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
123 fi
124
125 for 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
129 done
130
131 # End of file.
This page took 0.030682 seconds and 4 git commands to generate.