]>
Commit | Line | Data |
---|---|---|
764eb349 | 1 | # .Sanitize for devo/ld. |
86e4d6e4 | 2 | |
747a47f2 | 3 | # Each directory to survive its way into a release will need a file |
86e4d6e4 RP |
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 | |
747a47f2 | 14 | # done in this directory. |
86e4d6e4 RP |
15 | |
16 | Do-first: | |
17 | ||
86e4d6e4 RP |
18 | # All files listed between the "Things-to-keep:" line and the |
19 | # "Files-to-sed:" line will be kept. All other files will be removed. | |
20 | # Directories listed in this section will have their own Sanitize | |
21 | # called. Directories not listed will be removed in their entirety | |
22 | # with rm -rf. | |
23 | ||
24 | Things-to-keep: | |
87756e15 | 25 | |
5784123f | 26 | ChangeLog |
86e4d6e4 | 27 | Makefile.in |
bc3b479c | 28 | NEWS |
c3d97ef6 | 29 | README |
fbd74d07 | 30 | TODO |
d66c832b ILT |
31 | acconfig.h |
32 | aclocal.m4 | |
ef346f1a | 33 | config.in |
d66c832b | 34 | configure |
65aa3724 | 35 | configure.bat |
d66c832b | 36 | configure.host |
86e4d6e4 | 37 | configure.in |
d66c832b | 38 | configure.tgt |
f8083739 | 39 | dep-in.sed |
2b63dbfe DM |
40 | emulparams |
41 | emultempl | |
86bc0974 ILT |
42 | fnmatch.c |
43 | fnmatch.h | |
c3d97ef6 | 44 | genscripts.sh |
2412a768 | 45 | h8-doc.texi |
40ab8532 | 46 | ld.1 |
2412a768 | 47 | gen-doc.texi |
5f1fec76 SC |
48 | ld.h |
49 | ld.texinfo | |
07acd23b | 50 | ldcref.c |
ffa057ee | 51 | ldctor.c |
1cc27b5e | 52 | ldctor.h |
c3d97ef6 PB |
53 | ldemul.c |
54 | ldemul.h | |
5f1fec76 SC |
55 | ldexp.c |
56 | ldexp.h | |
57 | ldfile.c | |
5f1fec76 | 58 | ldfile.h |
5f1fec76 | 59 | ldgram.y |
4b91c519 | 60 | ldint.texinfo |
5f1fec76 SC |
61 | ldlang.c |
62 | ldlang.h | |
63 | ldlex.h | |
64 | ldlex.l | |
5f1fec76 SC |
65 | ldmain.c |
66 | ldmain.h | |
67 | ldmisc.c | |
68 | ldmisc.h | |
5f1fec76 SC |
69 | ldver.c |
70 | ldver.h | |
5f1fec76 SC |
71 | ldwrite.c |
72 | ldwrite.h | |
0cc6a796 | 73 | lexsup.c |
aacc02d7 | 74 | mac-ld.r |
36ae618c SS |
75 | mpw-config.in |
76 | mpw-emipsidt.c | |
aaa877b7 | 77 | mpw-eppcmac.c |
aad90580 | 78 | mpw-esh.c |
aacc02d7 | 79 | mpw-make.sed |
b11a9b28 | 80 | mri.c |
a586b5bc | 81 | mri.h |
2b63dbfe | 82 | scripttempl |
d66c832b | 83 | sysdep.h |
e2f9f0f6 | 84 | testsuite |
86e4d6e4 | 85 | |
87756e15 RP |
86 | Things-to-lose: |
87 | ||
86e4d6e4 RP |
88 | Do-last: |
89 | ||
d66c832b | 90 | arc_files="ChangeLog configure.in configure.tgt Makefile.in" |
d0bfd8ec | 91 | |
d0bfd8ec KR |
92 | if ( echo $* | grep keep\-arc > /dev/null ) ; then |
93 | for i in $arc_files ; do | |
94 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
95 | if [ -n "${verbose}" ] ; then | |
96 | echo Keeping arc stuff in $i | |
97 | fi | |
98 | fi | |
99 | done | |
100 | else | |
101 | for i in $arc_files ; do | |
102 | if test ! -d $i && (grep sanitize-arc $i > /dev/null) ; then | |
103 | if [ -n "${verbose}" ] ; then | |
104 | echo Removing traces of \"arc\" from $i... | |
105 | fi | |
106 | cp $i new | |
107 | sed '/start\-sanitize\-arc/,/end-\sanitize\-arc/d' < $i > new | |
108 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
109 | if [ -n "${verbose}" ] ; then | |
110 | echo Caching $i in .Recover... | |
111 | fi | |
112 | mv $i .Recover | |
113 | fi | |
114 | mv new $i | |
115 | fi | |
116 | done | |
117 | fi | |
118 | ||
e9525d96 MH |
119 | d10v_files="ChangeLog configure.in configure.tgt Makefile.in" |
120 | ||
121 | if ( echo $* | grep keep\-d10v > /dev/null ) ; then | |
122 | for i in $d10v_files ; do | |
123 | if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then | |
124 | if [ -n "${verbose}" ] ; then | |
125 | echo Keeping d10v stuff in $i | |
126 | fi | |
127 | fi | |
128 | done | |
129 | else | |
130 | for i in $d10v_files ; do | |
131 | if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then | |
132 | if [ -n "${verbose}" ] ; then | |
133 | echo Removing traces of \"d10v\" from $i... | |
134 | fi | |
135 | cp $i new | |
136 | sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/d' < $i > new | |
137 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
138 | if [ -n "${verbose}" ] ; then | |
139 | echo Caching $i in .Recover... | |
140 | fi | |
141 | mv $i .Recover | |
142 | fi | |
143 | mv new $i | |
144 | fi | |
145 | done | |
146 | fi | |
147 | ||
04c17a75 JL |
148 | v850_files="ChangeLog configure.tgt Makefile.in" |
149 | ||
150 | if ( echo $* | grep keep\-v850 > /dev/null ) ; then | |
151 | for i in $v850_files ; do | |
152 | if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then | |
153 | if [ -n "${verbose}" ] ; then | |
154 | echo Keeping v850 stuff in $i | |
155 | fi | |
156 | fi | |
157 | done | |
158 | else | |
159 | for i in $v850_files ; do | |
160 | if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then | |
161 | if [ -n "${verbose}" ] ; then | |
162 | echo Removing traces of \"v850\" from $i... | |
163 | fi | |
164 | cp $i new | |
165 | sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new | |
166 | if [ -n "${safe}" -a ! -f .Recover/$i ] ; then | |
167 | if [ -n "${verbose}" ] ; then | |
168 | echo Caching $i in .Recover... | |
169 | fi | |
170 | mv $i .Recover | |
171 | fi | |
172 | mv new $i | |
173 | fi | |
174 | done | |
175 | fi | |
176 | ||
177 | for i in * ; do | |
178 | if test ! -d $i && (grep sanitize $i > /dev/null) ; then | |
179 | echo '***' Some mentions of Sanitize are still left in $i! 1>&2 | |
180 | fi | |
181 | done | |
182 | ||
5fa60968 | 183 | # |
86e4d6e4 | 184 | # End of file. |