* mpw-make.sed: Add symbolic doublequoting to ldmain compile edit.
[deliverable/binutils-gdb.git] / ld / .Sanitize
CommitLineData
764eb349 1# .Sanitize for devo/ld.
86e4d6e4 2
747a47f2 3# Each directory to survive its way into a release will need a file
86e4d6e4
RP
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
747a47f2 14# done in this directory.
86e4d6e4
RP
15
16Do-first:
17
86e4d6e4
RP
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
24Things-to-keep:
87756e15 25
5784123f 26ChangeLog
86e4d6e4 27Makefile.in
bc3b479c 28NEWS
c3d97ef6 29README
fbd74d07 30TODO
d66c832b
ILT
31acconfig.h
32aclocal.m4
ef346f1a 33config.in
d66c832b 34configure
65aa3724 35configure.bat
d66c832b 36configure.host
86e4d6e4 37configure.in
d66c832b 38configure.tgt
f8083739 39dep-in.sed
2b63dbfe
DM
40emulparams
41emultempl
86bc0974
ILT
42fnmatch.c
43fnmatch.h
c3d97ef6 44genscripts.sh
2412a768 45h8-doc.texi
40ab8532 46ld.1
2412a768 47gen-doc.texi
5f1fec76
SC
48ld.h
49ld.texinfo
07acd23b 50ldcref.c
ffa057ee 51ldctor.c
1cc27b5e 52ldctor.h
c3d97ef6
PB
53ldemul.c
54ldemul.h
5f1fec76
SC
55ldexp.c
56ldexp.h
57ldfile.c
5f1fec76 58ldfile.h
5f1fec76 59ldgram.y
4b91c519 60ldint.texinfo
5f1fec76
SC
61ldlang.c
62ldlang.h
63ldlex.h
64ldlex.l
5f1fec76
SC
65ldmain.c
66ldmain.h
67ldmisc.c
68ldmisc.h
5f1fec76
SC
69ldver.c
70ldver.h
5f1fec76
SC
71ldwrite.c
72ldwrite.h
0cc6a796 73lexsup.c
aacc02d7 74mac-ld.r
36ae618c
SS
75mpw-config.in
76mpw-emipsidt.c
aaa877b7 77mpw-eppcmac.c
aad90580 78mpw-esh.c
aacc02d7 79mpw-make.sed
b11a9b28 80mri.c
a586b5bc 81mri.h
2b63dbfe 82scripttempl
d66c832b 83sysdep.h
e2f9f0f6 84testsuite
86e4d6e4 85
87756e15
RP
86Things-to-lose:
87
86e4d6e4
RP
88Do-last:
89
d66c832b 90arc_files="ChangeLog configure.in configure.tgt Makefile.in"
d0bfd8ec 91
d0bfd8ec
KR
92if ( 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
100else
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
117fi
118
e9525d96
MH
119d10v_files="ChangeLog configure.in configure.tgt Makefile.in"
120
121if ( 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
129else
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
146fi
147
04c17a75
JL
148v850_files="ChangeLog configure.tgt Makefile.in"
149
150if ( echo $* | grep keep\-v850 > /dev/null ) ; then
151 for i in $v850_files ; do
152 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
153 if [ -n "${verbose}" ] ; then
154 echo Keeping v850 stuff in $i
155 fi
156 fi
157 done
158else
159 for i in $v850_files ; do
160 if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
161 if [ -n "${verbose}" ] ; then
162 echo Removing traces of \"v850\" from $i...
163 fi
164 cp $i new
165 sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
166 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
167 if [ -n "${verbose}" ] ; then
168 echo Caching $i in .Recover...
169 fi
170 mv $i .Recover
171 fi
172 mv new $i
173 fi
174 done
175fi
176
177for i in * ; do
178 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
179 echo '***' Some mentions of Sanitize are still left in $i! 1>&2
180 fi
181done
182
5fa60968 183#
86e4d6e4 184# End of file.
This page took 0.178429 seconds and 4 git commands to generate.