Commit | Line | Data |
---|---|---|
278d569a | 1 | # .Sanitize for devo/ld/emulparams |
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 | ||
16 | Do-first: | |
17 | ||
41cf747a | 18 | d30v_files="d30velf.sh d30v_o.sh d30v_e.sh" |
232e8702 MH |
19 | if ( echo $* | grep keep\-d30v > /dev/null ) ; then |
20 | keep_these_too="${d30v_files} ${keep_these_too}" | |
683b2426 | 21 | else |
232e8702 | 22 | lose_these_too="${d30v_files} ${lose_these_too}" |
683b2426 MH |
23 | fi |
24 | ||
11effa69 | 25 | tic80_files="tic80coff.sh" |
11effa69 FF |
26 | if ( echo $* | grep keep\-tic80 > /dev/null ) ; then |
27 | keep_these_too="${tic80_files} ${keep_these_too}" | |
28 | else | |
29 | lose_these_too="${tic80_files} ${lose_these_too}" | |
30 | fi | |
31 | ||
bd8a4ea4 | 32 | r5900_files="elf32l5900.sh" |
bd8a4ea4 JL |
33 | if ( echo $* | grep keep\-r5900 > /dev/null ) ; then |
34 | keep_these_too="${r5900_files} ${keep_these_too}" | |
35 | else | |
36 | lose_these_too="${r5900_files} ${lose_these_too}" | |
37 | fi | |
38 | ||
8ddef552 DM |
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 | |
b5f076d4 ILT |
49 | aixppc.sh |
50 | aixrs6.sh | |
42f9673d | 51 | alpha.sh |
207cec8b | 52 | arcelf.sh |
ff15324f KR |
53 | armaoutb.sh |
54 | armaoutl.sh | |
132dd910 | 55 | armcoff.sh |
28d0c3ce | 56 | armpe.sh |
78158b1c | 57 | coff_sparc.sh |
94b569d2 | 58 | d10velf.sh |
63982998 | 59 | delta68.sh |
8ddef552 | 60 | ebmon29k.sh |
7ff42880 | 61 | elf32_sparc.sh |
e33bfde7 | 62 | elf32b4300.sh |
1eadd162 | 63 | elf32bmip.sh |
353e5cb6 | 64 | elf32bsmip.sh |
719de0ea ILT |
65 | elf32ebmip.sh |
66 | elf32elmip.sh | |
e33bfde7 | 67 | elf32l4300.sh |
1eadd162 | 68 | elf32lmip.sh |
7e11b1db | 69 | elf32lppc.sh |
353e5cb6 | 70 | elf32lsmip.sh |
c361ce46 | 71 | elf32ppc.sh |
3f38a017 | 72 | elf64_sparc.sh |
e33bfde7 | 73 | elf64alpha.sh |
03451d7f | 74 | elf_i386.sh |
8ddef552 | 75 | gld960.sh |
c610b46c | 76 | gld960coff.sh |
8ddef552 DM |
77 | go32.sh |
78 | h8300.sh | |
8f207409 | 79 | h8300h.sh |
cce8528d | 80 | h8300s.sh |
8ddef552 | 81 | h8500.sh |
5fe60d73 SC |
82 | h8500b.sh |
83 | h8500c.sh | |
5fe60d73 | 84 | h8500m.sh |
3f38a017 | 85 | h8500s.sh |
8ddef552 DM |
86 | hp300bsd.sh |
87 | hp3hpux.sh | |
6cc2ced1 | 88 | hppaelf.sh |
8ddef552 DM |
89 | i386aout.sh |
90 | i386bsd.sh | |
91 | i386coff.sh | |
6c86b9ff | 92 | i386go32.sh |
7ff42880 | 93 | i386linux.sh |
bd7b78f7 | 94 | i386lynx.sh |
46cc3ed1 | 95 | i386mach.sh |
a2fb6995 KR |
96 | i386moss.sh |
97 | i386msdos.sh | |
32286e08 | 98 | i386nbsd.sh |
9ff30f20 | 99 | i386nw.sh |
3f38a017 | 100 | i386pe.sh |
8ddef552 | 101 | lnk960.sh |
718a5c17 | 102 | m32relf.sh |
e295a90d | 103 | m68k4knbsd.sh |
0573a3b1 | 104 | m68kaout.sh |
40ab9bb9 | 105 | m68kaux.sh |
8ddef552 | 106 | m68kcoff.sh |
575a4d91 | 107 | m68kelf.sh |
228b04d2 | 108 | m68klinux.sh |
bd7b78f7 | 109 | m68klynx.sh |
e574ddd4 | 110 | m68knbsd.sh |
307585f1 | 111 | m68kpsos.sh |
8ddef552 DM |
112 | m88kbcs.sh |
113 | mipsbig.sh | |
114 | mipsbsd.sh | |
115 | mipsidt.sh | |
116 | mipsidtl.sh | |
117 | mipslit.sh | |
1cc86f47 | 118 | mipslnews.sh |
6b01dc65 | 119 | mn10200.sh |
96e34542 | 120 | mn10300.sh |
8ddef552 | 121 | news.sh |
32286e08 | 122 | ns32knbsd.sh |
1ab4cd57 | 123 | pc532macha.sh |
9079ed57 | 124 | ppcmacos.sh |
9ff30f20 | 125 | ppcnw.sh |
070eddd9 | 126 | ppcpe.sh |
8e0e09f6 | 127 | riscix.sh |
8ddef552 DM |
128 | sa29200.sh |
129 | sh.sh | |
efd48a6a | 130 | shelf.sh |
6ae98644 | 131 | shl.sh |
efd48a6a | 132 | shlelf.sh |
02df835b | 133 | sparcaout.sh |
d8e259a7 | 134 | sparclinux.sh |
278d569a | 135 | sparclynx.sh |
32286e08 | 136 | sparcnbsd.sh |
8ddef552 DM |
137 | st2000.sh |
138 | sun3.sh | |
139 | sun4.sh | |
cdf91fe4 ILT |
140 | tic30aout.sh |
141 | tic30coff.sh | |
2e6fa283 | 142 | v850.sh |
8ddef552 DM |
143 | vanilla.sh |
144 | vax.sh | |
de9425a8 | 145 | vsta.sh |
506f4ede | 146 | w65.sh |
66a61efd SC |
147 | z8001.sh |
148 | z8002.sh | |
8ddef552 DM |
149 | |
150 | Things-to-lose: | |
151 | ||
e33bfde7 ILT |
152 | |
153 | ||
8ddef552 DM |
154 | # The lines between the "Do-last:" line and the end of the file |
155 | # are executed as a /bin/sh shell script after everything else is | |
156 | # done. | |
157 | ||
158 | Do-last: | |
2e6fa283 NC |
159 | |
160 | v850e_files="v850.sh" | |
2e6fa283 NC |
161 | if ( echo $* | grep keep\-v850e > /dev/null ) ; then |
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 Keeping v850e stuff in $i | |
166 | fi | |
167 | fi | |
168 | done | |
169 | else | |
2e6fa283 NC |
170 | for i in $v850e_files ; do |
171 | if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then | |
172 | if [ -n "${verbose}" ] ; then | |
173 | echo Removing traces of \"v850e\" from $i... | |
174 | fi | |
175 | cp $i new | |
176 | sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new | |
177 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
178 | if [ -n "${verbose}" ] ; then | |
179 | echo Caching $i in .Recover... | |
180 | fi | |
181 | mv $i .Recover | |
182 | fi | |
183 | mv new $i | |
184 | fi | |
185 | done | |
2e6fa283 NC |
186 | fi |
187 | ||
e33bfde7 | 188 | # eof |