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