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 | ||
8ddef552 DM |
32 | # All files listed between the "Things-to-keep:" line and the |
33 | # "Do-last:" line will be kept. All other files will be removed. | |
34 | # Directories listed in this section will have their own Sanitize | |
35 | # called. Directories not listed will be removed in their entirety | |
36 | # with rm -rf. | |
37 | ||
38 | Things-to-keep: | |
39 | ||
40 | README | |
41 | a29k.sc | |
b5f076d4 | 42 | aix.sc |
42f9673d | 43 | alpha.sc |
e33bfde7 | 44 | aout.sc |
ff15324f | 45 | armaout.sc |
132dd910 | 46 | armcoff.sc |
63982998 | 47 | delta68.sc |
8ddef552 | 48 | ebmon29k.sc |
3bf3f99a | 49 | elf.sc |
94b569d2 | 50 | elfd10v.sc |
b69153b6 | 51 | elfd30v.sc |
5f16938d | 52 | elfppc.sc |
6149af09 | 53 | go32coff.sc |
8ddef552 | 54 | h8300.sc |
cdbcb08c | 55 | h8300h.sc |
cce8528d | 56 | h8300s.sc |
8ddef552 | 57 | h8500.sc |
a25e9935 SC |
58 | h8500b.sc |
59 | h8500c.sc | |
60 | h8500m.sc | |
61 | h8500s.sc | |
423dae05 | 62 | hppaelf.sc |
8ddef552 | 63 | i386coff.sc |
6c86b9ff | 64 | i386go32.sc |
89464c7a | 65 | i386lynx.sc |
a2fb6995 | 66 | i386msdos.sc |
8ddef552 | 67 | i960.sc |
40ab9bb9 | 68 | m68kaux.sc |
8ddef552 | 69 | m68kcoff.sc |
dd3f0e5b | 70 | m68klynx.sc |
8ddef552 DM |
71 | m88kbcs.sc |
72 | mips.sc | |
73 | mipsbsd.sc | |
9ff30f20 | 74 | nw.sc |
eb7f87c5 | 75 | pe.sc |
070eddd9 | 76 | ppcpe.sc |
307585f1 | 77 | psos.sc |
8e0e09f6 | 78 | riscix.sc |
8ddef552 DM |
79 | sa29200.sc |
80 | sh.sc | |
9798d9bf | 81 | sparccoff.sc |
89464c7a | 82 | sparclynx.sc |
8ddef552 | 83 | st2000.sc |
cdf91fe4 ILT |
84 | tic30aout.sc |
85 | tic30coff.sc | |
2e6fa283 | 86 | v850.sc |
8ddef552 | 87 | vanilla.sc |
506f4ede | 88 | w65.sc |
66a61efd | 89 | z8000.sc |
8ddef552 DM |
90 | |
91 | Things-to-lose: | |
92 | ||
e33bfde7 ILT |
93 | |
94 | ||
8ddef552 DM |
95 | # The lines between the "Do-last:" line and the end of the file |
96 | # are executed as a /bin/sh shell script after everything else is | |
97 | # done. | |
98 | ||
99 | Do-last: | |
2e6fa283 NC |
100 | |
101 | v850_files="v850.sc" | |
2e6fa283 NC |
102 | if ( echo $* | grep keep\-v850e > /dev/null ) ; then |
103 | for i in $v850_files ; do | |
104 | if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then | |
105 | if [ -n "${verbose}" ] ; then | |
106 | echo Keeping v850e stuff in $i | |
107 | fi | |
108 | fi | |
109 | done | |
110 | else | |
2e6fa283 NC |
111 | for i in $v850_files ; do |
112 | if test ! -d $i && (grep sanitize-v850e $i > /dev/null) ; then | |
113 | if [ -n "${verbose}" ] ; then | |
114 | echo Removing traces of \"v850e\" from $i... | |
115 | fi | |
116 | cp $i new | |
117 | sed '/start\-sanitize\-v850e/,/end-\sanitize\-v850e/d' < $i > new | |
118 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
119 | if [ -n "${verbose}" ] ; then | |
120 | echo Caching $i in .Recover... | |
121 | fi | |
122 | mv $i .Recover | |
123 | fi | |
124 | mv new $i | |
125 | fi | |
126 | done | |
2e6fa283 NC |
127 | fi |
128 | ||
e33bfde7 | 129 | # eof |