No longer sanitize away h8s stuff.
[platform/upstream/binutils.git] / ld / .Sanitize
1 # .Sanitize for devo/ld.
2
3 # Each directory to survive its way into a release will need a file
4 # like this one called "./.Sanitize".  All keyword lines must exist,
5 # and must exist in the order specified by this file.  Each directory
6 # in the tree will be processed, top down, in the following order.
7
8 # Hash started lines like this one are comments and will be deleted
9 # before anything else is done.  Blank lines will also be squashed
10 # out.
11
12 # The lines between the "Do-first:" line and the "Things-to-keep:"
13 # line are executed as a /bin/sh shell script before anything else is
14 # done in this directory.
15
16 Do-first:
17
18 # All files listed between the "Things-to-keep:" line and the
19 # "Files-to-sed:" line will be kept.  All other files will be removed.
20 # Directories listed in this section will have their own Sanitize
21 # called.  Directories not listed will be removed in their entirety
22 # with rm -rf.
23
24 Things-to-keep:
25
26 ChangeLog
27 Makefile.in
28 NEWS
29 README
30 TODO
31 acconfig.h
32 aclocal.m4
33 config.in
34 configure
35 configure.bat
36 configure.host
37 configure.in
38 configure.tgt
39 dep-in.sed
40 emulparams
41 emultempl
42 genscripts.sh
43 h8-doc.texi
44 ld.1
45 gen-doc.texi
46 ld.h
47 ld.texinfo
48 ldcref.c
49 ldctor.c
50 ldctor.h
51 ldemul.c
52 ldemul.h
53 ldexp.c
54 ldexp.h
55 ldfile.c
56 ldfile.h
57 ldgram.y
58 ldint.texinfo
59 ldlang.c
60 ldlang.h
61 ldlex.h
62 ldlex.l
63 ldmain.c
64 ldmain.h
65 ldmisc.c
66 ldmisc.h
67 ldver.c
68 ldver.h
69 ldwrite.c
70 ldwrite.h
71 lexsup.c
72 mac-ld.r
73 mpw-config.in
74 mpw-emipsidt.c
75 mpw-eppcmac.c
76 mpw-esh.c
77 mpw-make.sed
78 mri.c
79 mri.h
80 scripttempl
81 sysdep.h
82 testsuite
83
84 Things-to-lose:
85
86 Do-last:
87
88 arc_files="ChangeLog configure.in configure.tgt Makefile.in"
89
90 if ( echo $* | grep keep\-arc > /dev/null ) ; then
91         for i in $arc_files ; do
92                 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
93                         if [ -n "${verbose}" ] ; then
94                                 echo Keeping arc stuff in $i
95                         fi
96                 fi
97         done
98 else
99         for i in $arc_files ; do
100                 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
101                         if [ -n "${verbose}" ] ; then
102                                 echo Removing traces of \"arc\" from $i...
103                         fi
104                         cp $i new
105                         sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
106                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
107                                 if [ -n "${verbose}" ] ; then
108                                         echo Caching $i in .Recover...
109                                 fi
110                                 mv $i .Recover
111                         fi
112                         mv new $i
113                 fi
114         done
115 fi
116
117 for i in * ; do
118         if test ! -d $i && (grep sanitize $i > /dev/null) ; then
119                 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
120         fi
121 done
122
123 #
124 # End of file.