Change references to armelf.sc to elf.sc.
[deliverable/binutils-gdb.git] / ld / emulparams / .Sanitize
1 # .Sanitize for devo/ld/emulparams
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 tic80_files="tic80coff.sh"
19 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
20 keep_these_too="${tic80_files} ${keep_these_too}"
21 else
22 lose_these_too="${tic80_files} ${lose_these_too}"
23 fi
24
25 r5900_files="elf32l5900.sh"
26 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
27 keep_these_too="${r5900_files} ${keep_these_too}"
28 else
29 lose_these_too="${r5900_files} ${lose_these_too}"
30 fi
31
32 beos_files="i386beos.sh"
33 if ( echo $* | grep keep\-beos > /dev/null ) ; then
34 keep_these_too="${beos_files} ${keep_these_too}"
35 else
36 lose_these_too="${beos_files} ${lose_these_too}"
37 fi
38
39 # All files listed between the "Things-to-keep:" line and the
40 # "Do-last:" line will be kept. All other files will be removed.
41 # Directories listed in this section will have their own Sanitize
42 # called. Directories not listed will be removed in their entirety
43 # with rm -rf.
44
45 Things-to-keep:
46
47 README
48 a29k.sh
49 aixppc.sh
50 aixrs6.sh
51 alpha.sh
52 arcelf.sh
53 armelf.sh
54 armaoutb.sh
55 armaoutl.sh
56 armcoff.sh
57 armpe.sh
58 coff_sparc.sh
59 d10velf.sh
60 d30v_e.sh
61 d30v_o.sh
62 d30velf.sh
63 delta68.sh
64 ebmon29k.sh
65 elf32_sparc.sh
66 elf32b4300.sh
67 elf32bmip.sh
68 elf32bsmip.sh
69 elf32ebmip.sh
70 elf32elmip.sh
71 elf32l4300.sh
72 elf32lmip.sh
73 elf32lppc.sh
74 elf32lsmip.sh
75 elf32ppc.sh
76 elf64_sparc.sh
77 elf64alpha.sh
78 elf_i386.sh
79 gld960.sh
80 gld960coff.sh
81 go32.sh
82 h8300.sh
83 h8300h.sh
84 h8300s.sh
85 h8500.sh
86 h8500b.sh
87 h8500c.sh
88 h8500m.sh
89 h8500s.sh
90 hp300bsd.sh
91 hp3hpux.sh
92 hppaelf.sh
93 i386aout.sh
94 i386bsd.sh
95 i386coff.sh
96 i386go32.sh
97 i386linux.sh
98 i386lynx.sh
99 i386mach.sh
100 i386moss.sh
101 i386msdos.sh
102 i386nbsd.sh
103 i386nw.sh
104 i386pe.sh
105 lnk960.sh
106 m32relf.sh
107 m68k4knbsd.sh
108 m68kaout.sh
109 m68kaux.sh
110 m68kcoff.sh
111 m68kelf.sh
112 m68klinux.sh
113 m68klynx.sh
114 m68knbsd.sh
115 m68kpsos.sh
116 m88kbcs.sh
117 mipsbig.sh
118 mipsbsd.sh
119 mipsidt.sh
120 mipsidtl.sh
121 mipslit.sh
122 mipslnews.sh
123 mn10200.sh
124 mn10300.sh
125 news.sh
126 ns32knbsd.sh
127 pc532macha.sh
128 ppcmacos.sh
129 ppcnw.sh
130 ppcpe.sh
131 riscix.sh
132 sa29200.sh
133 sh.sh
134 shelf.sh
135 shl.sh
136 shlelf.sh
137 sparcaout.sh
138 sparclinux.sh
139 sparclynx.sh
140 sparcnbsd.sh
141 st2000.sh
142 sun3.sh
143 sun4.sh
144 tic30aout.sh
145 tic30coff.sh
146 v850.sh
147 vanilla.sh
148 vax.sh
149 vsta.sh
150 w65.sh
151 z8001.sh
152 z8002.sh
153
154 Things-to-lose:
155
156
157
158 # The lines between the "Do-last:" line and the end of the file
159 # are executed as a /bin/sh shell script after everything else is
160 # done.
161
162 Do-last:
163
164 v850e_files="v850.sh"
165 if ( echo $* | grep keep\-v850e > /dev/null ) ; then
166 for i in $v850e_files ; do
167 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
168 if [ -n "${verbose}" ] ; then
169 echo Keeping v850e stuff in $i
170 fi
171 fi
172 done
173 else
174 for i in $v850e_files ; do
175 if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then
176 if [ -n "${verbose}" ] ; then
177 echo Removing traces of \"v850e\" from $i...
178 fi
179 cp $i new
180 sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new
181 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
182 if [ -n "${verbose}" ] ; then
183 echo Caching $i in .Recover...
184 fi
185 mv $i .Recover
186 fi
187 mv new $i
188 fi
189 done
190 fi
191
192 # eof
This page took 0.033276 seconds and 4 git commands to generate.