* configure.tgt (mips*-sgi-irix[56]*): Use elf32bsmip rather than
[deliverable/binutils-gdb.git] / ld / scripttempl / .Sanitize
CommitLineData
89464c7a 1# .Sanitize for devo/ld/scripttempl.
8ddef552
DM
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
16Do-first:
17
232e8702 18d30v_files="elfd30v.sc"
de61c9e1 19
232e8702
MH
20if ( echo $* | grep keep\-d30v > /dev/null ) ; then
21 keep_these_too="${d30v_files} ${keep_these_too}"
de61c9e1 22else
232e8702 23 lose_these_too="${d30v_files} ${lose_these_too}"
de61c9e1
SS
24fi
25
11effa69
FF
26tic80_files="tic80coff.sc"
27
28if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
29 keep_these_too="${tic80_files} ${keep_these_too}"
30else
31 lose_these_too="${tic80_files} ${lose_these_too}"
32fi
33
8ddef552
DM
34# All files listed between the "Things-to-keep:" line and the
35# "Do-last:" line will be kept. All other files will be removed.
36# Directories listed in this section will have their own Sanitize
37# called. Directories not listed will be removed in their entirety
38# with rm -rf.
39
40Things-to-keep:
41
42README
43a29k.sc
b5f076d4 44aix.sc
42f9673d 45alpha.sc
ff15324f 46armaout.sc
132dd910 47armcoff.sc
8ddef552 48aout.sc
63982998 49delta68.sc
8ddef552 50ebmon29k.sc
3bf3f99a 51elf.sc
94b569d2 52elfd10v.sc
5f16938d 53elfppc.sc
6149af09 54go32coff.sc
8ddef552 55h8300.sc
cdbcb08c 56h8300h.sc
cce8528d 57h8300s.sc
8ddef552 58h8500.sc
a25e9935
SC
59h8500b.sc
60h8500c.sc
61h8500m.sc
62h8500s.sc
423dae05 63hppaelf.sc
8ddef552 64i386coff.sc
6c86b9ff 65i386go32.sc
89464c7a 66i386lynx.sc
a2fb6995 67i386msdos.sc
8ddef552 68i960.sc
40ab9bb9 69m68kaux.sc
8ddef552 70m68kcoff.sc
dd3f0e5b 71m68klynx.sc
8ddef552
DM
72m88kbcs.sc
73mips.sc
74mipsbsd.sc
9ff30f20 75nw.sc
eb7f87c5 76pe.sc
070eddd9 77ppcpe.sc
307585f1 78psos.sc
8e0e09f6 79riscix.sc
8ddef552
DM
80sa29200.sc
81sh.sc
9798d9bf 82sparccoff.sc
89464c7a 83sparclynx.sc
8ddef552 84st2000.sc
2e6fa283 85v850.sc
8ddef552 86vanilla.sc
506f4ede 87w65.sc
66a61efd 88z8000.sc
8ddef552
DM
89
90Things-to-lose:
91
92# The lines between the "Do-last:" line and the end of the file
93# are executed as a /bin/sh shell script after everything else is
94# done.
95
96Do-last:
2e6fa283
NC
97
98v850_files="v850.sc"
99
100if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
101 for i in $v850_files ; do
102 if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then
103 if [ -n "${verbose}" ] ; then
104 echo Keeping v850eq stuff in $i
105 fi
106 fi
107 done
108else
109 for i in $v850_files ; do
110 if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then
111 if [ -n "${verbose}" ] ; then
112 echo Removing traces of \"v850eq\" from $i...
113 fi
114 cp $i new
115 sed '/start\-sanitize\-v850eq/,/end-\sanitize\-v850eq/d' < $i > new
116 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
117 if [ -n "${verbose}" ] ; then
118 echo Caching $i in .Recover...
119 fi
120 mv $i .Recover
121 fi
122 mv new $i
123 fi
124 done
125fi
126if ( echo $* | grep keep\-v850e > /dev/null ) ; then
127 for i in $v850_files ; do
128 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
129 if [ -n "${verbose}" ] ; then
130 echo Keeping v850e stuff in $i
131 fi
132 fi
133 done
134else
135 if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
136 true
137 else
138 for i in $v850_files ; do
139 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
140 if [ -n "${verbose}" ] ; then
141 echo Removing traces of \"v850e\" from $i...
142 fi
143 cp $i new
144 sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new
145 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
146 if [ -n "${verbose}" ] ; then
147 echo Caching $i in .Recover...
148 fi
149 mv $i .Recover
150 fi
151 mv new $i
152 fi
153 done
154 fi
155fi
156
This page took 0.154297 seconds and 4 git commands to generate.