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" |
683b2426 | 19 | |
232e8702 MH |
20 | if ( echo $* | grep keep\-d30v > /dev/null ) ; then |
21 | keep_these_too="${d30v_files} ${keep_these_too}" | |
683b2426 | 22 | else |
232e8702 | 23 | lose_these_too="${d30v_files} ${lose_these_too}" |
683b2426 MH |
24 | fi |
25 | ||
11effa69 FF |
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 | ||
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 | ||
40 | Things-to-keep: | |
41 | ||
42 | README | |
43 | a29k.sh | |
b5f076d4 ILT |
44 | aixppc.sh |
45 | aixrs6.sh | |
42f9673d | 46 | alpha.sh |
207cec8b | 47 | arcelf.sh |
ff15324f KR |
48 | armaoutb.sh |
49 | armaoutl.sh | |
132dd910 | 50 | armcoff.sh |
28d0c3ce | 51 | armpe.sh |
78158b1c | 52 | coff_sparc.sh |
94b569d2 | 53 | d10velf.sh |
63982998 | 54 | delta68.sh |
8ddef552 | 55 | ebmon29k.sh |
7ff42880 | 56 | elf32_sparc.sh |
1eadd162 | 57 | elf32bmip.sh |
353e5cb6 | 58 | elf32bsmip.sh |
719de0ea ILT |
59 | elf32ebmip.sh |
60 | elf32elmip.sh | |
1eadd162 | 61 | elf32lmip.sh |
7e11b1db | 62 | elf32lppc.sh |
353e5cb6 | 63 | elf32lsmip.sh |
c361ce46 | 64 | elf32ppc.sh |
b008b7bf KR |
65 | elf32b4300.sh |
66 | elf32l4300.sh | |
539ae61d | 67 | elf64alpha.sh |
3f38a017 | 68 | elf64_sparc.sh |
03451d7f | 69 | elf_i386.sh |
8ddef552 | 70 | gld960.sh |
c610b46c | 71 | gld960coff.sh |
8ddef552 DM |
72 | go32.sh |
73 | h8300.sh | |
8f207409 | 74 | h8300h.sh |
cce8528d | 75 | h8300s.sh |
8ddef552 | 76 | h8500.sh |
5fe60d73 SC |
77 | h8500b.sh |
78 | h8500c.sh | |
5fe60d73 | 79 | h8500m.sh |
3f38a017 | 80 | h8500s.sh |
8ddef552 DM |
81 | hp300bsd.sh |
82 | hp3hpux.sh | |
6cc2ced1 | 83 | hppaelf.sh |
8ddef552 DM |
84 | i386aout.sh |
85 | i386bsd.sh | |
86 | i386coff.sh | |
6c86b9ff | 87 | i386go32.sh |
7ff42880 | 88 | i386linux.sh |
bd7b78f7 | 89 | i386lynx.sh |
46cc3ed1 | 90 | i386mach.sh |
a2fb6995 KR |
91 | i386moss.sh |
92 | i386msdos.sh | |
32286e08 | 93 | i386nbsd.sh |
9ff30f20 | 94 | i386nw.sh |
3f38a017 | 95 | i386pe.sh |
8ddef552 | 96 | lnk960.sh |
718a5c17 | 97 | m32relf.sh |
e295a90d | 98 | m68k4knbsd.sh |
0573a3b1 | 99 | m68kaout.sh |
40ab9bb9 | 100 | m68kaux.sh |
8ddef552 | 101 | m68kcoff.sh |
575a4d91 | 102 | m68kelf.sh |
228b04d2 | 103 | m68klinux.sh |
bd7b78f7 | 104 | m68klynx.sh |
e574ddd4 | 105 | m68knbsd.sh |
307585f1 | 106 | m68kpsos.sh |
8ddef552 DM |
107 | m88kbcs.sh |
108 | mipsbig.sh | |
109 | mipsbsd.sh | |
110 | mipsidt.sh | |
111 | mipsidtl.sh | |
112 | mipslit.sh | |
1cc86f47 | 113 | mipslnews.sh |
6b01dc65 | 114 | mn10200.sh |
96e34542 | 115 | mn10300.sh |
8ddef552 | 116 | news.sh |
32286e08 | 117 | ns32knbsd.sh |
1ab4cd57 | 118 | pc532macha.sh |
9079ed57 | 119 | ppcmacos.sh |
9ff30f20 | 120 | ppcnw.sh |
070eddd9 | 121 | ppcpe.sh |
8e0e09f6 | 122 | riscix.sh |
8ddef552 DM |
123 | sa29200.sh |
124 | sh.sh | |
efd48a6a | 125 | shelf.sh |
6ae98644 | 126 | shl.sh |
efd48a6a | 127 | shlelf.sh |
02df835b | 128 | sparcaout.sh |
d8e259a7 | 129 | sparclinux.sh |
278d569a | 130 | sparclynx.sh |
32286e08 | 131 | sparcnbsd.sh |
8ddef552 DM |
132 | st2000.sh |
133 | sun3.sh | |
134 | sun4.sh | |
2e6fa283 | 135 | v850.sh |
8ddef552 DM |
136 | vanilla.sh |
137 | vax.sh | |
de9425a8 | 138 | vsta.sh |
506f4ede | 139 | w65.sh |
66a61efd SC |
140 | z8001.sh |
141 | z8002.sh | |
8ddef552 DM |
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: | |
2e6fa283 NC |
150 | |
151 | v850e_files="v850.sh" | |
152 | ||
2e6fa283 NC |
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 | |
2e6fa283 NC |
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 | |
2e6fa283 NC |
178 | fi |
179 |