* gdbtypes.c (check_stub_method): Make sure we get back a function
[deliverable/binutils-gdb.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 ldctor.c
49 ldctor.h
50 ldemul.c
51 ldemul.h
52 ldexp.c
53 ldexp.h
54 ldfile.c
55 ldfile.h
56 ldgram.y
57 ldint.texinfo
58 ldlang.c
59 ldlang.h
60 ldlex.h
61 ldlex.l
62 ldmain.c
63 ldmain.h
64 ldmisc.c
65 ldmisc.h
66 ldver.c
67 ldver.h
68 ldwrite.c
69 ldwrite.h
70 lexsup.c
71 mac-ld.r
72 mpw-config.in
73 mpw-emipsidt.c
74 mpw-eppcmacos.c
75 mpw-esh.c
76 mpw-make.sed
77 mri.c
78 mri.h
79 scripttempl
80 sysdep.h
81 testsuite
82
83 Things-to-lose:
84
85 Do-last:
86
87 rce_files="configure.in configure.tgt Makefile.in"
88
89 if ( echo $* | grep keep\-rce > /dev/null ) ; then
90 for i in $rce_files ; do
91 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
92 if [ -n "${verbose}" ] ; then
93 echo Keeping rce stuff in $i
94 fi
95 fi
96 done
97 else
98 for i in $rce_files ; do
99 if test ! -d $i && (grep sanitize-rce $i > /dev/null) ; then
100 if [ -n "${verbose}" ] ; then
101 echo Removing traces of \"rce\" from $i...
102 fi
103 cp $i new
104 sed '/start\-sanitize\-rce/,/end-\sanitize\-rce/d' < $i > new
105 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
106 if [ -n "${verbose}" ] ; then
107 echo Caching $i in .Recover...
108 fi
109 mv $i .Recover
110 fi
111 mv new $i
112 fi
113 done
114 fi
115
116 arc_files="ChangeLog configure.in configure.tgt Makefile.in"
117
118 if ( echo $* | grep keep\-arc > /dev/null ) ; then
119 for i in $arc_files ; do
120 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
121 if [ -n "${verbose}" ] ; then
122 echo Keeping arc stuff in $i
123 fi
124 fi
125 done
126 else
127 for i in $arc_files ; do
128 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
129 if [ -n "${verbose}" ] ; then
130 echo Removing traces of \"arc\" from $i...
131 fi
132 cp $i new
133 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
134 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
135 if [ -n "${verbose}" ] ; then
136 echo Caching $i in .Recover...
137 fi
138 mv $i .Recover
139 fi
140 mv new $i
141 fi
142 done
143 fi
144
145 for i in * ; do
146 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
147 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
148 fi
149 done
150
151 #
152 # End of file.
This page took 0.031806 seconds and 4 git commands to generate.