Commit | Line | Data |
---|---|---|
e33bfde7 | 1 | # .Sanitize for devo/ld/scripttempl |
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 | ||
11effa69 | 18 | tic80_files="tic80coff.sc" |
11effa69 FF |
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 | ||
d51be0a9 RH |
25 | beos_files="i386beos.sc" |
26 | if ( echo $* | grep keep\-beos > /dev/null ) ; then | |
27 | keep_these_too="${beos_files} ${keep_these_too}" | |
28 | else | |
29 | lose_these_too="${beos_files} ${lose_these_too}" | |
30 | fi | |
31 | ||
4857ffb4 NC |
32 | armelf_files="elfarm.sc" |
33 | if ( echo $* | grep keep\-armelf > /dev/null ) ; then | |
34 | keep_these_too="${armelf_files} ${keep_these_too}" | |
35 | else | |
36 | lose_these_too="${armelf_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.sc | |
b5f076d4 | 49 | aix.sc |
42f9673d | 50 | alpha.sc |
e33bfde7 | 51 | aout.sc |
ff15324f | 52 | armaout.sc |
132dd910 | 53 | armcoff.sc |
63982998 | 54 | delta68.sc |
8ddef552 | 55 | ebmon29k.sc |
3bf3f99a | 56 | elf.sc |
94b569d2 | 57 | elfd10v.sc |
b69153b6 | 58 | elfd30v.sc |
5f16938d | 59 | elfppc.sc |
6149af09 | 60 | go32coff.sc |
8ddef552 | 61 | h8300.sc |
cdbcb08c | 62 | h8300h.sc |
cce8528d | 63 | h8300s.sc |
8ddef552 | 64 | h8500.sc |
a25e9935 SC |
65 | h8500b.sc |
66 | h8500c.sc | |
67 | h8500m.sc | |
68 | h8500s.sc | |
423dae05 | 69 | hppaelf.sc |
8ddef552 | 70 | i386coff.sc |
6c86b9ff | 71 | i386go32.sc |
89464c7a | 72 | i386lynx.sc |
a2fb6995 | 73 | i386msdos.sc |
8ddef552 | 74 | i960.sc |
40ab9bb9 | 75 | m68kaux.sc |
8ddef552 | 76 | m68kcoff.sc |
dd3f0e5b | 77 | m68klynx.sc |
8ddef552 DM |
78 | m88kbcs.sc |
79 | mips.sc | |
80 | mipsbsd.sc | |
9ff30f20 | 81 | nw.sc |
eb7f87c5 | 82 | pe.sc |
070eddd9 | 83 | ppcpe.sc |
307585f1 | 84 | psos.sc |
8e0e09f6 | 85 | riscix.sc |
8ddef552 DM |
86 | sa29200.sc |
87 | sh.sc | |
9798d9bf | 88 | sparccoff.sc |
89464c7a | 89 | sparclynx.sc |
8ddef552 | 90 | st2000.sc |
cdf91fe4 ILT |
91 | tic30aout.sc |
92 | tic30coff.sc | |
2e6fa283 | 93 | v850.sc |
8ddef552 | 94 | vanilla.sc |
506f4ede | 95 | w65.sc |
66a61efd | 96 | z8000.sc |
8ddef552 DM |
97 | |
98 | Things-to-lose: | |
99 | ||
e33bfde7 ILT |
100 | |
101 | ||
8ddef552 DM |
102 | # The lines between the "Do-last:" line and the end of the file |
103 | # are executed as a /bin/sh shell script after everything else is | |
104 | # done. | |
105 | ||
106 | Do-last: | |
2e6fa283 NC |
107 | |
108 | v850_files="v850.sc" | |
2e6fa283 NC |
109 | if ( echo $* | grep keep\-v850e > /dev/null ) ; then |
110 | for i in $v850_files ; do | |
111 | if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then | |
112 | if [ -n "${verbose}" ] ; then | |
113 | echo Keeping v850e stuff in $i | |
114 | fi | |
115 | fi | |
116 | done | |
117 | else | |
2e6fa283 NC |
118 | for i in $v850_files ; do |
119 | if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then | |
120 | if [ -n "${verbose}" ] ; then | |
121 | echo Removing traces of \"v850e\" from $i... | |
122 | fi | |
123 | cp $i new | |
124 | sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new | |
125 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
126 | if [ -n "${verbose}" ] ; then | |
127 | echo Caching $i in .Recover... | |
128 | fi | |
129 | mv $i .Recover | |
130 | fi | |
131 | mv new $i | |
132 | fi | |
133 | done | |
2e6fa283 NC |
134 | fi |
135 | ||
e33bfde7 | 136 | # eof |