* Makefile.in (ev850.c): New target.
[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 fnmatch.c
43 fnmatch.h
44 genscripts.sh
45 h8-doc.texi
46 ld.1
47 gen-doc.texi
48 ld.h
49 ld.texinfo
50 ldcref.c
51 ldctor.c
52 ldctor.h
53 ldemul.c
54 ldemul.h
55 ldexp.c
56 ldexp.h
57 ldfile.c
58 ldfile.h
59 ldgram.y
60 ldint.texinfo
61 ldlang.c
62 ldlang.h
63 ldlex.h
64 ldlex.l
65 ldmain.c
66 ldmain.h
67 ldmisc.c
68 ldmisc.h
69 ldver.c
70 ldver.h
71 ldwrite.c
72 ldwrite.h
73 lexsup.c
74 mac-ld.r
75 mpw-config.in
76 mpw-emipsidt.c
77 mpw-eppcmac.c
78 mpw-esh.c
79 mpw-make.sed
80 mri.c
81 mri.h
82 scripttempl
83 sysdep.h
84 testsuite
85
86 Things-to-lose:
87
88 Do-last:
89
90 arc_files="ChangeLog configure.in configure.tgt Makefile.in"
91
92 if ( echo $* | grep keep\-arc > /dev/null ) ; then
93 for i in $arc_files ; do
94 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
95 if [ -n "${verbose}" ] ; then
96 echo Keeping arc stuff in $i
97 fi
98 fi
99 done
100 else
101 for i in $arc_files ; do
102 if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then
103 if [ -n "${verbose}" ] ; then
104 echo Removing traces of \"arc\" from $i...
105 fi
106 cp $i new
107 sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new
108 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
109 if [ -n "${verbose}" ] ; then
110 echo Caching $i in .Recover...
111 fi
112 mv $i .Recover
113 fi
114 mv new $i
115 fi
116 done
117 fi
118
119 d10v_files="ChangeLog configure.in configure.tgt Makefile.in"
120
121 if ( echo $* | grep keep\-d10v > /dev/null ) ; then
122 for i in $d10v_files ; do
123 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
124 if [ -n "${verbose}" ] ; then
125 echo Keeping d10v stuff in $i
126 fi
127 fi
128 done
129 else
130 for i in $d10v_files ; do
131 if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
132 if [ -n "${verbose}" ] ; then
133 echo Removing traces of \"d10v\" from $i...
134 fi
135 cp $i new
136 sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new
137 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
138 if [ -n "${verbose}" ] ; then
139 echo Caching $i in .Recover...
140 fi
141 mv $i .Recover
142 fi
143 mv new $i
144 fi
145 done
146 fi
147
148 for i in * ; do
149 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
150 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
151 fi
152 done
153
154 v850_files="ChangeLog configure.tgt Makefile.in"
155
156 if ( echo $* | grep keep\-v850 > /dev/null ) ; then
157 for i in $v850_files ; do
158 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
159 if [ -n "${verbose}" ] ; then
160 echo Keeping v850 stuff in $i
161 fi
162 fi
163 done
164 else
165 for i in $v850_files ; do
166 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
167 if [ -n "${verbose}" ] ; then
168 echo Removing traces of \"v850\" from $i...
169 fi
170 cp $i new
171 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
172 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
173 if [ -n "${verbose}" ] ; then
174 echo Caching $i in .Recover...
175 fi
176 mv $i .Recover
177 fi
178 mv new $i
179 fi
180 done
181 fi
182
183 for i in * ; do
184 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
185 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
186 fi
187 done
188
189 #
190 # End of file.