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